/in/foo.cc:3:26: error: too many decimal points in number
var start,h,nd,dis:array[0..maxn]of longint;
^~~~~~~
/in/foo.cc:4:22: error: too many decimal points in number
next,aim,w:array[0..maxm]of longint;
^~~~~~~
/in/foo.cc:5:15: error: too many decimal points in number
l,a:array[0..maxm*10]of longint;
^~~~~~~
/in/foo.cc:6:15: error: too many decimal points in number
vis:array[0..maxn]of boolean;
^~~~~~~
/in/foo.cc:1:7: error: 'maxn' does not name a type
const maxn=3005;
^~~~
/in/foo.cc:2:7: error: 'maxm' does not name a type
maxm=70005;
^~~~
/in/foo.cc:3:1: error: 'var' does not name a type
var start,h,nd,dis:array[0..maxn]of longint;
^~~
/in/foo.cc:4:5: error: 'next' does not name a type
next,aim,w:array[0..maxm]of longint;
^~~~
/in/foo.cc:5:5: error: 'l' does not name a type
l,a:array[0..maxm*10]of longint;
^
/in/foo.cc:6:8: error: found ':' in nested-name-specifier, expected '::'
vis:array[0..maxn]of boolean;
^
/in/foo.cc:6:5: error: 'vis' does not name a type
vis:array[0..maxn]of boolean;
^~~
/in/foo.cc:8:5: error: 'e' does not name a type
e,t,n,m:longint;
^
/in/foo.cc:10:1: error: 'function' does not name a type
function max(a,b:longint):longint;begin if a>b then exit(a);exit(b);end;
^~~~~~~~
/in/foo.cc:10:35: error: 'begin' does not name a type
function max(a,b:longint):longint;begin if a>b then exit(a);exit(b);end;
^~~~~
/in/foo.cc:10:65: error: expected constructor, destructor, or type conversion before '(' token
function max(a,b:longint):longint;begin if a>b then exit(a);exit(b);end;
^
/in/foo.cc:10:69: error: 'end' does not name a type
function max(a,b:longint):longint;begin if a>b then exit(a);exit(b);end;
^~~
/in/foo.cc:11:1: error: 'function' does not name a type
function min(a,b:longint):longint;begin if a>b then exit(b);exit(a);end;
^~~~~~~~
/in/foo.cc:11:35: error: 'begin' does not name a type
function min(a,b:longint):longint;begin if a>b then exit(b);exit(a);end;
^~~~~
/in/foo.cc:11:65: error: expected constructor, destructor, or type conversion before '(' token
function min(a,b:longint):longint;begin if a>b then exit(b);exit(a);end;
^
/in/foo.cc:11:69: error: 'end' does not name a type
function min(a,b:longint):longint;begin if a>b then exit(b);exit(a);end;
^~~
/in/foo.cc:14:1: error: 'procedure' does not name a type
procedure addd(x,y,z:longint);
^~~~~~~~~
/in/foo.cc:15:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:16:10: error: 'next' does not name a type
inc(e);next[e]:=start[x];
^~~~
/in/foo.cc:17:3: error: 'aim' does not name a type
aim[e]:=y;
^~~
/in/foo.cc:18:3: error: 'w' does not name a type
w[e]:=z;
^
/in/foo.cc:19:3: error: 'start' does not name a type
start[x]:=e;
^~~~~
/in/foo.cc:20:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:22:1: error: 'procedure' does not name a type
procedure init;
^~~~~~~~~
/in/foo.cc:23:1: error: 'var' does not name a type
var x,y,z,i,j:longint;
^~~
/in/foo.cc:24:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:26:3: error: expected unqualified-id before 'for'
for i:=1 to m do
^~~
/in/foo.cc:29:11: error: expected constructor, destructor, or type conversion before '(' token
addd(x,y,z);
^
/in/foo.cc:30:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:32:3: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:35:7: error: expected unqualified-id before 'for'
for j:=1 to nd[i] do
^~~
/in/foo.cc:38:14: error: expected constructor, destructor, or type conversion before '(' token
inc(t);l[t]:=h[x];
^
/in/foo.cc:38:18: error: 'l' does not name a type
inc(t);l[t]:=h[x];
^
/in/foo.cc:39:11: error: 'a' does not name a type
a[t]:=i;
^
/in/foo.cc:40:11: error: 'h' does not name a type
h[x]:=t;
^
/in/foo.cc:41:9: error: 'end' does not name a type
end;
^~~
/in/foo.cc:42:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:43:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:45:1: error: 'procedure' does not name a type
procedure work;
^~~~~~~~~
/in/foo.cc:46:1: error: 'var' does not name a type
var i,j,k:longint;
^~~
/in/foo.cc:47:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:50:3: error: 'dis' does not name a type
dis[1]:=0;
^~~
/in/foo.cc:51:3: error: expected unqualified-id before 'for'
for i:=1 to n do
^~~
/in/foo.cc:54:7: error: expected unqualified-id before 'for'
for j:=1 to n do
^~~
/in/foo.cc:57:7: error: expected unqualified-id before 'if'
if k=n then break;
^~
/in/foo.cc:58:7: error: 'vis' does not name a type
vis[k]:=true;
^~~
/in/foo.cc:60:7: error: 'j' does not name a type
j:=start[k];
^
/in/foo.cc:61:7: error: expected unqualified-id before 'while'
while j<>0 do
^~~~~
/in/foo.cc:64:11: error: 'j' does not name a type
j:=next[j];
^
/in/foo.cc:65:9: error: 'end' does not name a type
end;
^~~
/in/foo.cc:67:7: error: 'j' does not name a type
j:=h[k];
^
/in/foo.cc:68:7: error: expected unqualified-id before 'while'
while j<>0 do
^~~~~
/in/foo.cc:71:11: error: 'dis' does not name a type
dis[a[j]]:=max(dis[a[j]],dis[k]);
^~~
/in/foo.cc:72:11: error: 'j' does not name a type
j:=l[j];
^
/in/foo.cc:73:9: error: 'end' does not name a type
end;
^~~
/in/foo.cc:74:5: error: 'end' does not name a type
end;
^~~
/in/foo.cc:75:10: error: expected constructor, destructor, or type conversion before '(' token
writeln(dis[n]);
^
/in/foo.cc:76:1: error: 'end' does not name a type
end;
^~~
/in/foo.cc:78:1: error: 'begin' does not name a type
begin
^~~~~
/in/foo.cc:81:3: error: 'work' does not name a type
work;
^~~~
/in/foo.cc:82:1: error: 'end' does not name a type
end.
^~~