/in/foo.cc:5:10: error: too many decimal points in number
a:array [0..51,0..51] of boolean;
^~~~~
/in/foo.cc:5:16: error: too many decimal points in number
a:array [0..51,0..51] of boolean;
^~~~~
/in/foo.cc:7:10: error: too many decimal points in number
b:array [1..4,1..2] of integer;
^~~~
/in/foo.cc:7:15: error: too many decimal points in number
b:array [1..4,1..2] of integer;
^~~~
/in/foo.cc:9:12: error: too many decimal points in number
p,q:array [1..50] of integer;
^~~~~
/in/foo.cc:11:10: error: too many decimal points in number
f:array [0..50] of longint;
^~~~~
/in/foo.cc:59:14: warning: character constant too long for its type
assign(input,'mmatrix.in');reset(input);
^~~~~~~~~~~~
/in/foo.cc:61:15: warning: character constant too long for its type
assign(output,'mmatrix.out');rewrite(output);
^~~~~~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
var max,min:longint;
^~~
/in/foo.cc:3:1: error: 'g' does not name a type
g,j,n,m,k1,k2,i:integer;
^
/in/foo.cc:5:2: error: found ':' in nested-name-specifier, expected '::'
a:array [0..51,0..51] of boolean;
^
/in/foo.cc:5:1: error: 'a' does not name a type
a:array [0..51,0..51] of boolean;
^
/in/foo.cc:7:2: error: found ':' in nested-name-specifier, expected '::'
b:array [1..4,1..2] of integer;
^
/in/foo.cc:7:1: error: 'b' does not name a type
b:array [1..4,1..2] of integer;
^
/in/foo.cc:9:1: error: 'p' does not name a type
p,q:array [1..50] of integer;
^
/in/foo.cc:11:2: error: found ':' in nested-name-specifier, expected '::'
f:array [0..50] of longint;
^
/in/foo.cc:11:1: error: 'f' does not name a type
f:array [0..50] of longint;
^
/in/foo.cc:13:1: error: 'procedure' does not name a type
procedure zou(x,y:integer);
^~~~~~~~~
/in/foo.cc:15:1: error: 'var' does not name a type
var d,z:integer;
^~~
/in/foo.cc:17:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:23:1: error: 'a' does not name a type
a[x,y]:=false;
^
/in/foo.cc:25:1: error: 'p' does not name a type
p[i]:=x;
^
/in/foo.cc:27:1: error: 'q' does not name a type
q[i]:=y;
^
/in/foo.cc:29:1: error: expected unqualified-id before 'if'
if i>g then f[i]:=k1*abs(p-x)+k2*abs(q-y);
^~
/in/foo.cc:31:1: error: expected unqualified-id before 'if'
if i=2*g then begin
^~
/in/foo.cc:35:1: error: expected unqualified-id before 'for'
for z:=g+1 to 2*g do if f[z]>max then max:=f[z];
^~~
/in/foo.cc:37:1: error: 'min' does not name a type
min:=max;
^~~
/in/foo.cc:39:4: error: expected constructor, destructor, or type conversion before '(' token
dec(i);
^
/in/foo.cc:41:1: error: 'a' does not name a type
a[x,y]:=true;
^
/in/foo.cc:43:1: error: 'exit' does not name a type
exit;
^~~~
/in/foo.cc:45:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:47:1: error: expected unqualified-id before 'for'
for d:=1 to 4 do begin zou(x+b[d,1],y+b[d,2]);end;
^~~
/in/foo.cc:47:47: error: 'end' does not name a type
for d:=1 to 4 do begin zou(x+b[d,1],y+b[d,2]);end;
^~~
/in/foo.cc:49:1: error: 'a' does not name a type
a[x,y]:=true;
^
/in/foo.cc:51:4: error: expected constructor, destructor, or type conversion before '(' token
dec(i);
^
/in/foo.cc:53:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:55:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:57:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:59:33: error: expected constructor, destructor, or type conversion before '(' token
assign(input,'mmatrix.in');reset(input);
^
/in/foo.cc:61:7: error: expected constructor, destructor, or type conversion before '(' token
assign(output,'mmatrix.out');rewrite(output);
^
/in/foo.cc:61:37: error: expected constructor, destructor, or type conversion before '(' token
assign(output,'mmatrix.out');rewrite(output);
^
/in/foo.cc:63:7: error: expected constructor, destructor, or type conversion before '(' token
readln(n,m,k1,k2);
^
/in/foo.cc:65:9: error: expected constructor, destructor, or type conversion before '(' token
fillchar(a,sizeof(a),false);
^
/in/foo.cc:67:1: error: 'b' does not name a type
b[1,1]:=1;
^
/in/foo.cc:69:1: error: 'b' does not name a type
b[2,1]:=-1;
^
/in/foo.cc:71:1: error: 'b' does not name a type
b[3,2]:=-1;
^
/in/foo.cc:73:1: error: 'b' does not name a type
b[4,2]:=1;
^
/in/foo.cc:75:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:81:1: error: 'i' does not name a type
i:=0;
^
/in/foo.cc:83:1: error: 'min' does not name a type
min:=maxlongint;
^~~
/in/foo.cc:85:1: error: 'g' does not name a type
g:=n*m div 2;
^
/in/foo.cc:87:4: error: expected constructor, destructor, or type conversion before '(' token
zou(1,1);
^
/in/foo.cc:89:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(min);
^
/in/foo.cc:91:6: error: expected constructor, destructor, or type conversion before '(' token
close(input);
^
/in/foo.cc:93:6: error: expected constructor, destructor, or type conversion before '(' token
close(output);
^
/in/foo.cc:95:1: error: 'end' does not name a type
end.
^~~