/in/foo.cc:5:11: error: too many decimal points in number
a : array[1..1050] of longint;
^~~~~~~
/in/foo.cc:7:14: error: too many decimal points in number
b,b1 : array[0..1050] of boolean;
^~~~~~~
/in/foo.cc:47:34: warning: character constant too long for its type
if k > 100000 then begin writeln('You can''t cross the road!'); break end;
^~~~~~~~~
/in/foo.cc:47:43: warning: character constant too long for its type
if k > 100000 then begin writeln('You can''t cross the road!'); break end;
^~~~~~~~~~~~~~~~~~~
/in/foo.cc:1:1: error: 'program' does not name a type
program vijos;
^~~~~~~
/in/foo.cc:3:1: error: 'var' does not name a type
var n,i,k,j,o,l : longint;
^~~
/in/foo.cc:5:3: error: found ':' in nested-name-specifier, expected '::'
a : array[1..1050] of longint;
^
/in/foo.cc:5:1: error: 'a' does not name a type
a : array[1..1050] of longint;
^
/in/foo.cc:7:1: error: 'b' does not name a type
b,b1 : array[0..1050] of boolean;
^
/in/foo.cc:9:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
for l := 1 to o do
^~~
/in/foo.cc:19:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(a,sizeof(a),0);
^
/in/foo.cc:21:1: error: expected unqualified-id before 'for'
for i := 1 to n do
^~~
/in/foo.cc:25:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(b,sizeof(b),0);
^
/in/foo.cc:27:1: error: 'b' does not name a type
b[0] := true;
^
/in/foo.cc:29:1: error: expected unqualified-id before 'for'
for k := 1 to maxlongint do
^~~
/in/foo.cc:35:1: error: 'b1' does not name a type
b1[0] := true;
^~
/in/foo.cc:37:1: error: expected unqualified-id before 'for'
for j := 1 to n+1 do
^~~
/in/foo.cc:43:1: error: expected unqualified-id before 'if'
if b1[n+1] then begin writeln(k); break; end;
^~
/in/foo.cc:43:35: error: expected unqualified-id before 'break'
if b1[n+1] then begin writeln(k); break; end;
^~~~~
/in/foo.cc:43:42: error: 'end' does not name a type
if b1[n+1] then begin writeln(k); break; end;
^~~
/in/foo.cc:45:1: error: 'b' does not name a type
b := b1;
^
/in/foo.cc:47:1: error: expected unqualified-id before 'if'
if k > 100000 then begin writeln('You can''t cross the road!'); break end;
^~
/in/foo.cc:47:65: error: expected unqualified-id before 'break'
if k > 100000 then begin writeln('You can''t cross the road!'); break end;
^~~~~
/in/foo.cc:49:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:51:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:53:1: error: 'end' does not name a type
end.
^~~