foo.cc:2:9: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~~~
foo.cc:2:16: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~~~
foo.cc:2:23: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~
foo.cc:3:9: error: too many decimal points in number
a:array[1..100,1..3] of longint;
^~~~~~
foo.cc:3:16: error: too many decimal points in number
a:array[1..100,1..3] of longint;
^~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
a:array[1..100,1..3] of longint;
^
foo.cc:3:1: error: 'a' does not name a type
a:array[1..100,1..3] of longint;
^
foo.cc:4:1: error: 'i' does not name a type
i,j,k,n,m,ans,ii:longint;
^
foo.cc:5:1: error: 'function' does not name a type; did you mean 'union'?
function max(x,y:longint):longint;
^~~~~~~~
union
foo.cc:6:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:9:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:10:1: error: 'function' does not name a type; did you mean 'union'?
function c(x:longint):longint;
^~~~~~~~
union
foo.cc:11:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:13:1: error: expected unqualified-id before 'if'
if x=2 then c:=3;
^~
foo.cc:14:1: error: expected unqualified-id before 'if'
if x=3 then c:=1;
^~
foo.cc:15:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:16:1: error: 'function' does not name a type; did you mean 'union'?
function d(x:longint):longint;
^~~~~~~~
union
foo.cc:17:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:19:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:20:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:22:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:24:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:27:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:34:1: error: 'f' does not name a type
f[i,j,k]:=max(f[i,j,k],f[ii,j-1,2]+a[i,k]);
^
foo.cc:35:1: error: 'f' does not name a type
f[i,j,k]:=max(f[i,j,k],f[ii,j-1,3]+a[i,k]);
^
foo.cc:36:1: error: expected unqualified-id before 'if'
if ((a[ii,1]>=a[i,c(k)])and(a[ii,2]>=a[i,d(k)]))or((a[ii,1]>=a[i,d(k)])and(a[ii,2]>=a[i,c(k)])) then
^~
foo.cc:38:1: error: expected unqualified-id before 'if'
if ((a[ii,1]>=a[i,c(k)])and(a[ii,3]>=a[i,d(k)]))or((a[ii,1]>=a[i,d(k)])and(a[ii,3]>=a[i,c(k)])) then
^~
foo.cc:40:1: error: expected unqualified-id before 'if'
if ((a[ii,3]>=a[i,c(k)])and(a[ii,2]>=a[i,d(k)]))or((a[ii,3]>=a[i,d(k)])and(a[ii,2]>=a[i,c(k)])) then
^~
foo.cc:42:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:43:1: error: 'ans' does not name a type
ans:=max(ans,f[i,j,k]);
^~~
foo.cc:44:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:45:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
foo.cc:46:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。