/in/foo.cc:17:9: error: too many decimal points in number
s:array[0..maxn,0..maxm] of longint;
^~~~~~~
/in/foo.cc:17:17: error: too many decimal points in number
s:array[0..maxn,0..maxm] of longint;
^~~~~~~
/in/foo.cc:19:12: error: too many decimal points in number
data:array[1..maxn,1..maxm] of longint;
^~~~~~~
/in/foo.cc:19:20: error: too many decimal points in number
data:array[1..maxn,1..maxm] of longint;
^~~~~~~
/in/foo.cc:21:11: error: too many decimal points in number
f,g:array[0..1,-maxh..maxh,-maxm..maxm,-maxm..maxm] of longint;
^~~~
/in/foo.cc:107:14: warning: character constant too long for its type
assign(input,'stage.in');
^~~~~~~~~~
/in/foo.cc:111:15: warning: character constant too long for its type
assign(output,'stage.out');
^~~~~~~~~~~
/in/foo.cc:3:1: error: 'maxh' does not name a type
maxh=40;
^~~~
/in/foo.cc:5:1: error: 'maxn' does not name a type
maxn=120;
^~~~
/in/foo.cc:7:1: error: 'maxm' does not name a type
maxm=120;
^~~~
/in/foo.cc:9:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:13:1: error: 'n' does not name a type
n,m,h:longint;
^
/in/foo.cc:15:1: error: 'i' does not name a type
i,j,k:longint;
^
/in/foo.cc:17:2: error: found ':' in nested-name-specifier, expected '::'
s:array[0..maxn,0..maxm] of longint;
^
/in/foo.cc:17:1: error: 's' does not name a type
s:array[0..maxn,0..maxm] of longint;
^
/in/foo.cc:19:5: error: found ':' in nested-name-specifier, expected '::'
data:array[1..maxn,1..maxm] of longint;
^
/in/foo.cc:19:1: error: 'data' does not name a type
data:array[1..maxn,1..maxm] of longint;
^~~~
/in/foo.cc:21:1: error: 'f' does not name a type
f,g:array[0..1,-maxh..maxh,-maxm..maxm,-maxm..maxm] of longint;
^
/in/foo.cc:23:1: error: 'procedure' does not name a type
procedure print;
^~~~~~~~~
/in/foo.cc:25:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:29:6: error: expected constructor, destructor, or type conversion before '(' token
close(input);
^
/in/foo.cc:31:6: error: expected constructor, destructor, or type conversion before '(' token
close(output);
^
/in/foo.cc:33:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:35:1: error: 'function' does not name a type
function max(x,y:longint):longint;
^~~~~~~~
/in/foo.cc:37:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:43:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:45:1: error: 'function' does not name a type
function min(x,y:longint):longint;
^~~~~~~~
/in/foo.cc:47:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:53:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:55:1: error: 'procedure' does not name a type
procedure work;
^~~~~~~~~
/in/foo.cc:57:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:61:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:65:1: error: expected unqualified-id before 'for'
for i:=1 to n do begin
^~~
/in/foo.cc:69:1: error: expected unqualified-id before 'for'
for j:=1 to min(h,i) do begin
^~~
/in/foo.cc:79:1: error: expected unqualified-id before 'if'
if (f[1-w,j,l,r]>0)or(i=1)
^~
/in/foo.cc:83:1: error: 'g' does not name a type
g[w,j,l,r]:=max(g[w,j,l+1,r],max(g[w,j,l,r-1],f[w,j,l,r]));
^
/in/foo.cc:85:1: error: 'end' does not name a type
end else begin
^~~
/in/foo.cc:89:1: error: 'g' does not name a type
g[w,j,l,r]:=max(g[w,j,l+1,r],max(g[w,j,l,r-1],f[w,j,l,r]));
^
/in/foo.cc:91:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:93:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:95:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:97:1: error: 'ans' does not name a type
ans:=max(ans,g[w,h,1,m]);
^~~
/in/foo.cc:99:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:101:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:103:1: error: 'procedure' does not name a type
procedure init;
^~~~~~~~~
/in/foo.cc:105:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:109:6: error: expected constructor, destructor, or type conversion before '(' token
reset(input);
^
/in/foo.cc:111:7: error: expected constructor, destructor, or type conversion before '(' token
assign(output,'stage.out');
^
/in/foo.cc:113:8: error: expected constructor, destructor, or type conversion before '(' token
rewrite(output);
^
/in/foo.cc:115:7: error: expected constructor, destructor, or type conversion before '(' token
readln(n,m,h);
^
/in/foo.cc:117:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:123:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:129:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:131:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:135:1: error: 'work' does not name a type
work;
^~~~
/in/foo.cc:137:1: error: 'print' does not name a type
print;
^~~~~
/in/foo.cc:139:1: error: 'end' does not name a type
end.
^~~