/in/foo.c:1:1: error: unknown type name 'var'
1 | var
| ^~~
/in/foo.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
2 | a,b,c:array[1..100]of longint;
| ^
/in/foo.c:2:15: error: too many decimal points in number
2 | a,b,c:array[1..100]of longint;
| ^~~~~~
/in/foo.c:3:3: warning: data definition has no type or storage class
3 | max,i,j,n:longint;
| ^~~
/in/foo.c:3:3: warning: type defaults to 'int' in declaration of 'max' [-Wimplicit-int]
/in/foo.c:3:7: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
3 | max,i,j,n:longint;
| ^
/in/foo.c:3:9: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
3 | max,i,j,n:longint;
| ^
/in/foo.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
3 | max,i,j,n:longint;
| ^
/in/foo.c:4:1: error: unknown type name 'begin'
4 | begin
| ^~~~~
/in/foo.c:5:3: warning: parameter names (without types) in function declaration
5 | readln(n);
| ^~~~~~
/in/foo.c:6:3: error: expected identifier or '(' before 'for'
6 | for i:=1 to n do read(a[i]);
| ^~~
/in/foo.c:7:3: error: expected identifier or '(' before 'for'
7 | for i:=1 to n do
| ^~~
/in/foo.c:10:3: error: expected identifier or '(' before 'for'
10 | for i:=n downto 1 do
| ^~~
/in/foo.c:13:3: error: expected identifier or '(' before 'for'
13 | for i:=1 to n do
| ^~~
/in/foo.c:15:12: error: expected ')' before '-' token
15 | writeln(n-max);
| ^
| )
/in/foo.c:16:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
16 | end.
| ^