foo.cc:3:9: error: too many decimal points in number
a:array[0..1000,0..1000]of integer;
^~~~~~~
foo.cc:3:17: error: too many decimal points in number
a:array[0..1000,0..1000]of integer;
^~~~~~~
foo.cc:4:11: error: too many decimal points in number
b,f:array[0..1000]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[0..1000,0..1000]of integer;
^
foo.cc:3:1: error: 'a' does not name a type
a:array[0..1000,0..1000]of integer;
^
foo.cc:4:1: error: 'b' does not name a type
b,f:array[0..1000]of longint;
^
foo.cc:6:1: error: 'function' does not name a type; did you mean 'union'?
function round(x:integer):integer;
^~~~~~~~
union
foo.cc:7: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:11:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:13:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:17:1: error: 'readln' does not name a type
readln;
^~~~~~
foo.cc:18:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:19:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
foo.cc:21:1: error: 'f' does not name a type
f[0]:=0;
^
foo.cc:22:1: error: expected unqualified-id before 'for'
for i:=1 to m do
^~~
foo.cc:25:1: error: expected unqualified-id before 'for'
for j:=1 to n do
^~~
foo.cc:28:1: error: expected unqualified-id before 'for'
for k:=1 to p do
^~~
foo.cc:32:1: error: 'x' does not name a type
x:=f[i-k]-b[j]+sum;
^
foo.cc:33:1: error: expected unqualified-id before 'if'
if x>f[i] then f[i]:=x;
^~
foo.cc:34:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:35:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:37:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(f[m]);
^
foo.cc:38:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。