foo.cc:3:1: error: 'xiaoxie' does not name a type
xiaoxie=['a'..'z'];
^~~~~~~
foo.cc:5:1: error: 'fuhao' does not name a type
fuhao=['-','=','+'];
^~~~~
foo.cc:9:1: error: 'function' does not name a type; did you mean 'union'?
function panduan(st:string):boolean;
^~~~~~~~
union
foo.cc:11:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:15:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:23:5: error: expected constructor, destructor, or type conversion before '(' token
exit(false);
^
foo.cc:25:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:29:1: error: 'procedure' does not name a type
procedure init;
^~~~~~~~~
foo.cc:31:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:35:1: error: 'step1' does not name a type
step1:=0;
^~~~~
foo.cc:37:1: error: 'step2' does not name a type
step2:=1;
^~~~~
foo.cc:39:1: error: 'd' does not name a type
d:=pos('=',a);
^
foo.cc:41:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:45:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:49:1: error: 'work' does not name a type
work;
^~~~
foo.cc:51:6: error: expected constructor, destructor, or type conversion before '(' token
write(ans);
^
foo.cc:53:1: error: 'end' does not name a type; did you mean 'enum'?
end.
^~~
enum
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。