foo.cc:3:11: error: too many decimal points in number
a,d:array[1..300000] of longint;
^~~~~~~~~
foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
var i,j,k,l,n,m,min,max,mid,t:longint;
^~~
char
foo.cc:3:1: error: 'a' does not name a type
a,d:array[1..300000] of longint;
^
foo.cc:5:1: error: 'function' does not name a type; did you mean 'union'?
function check(mid:longint):boolean;
^~~~~~~~
union
foo.cc:7:1: error: 'var' does not name a type; did you mean 'char'?
var i,j,k:longint;
^~~
char
foo.cc:9:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:21:1: error: expected unqualified-id before 'for'
for k:=j to n do
^~~
foo.cc:27:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:29:5: error: expected constructor, destructor, or type conversion before '(' token
exit(true);
^
foo.cc:31:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:33:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:35:1: error: 'procedure' does not name a type
procedure main;
^~~~~~~~~
foo.cc:37:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:45:1: error: expected unqualified-id before 'if'
if check(mid) then max:=mid else min:=mid+1;
^~
foo.cc:47:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:49:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(min);
^
foo.cc:51:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:53:1: error: 'procedure' does not name a type
procedure init;
^~~~~~~~~
foo.cc:55:1: error: 'var' does not name a type; did you mean 'char'?
var i:longint;
^~~
char
foo.cc:57:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:61:1: error: expected unqualified-id before 'for'
for i:=1 to t do
^~~
foo.cc:67:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(a,sizeof(a),0);
^
foo.cc:69:5: error: expected constructor, destructor, or type conversion before '(' token
read(n);read(a[1]);d[1]:=0;
^
foo.cc:69:13: error: expected constructor, destructor, or type conversion before '(' token
read(n);read(a[1]);d[1]:=0;
^
foo.cc:69:20: error: 'd' does not name a type
read(n);read(a[1]);d[1]:=0;
^
foo.cc:71:1: error: expected unqualified-id before 'for'
for j:=2 to n do
^~~
foo.cc:77:1: error: 'd' does not name a type
d[j]:=a[j]-a[1];
^
foo.cc:79:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:81:1: error: 'min' does not name a type
min:=0;max:=d[n];
^~~
foo.cc:81:8: error: 'max' does not name a type
min:=0;max:=d[n];
^~~
foo.cc:83:1: error: 'main' does not name a type
main;
^~~~
foo.cc:85:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:87:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:89:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:93:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。