/in/foo.c:1:1: error: unknown type name 'var'; did you mean 'char'?
var
^~~
char
/in/foo.c:2:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
m,n,r,s,t:longint;
^
/in/foo.c:3:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:4:9: warning: parameter names (without types) in function declaration
readln(m,n);
^~~~~~
/in/foo.c:5:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
s:=m*n;
^
/in/foo.c:6:9: error: expected identifier or '(' before 'if'
if n>m then
^~
/in/foo.c:9:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
n:=m;
^
/in/foo.c:10:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
m:=t;
^
/in/foo.c:11:9: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:11:9: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:12:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
r:=m mod n;
^
/in/foo.c:13:9: error: expected identifier or '(' before 'while'
while r<>0 do
^~~~~
/in/foo.c:16:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
n:=r;
^
/in/foo.c:17:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
r:=m mod n;
^
/in/foo.c:18:9: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:18:9: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:19:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
s:=s div n;
^
/in/foo.c:20:9: warning: data definition has no type or storage class
writeln(s);
^~~~~~~
/in/foo.c:20:9: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:20:9: warning: parameter names (without types) in function declaration
/in/foo.c:21:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
end.
^