foo.cc:2:13: error: too many decimal points in number
arr = array[0..18] of longint;
^~~~~
foo.cc:1:1: error: 'type' does not name a type
type
^~~~
foo.cc:4:3: error: found ':' in nested-name-specifier, expected '::'
a : arr = (1, 1, 2, 5, 14, 42, 132,429, 1430, 4862, 16796, 58786, 208012,742900, 2674440, 9694845, 35357670,129644790, 477638700);
^
foo.cc:4:1: error: 'a' does not name a type
a : arr = (1, 1, 2, 5, 14, 42, 132,429, 1430, 4862, 16796, 58786, 208012,742900, 2674440, 9694845, 35357670,129644790, 477638700);
^
foo.cc:5:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:7:1: error: 'procedure' does not name a type
procedure print(idx,nodes : longint);
^~~~~~~~~
foo.cc:8:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:10:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:12:1: error: expected unqualified-id before 'if'
if nodes = 1 then begin
^~
foo.cc:14:1: error: 'exit' does not name a type
exit;
^~~~
foo.cc:15:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:16:1: error: expected unqualified-id before 'for'
for i := 0 to nodes-1 do begin
^~~
foo.cc:18:1: error: expected unqualified-id before 'if'
if temp > idx then begin
^~
foo.cc:20:1: error: 'j' does not name a type
j := i;
^
foo.cc:21:1: error: expected unqualified-id before 'break'
break;
^~~~~
foo.cc:22:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:23:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:24:1: error: expected unqualified-id before 'if'
if j 0 then begin
^~
foo.cc:26:6: error: expected constructor, destructor, or type conversion before '(' token
write('(');
^
foo.cc:27:6: error: expected constructor, destructor, or type conversion before '(' token
print(pos1,j);
^
foo.cc:28:6: error: expected constructor, destructor, or type conversion before '(' token
write(')');
^
foo.cc:29:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:30:6: error: expected constructor, destructor, or type conversion before '(' token
write('X');
^
foo.cc:31:1: error: expected unqualified-id before 'if'
if (nodes-1-j) 0 then begin
^~
foo.cc:33:6: error: expected constructor, destructor, or type conversion before '(' token
write('(');
^
foo.cc:34:6: error: expected constructor, destructor, or type conversion before '(' token
print(pos2,nodes-1-j);
^
foo.cc:35:6: error: expected constructor, destructor, or type conversion before '(' token
write(')');
^
foo.cc:36:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:37:1: error: 'end' does not name a type; did you mean 'enum'?
end;
^~~
enum
foo.cc:38:1: error: 'procedure' does not name a type
procedure solve(n : longint);
^~~~~~~~~
foo.cc:39:1: error: 'var' does not name a type; did you mean 'char'?
var
^~~
char
foo.cc:41:1: error: 'begin' does not name a type
begin
^~~~~
foo.cc:43:1: error: 'nodes' does not name a type
nodes:=0;
^~~~~
foo.cc:44:1: error: expected unqualified-id before 'while'
while temp
^~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。