/in/foo.cc:2:9: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~~~
/in/foo.cc:2:16: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~~~
/in/foo.cc:2:23: error: too many decimal points in number
f:array[0..100,0..100,1..3] of longint;
^~~~
/in/foo.cc:3:9: error: too many decimal points in number
a:array[1..100,1..3] of longint;
^~~~~~
/in/foo.cc:3:16: error: too many decimal points in number
a:array[1..100,1..3] of longint;
^~~~
/in/foo.cc:1:1: error: 'var' does not name a type
var
^~~
/in/foo.cc:3:2: error: found ':' in nested-name-specifier, expected '::'
a:array[1..100,1..3] of longint;
^
/in/foo.cc:3:1: error: 'a' does not name a type
a:array[1..100,1..3] of longint;
^
/in/foo.cc:4:1: error: 'i' does not name a type
i,j,k,n,m,ans,ii:longint;
^
/in/foo.cc:5:1: error: 'function' does not name a type
function max(x,y:longint):longint;
^~~~~~~~
/in/foo.cc:6:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:9:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:10:1: error: 'function' does not name a type
function c(x:longint):longint;
^~~~~~~~
/in/foo.cc:11:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:13:1: error: expected unqualified-id before 'if'
if x=2 then c:=3;
^~
/in/foo.cc:14:1: error: expected unqualified-id before 'if'
if x=3 then c:=1;
^~
/in/foo.cc:15:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:16:1: error: 'function' does not name a type
function d(x:longint):longint;
^~~~~~~~
/in/foo.cc:17:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:19:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:20:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:22:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:24:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:27:1: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:34:1: error: 'f' does not name a type
f[i,j,k]:=max(f[i,j,k],f[ii,j-1,2]+a[i,k]);
^
/in/foo.cc:35:1: error: 'f' does not name a type
f[i,j,k]:=max(f[i,j,k],f[ii,j-1,3]+a[i,k]);
^
/in/foo.cc:36:1: error: expected unqualified-id before 'if'
if ((a[ii,1]>=a[i,c(k)])and(a[ii,2]>=a[i,d(k)]))or((a[ii,1]>=a[i,d(k)])and(a[ii,2]>=a[i,c(k)])) then
^~
/in/foo.cc:38:1: error: expected unqualified-id before 'if'
if ((a[ii,1]>=a[i,c(k)])and(a[ii,3]>=a[i,d(k)]))or((a[ii,1]>=a[i,d(k)])and(a[ii,3]>=a[i,c(k)])) then
^~
/in/foo.cc:40:1: error: expected unqualified-id before 'if'
if ((a[ii,3]>=a[i,c(k)])and(a[ii,2]>=a[i,d(k)]))or((a[ii,3]>=a[i,d(k)])and(a[ii,2]>=a[i,c(k)])) then
^~
/in/foo.cc:42:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:43:1: error: 'ans' does not name a type
ans:=max(ans,f[i,j,k]);
^~~
/in/foo.cc:44:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:45:8: error: expected constructor, destructor, or type conversion before '(' token
writeln(ans);
^
/in/foo.cc:46:1: error: 'end' does not name a type
end.
^~~