/in/foo.c:1:1: error: unknown type name 'var'; did you mean 'char'?
var
^~~
char
/in/foo.c:2:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
a,b:longint;
^
/in/foo.c:3:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:4:3: warning: parameter names (without types) in function declaration
read(a,b);
^~~~
/in/foo.c:5:10: error: expected ')' before '+' token
write(a+b);
^
/in/foo.c:6:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
end.
^