/in/foo.cc:2:13: error: too many decimal points in number
arr = array[0..18] of longint;
^~~~~
/in/foo.cc:1:1: error: 'type' does not name a type
type
^~~~
/in/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);
^
/in/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);
^
/in/foo.cc:5:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:7:1: error: 'procedure' does not name a type
procedure print(idx,nodes : longint);
^~~~~~~~~
/in/foo.cc:8:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:10:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:12:1: error: expected unqualified-id before 'if'
if nodes = 1 then begin
^~
/in/foo.cc:14:1: error: 'exit' does not name a type
exit;
^~~~
/in/foo.cc:15:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:16:1: error: expected unqualified-id before 'for'
for i := 0 to nodes-1 do begin
^~~
/in/foo.cc:18:1: error: expected unqualified-id before 'if'
if temp > idx then begin
^~
/in/foo.cc:20:1: error: 'j' does not name a type
j := i;
^
/in/foo.cc:21:1: error: expected unqualified-id before 'break'
break;
^~~~~
/in/foo.cc:22:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:23:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:24:1: error: expected unqualified-id before 'if'
if j 0 then begin
^~
/in/foo.cc:26:6: error: expected constructor, destructor, or type conversion before '(' token
write('(');
^
/in/foo.cc:27:6: error: expected constructor, destructor, or type conversion before '(' token
print(pos1,j);
^
/in/foo.cc:28:6: error: expected constructor, destructor, or type conversion before '(' token
write(')');
^
/in/foo.cc:29:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:30:6: error: expected constructor, destructor, or type conversion before '(' token
write('X');
^
/in/foo.cc:31:1: error: expected unqualified-id before 'if'
if (nodes-1-j) 0 then begin
^~
/in/foo.cc:33:6: error: expected constructor, destructor, or type conversion before '(' token
write('(');
^
/in/foo.cc:34:6: error: expected constructor, destructor, or type conversion before '(' token
print(pos2,nodes-1-j);
^
/in/foo.cc:35:6: error: expected constructor, destructor, or type conversion before '(' token
write(')');
^
/in/foo.cc:36:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:37:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:38:1: error: 'procedure' does not name a type
procedure solve(n : longint);
^~~~~~~~~
/in/foo.cc:39:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:41:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:43:1: error: 'nodes' does not name a type
nodes:=0;
^~~~~
/in/foo.cc:44:1: error: expected unqualified-id before 'while'
while temp
^~~~~