/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,i:longint;
^
/in/foo.cc:4:1: error: 'ans' does not name a type
ans,fenz:int64;
^~~
/in/foo.cc:5:1: error: 'x1' does not name a type
x1,y1,x2,y2:int64;
^~
/in/foo.cc:6:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:8:3: error: expected unqualified-id before 'while'
while not eof do
^~~~~
/in/foo.cc:11:5: error: 'sum' does not name a type
sum:=sum+sqrt(sqr(x1-x2)+sqr(y1-y2));
^~~
/in/foo.cc:12:3: error: 'end' does not name a type
end;
^~~
/in/foo.cc:13:3: error: 'sum' does not name a type
sum:=sum*2/1000;
^~~
/in/foo.cc:14:3: error: 'sum' does not name a type
sum:=sum/20;
^~~
/in/foo.cc:15:3: error: 'fenz' does not name a type
fenz:=round((sum-trunc(sum))*60);
^~~~
/in/foo.cc:16:3: error: 'ans' does not name a type
ans:=trunc(sum);
^~~
/in/foo.cc:17:8: error: expected constructor, destructor, or type conversion before '(' token
write(ans,':');
^
/in/foo.cc:18:3: error: expected unqualified-id before 'if'
if fenz<10 then write(0);
^~
/in/foo.cc:19:10: error: expected constructor, destructor, or type conversion before '(' token
writeln(fenz);
^
/in/foo.cc:20:1: error: 'end' does not name a type
end.
^~~