/in/foo.cc:2:14: error: too many decimal points in number
a,b,c:array [0..500005] of longint;
^~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:3:1: error: 'n' does not name a type
n,l,i,min,t:longint;
^
/in/foo.cc:4:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:6:1: error: expected unqualified-id before 'for'
for i:=1 to n do read(a[i],b[i]);
^~~
/in/foo.cc:7:1: error: expected unqualified-id before 'for'
for i:=2 to n do c[i]:=c[i-1]-a[i]+b[i-1];
^~~
/in/foo.cc:8:1: error: 'min' does not name a type
min:=1000000000; t:=0;
^~~
/in/foo.cc:8:18: error: 't' does not name a type
min:=1000000000; t:=0;
^
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
for i:=1 to n do if (c[i]<min) then min:=c[i];
^~~
/in/foo.cc:10:1: error: expected unqualified-id before 'for'
for i:=1 to n do if (c[i]=min) then
^~~
/in/foo.cc:11:31: error: 't' does not name a type
if (t=0) then begin write(i); t:=1; end else write(' ',i);
^
/in/foo.cc:11:37: error: 'end' does not name a type
if (t=0) then begin write(i); t:=1; end else write(' ',i);
^~~
/in/foo.cc:12:1: error: 'writeln' does not name a type
writeln;
^~~~~~~
/in/foo.cc:13:1: error: 'end' does not name a type
end.
^~~