/in/foo.c:1:1: error: unknown type name 'var'
var
^~~
/in/foo.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
x,a,b,c,max,d:integer;
^
/in/foo.c:4:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
max :=0;
^
/in/foo.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
d := 0;
^
/in/foo.c:7:1: error: expected identifier or '(' before 'for'
for x:= 1 to 7 do
^~~
/in/foo.c:10:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
c := a+b;
^
/in/foo.c:11:9: error: expected identifier or '(' before 'if'
if (c>=8) and (c>max) then
^~
/in/foo.c:13:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
d := x ; max := c;
^
/in/foo.c:14:13: error: unknown type name 'end'
end
^~~
/in/foo.c:16:5: warning: data definition has no type or storage class
writeln(d);
^~~~~~~
/in/foo.c:16:5: warning: type defaults to 'int' in declaration of 'writeln' [-Wimplicit-int]
/in/foo.c:16:5: warning: parameter names (without types) in function declaration
/in/foo.c:17:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
end.
^