foo.cc:2:9: error: too many decimal points in number
a:array[1..100]of ansistring;
^~~~~~
foo.cc:3:9: error: too many decimal points in number
b:array[1..100]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 '::'
b:array[1..100]of longint;
^
foo.cc:3:1: error: 'b' does not name a type
b:array[1..100]of longint;
^
foo.cc:4:2: error: found ':' in nested-name-specifier, expected '::'
s:ansistring;
^
foo.cc:4:1: error: 's' does not name a type
s:ansistring;
^
foo.cc:5:1: error: 'x' does not name a type
x,y,i,n:longint;
^
foo.cc:6:1: error: 'procedure' does not name a type
procedure qsort(l,r:longint);
^~~~~~~~~
foo.cc:7:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:9:2: error: found ':' in nested-name-specifier, expected '::'
x:ansistring;
^
foo.cc:9:1: error: 'x' does not name a type
x:ansistring;
^
foo.cc:10:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:11:6: error: 'j' does not name a type
i:=l;j:=r;mid:=b[(l+r)shr 1];
^
foo.cc:11:11: error: 'mid' does not name a type; did you mean 'void'?
i:=l;j:=r;mid:=b[(l+r)shr 1];
^~~
void
foo.cc:12:1: error: 'repeat' does not name a type
repeat
^~~~~~
foo.cc:14:1: error: expected unqualified-id before 'while'
while b[j]>mid do dec(j);
^~~~~
foo.cc:15:1: error: expected unqualified-id before 'if'
if i<=j then begin t:=b[i];b[i]:=b[j];b[j]:=t;
^~
foo.cc:15:28: error: 'b' does not name a type
if i<=j then begin t:=b[i];b[i]:=b[j];b[j]:=t;
^
foo.cc:15:39: error: 'b' does not name a type
if i<=j then begin t:=b[i];b[i]:=b[j];b[j]:=t;
^
foo.cc:16:1: error: 'x' does not name a type
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^
foo.cc:16:9: error: 'a' does not name a type
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^
foo.cc:16:20: error: 'a' does not name a type
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^
foo.cc:16:31: error: expected constructor, destructor, or type conversion before '(' token
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^
foo.cc:16:38: error: expected constructor, destructor, or type conversion before '(' token
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^
foo.cc:16:42: error: 'end' does not name a type; did you mean 'enum'?
x:=a[i];a[i]:=a[j];a[j]:=x;inc(i);dec(j);end;
^~~
enum
foo.cc:17:1: error: 'until' does not name a type
until i>j;
^~~~~
foo.cc:18:1: error: expected unqualified-id before 'if'
if i<r then qsort(i,r);
^~
foo.cc:19:1: error: expected unqualified-id before 'if'
if l<j then qsort(l,j);
^~
foo.cc:20:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:21:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:23:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
foo.cc:25:1: error: expected unqualified-id before 'if'
if s[pos(']',s)-6]=':' then begin a[i]:=copy(s,11,length(s)-10);
^~
foo.cc:26:4: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,2,2),x);b[i]:=x*10000;val(copy(s,5,2),x);b[i]:=b[i]+x*100;
^
foo.cc:26:20: error: 'b' does not name a type
val(copy(s,2,2),x);b[i]:=x*10000;val(copy(s,5,2),x);b[i]:=b[i]+x*100;
^
foo.cc:26:37: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,2,2),x);b[i]:=x*10000;val(copy(s,5,2),x);b[i]:=b[i]+x*100;
^
foo.cc:26:53: error: 'b' does not name a type
val(copy(s,2,2),x);b[i]:=x*10000;val(copy(s,5,2),x);b[i]:=b[i]+x*100;
^
foo.cc:27:4: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,8,2),x);b[i]:=b[i]+x;end;
^
foo.cc:27:20: error: 'b' does not name a type
val(copy(s,8,2),x);b[i]:=b[i]+x;end;
^
foo.cc:27:33: error: 'end' does not name a type; did you mean 'enum'?
val(copy(s,8,2),x);b[i]:=b[i]+x;end;
^~~
enum
foo.cc:28:1: error: expected unqualified-id before 'if'
if s[14]=':' then begin inc(y);a[y+n]:=copy(s,21,length(s)-20);
^~
foo.cc:28:32: error: 'a' does not name a type
if s[14]=':' then begin inc(y);a[y+n]:=copy(s,21,length(s)-20);
^
foo.cc:29:4: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,12,2),x);b[y+n]:=x*10000;val(copy(s,15,2),x);b[y+n]:=b[y+n]+x*100;
^
foo.cc:29:21: error: 'b' does not name a type
val(copy(s,12,2),x);b[y+n]:=x*10000;val(copy(s,15,2),x);b[y+n]:=b[y+n]+x*100;
^
foo.cc:29:40: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,12,2),x);b[y+n]:=x*10000;val(copy(s,15,2),x);b[y+n]:=b[y+n]+x*100;
^
foo.cc:29:57: error: 'b' does not name a type
val(copy(s,12,2),x);b[y+n]:=x*10000;val(copy(s,15,2),x);b[y+n]:=b[y+n]+x*100;
^
foo.cc:30:4: error: expected constructor, destructor, or type conversion before '(' token
val(copy(s,18,2),x);b[y+n]:=b[y+n]+x;delete(a[i],1,10);end;
^
foo.cc:30:21: error: 'b' does not name a type
val(copy(s,18,2),x);b[y+n]:=b[y+n]+x;delete(a[i],1,10);end;
^
foo.cc:30:38: error: expected unqualified-id before 'delete'
val(copy(s,18,2),x);b[y+n]:=b[y+n]+x;delete(a[i],1,10);end;
^~~~~~
foo.cc:30:56: error: 'end' does not name a type; did you mean 'enum'?
val(copy(s,18,2),x);b[y+n]:=b[y+n]+x;delete(a[i],1,10);end;
^~~
enum
foo.cc:31:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:32:6: error: expected constructor, destructor, or type conversion before '(' token
qsort(1,n+y);
^
foo.cc:33:1: error: expected unqualified-id before 'for'
for i:=1 to y+n do writeln(a[i]);
^~~
foo.cc:34:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。