/in/foo.c:1:1: error: unknown type name 'Const'
Const maxn=1000100;
^~~~~
/in/foo.c:3:1: error: unknown type name 'Var'
Var
^~~
/in/foo.c:5:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
sa,sb,se,a,b,e,f,q:array[1..maxn*2]of int64;
^
/in/foo.c:5:26: error: too many decimal points in number
sa,sb,se,a,b,e,f,q:array[1..maxn*2]of int64;
^~~~~~~
/in/foo.c:7:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
vis:array[1..maxn*2]of boolean;
^
/in/foo.c:7:11: error: too many decimal points in number
vis:array[1..maxn*2]of boolean;
^~~~~~~
/in/foo.c:9:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
dis:array[1..maxn*2]of int64;
^
/in/foo.c:9:11: error: too many decimal points in number
dis:array[1..maxn*2]of int64;
^~~~~~~
/in/foo.c:11:1: warning: data definition has no type or storage class
n,m,k,i,j:longint;
^
/in/foo.c:11:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:11:3: warning: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
n,m,k,i,j:longint;
^
/in/foo.c:11:5: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
n,m,k,i,j:longint;
^
/in/foo.c:11:7: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
n,m,k,i,j:longint;
^
/in/foo.c:11:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
n,m,k,i,j:longint;
^
/in/foo.c:13:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
sum:qword;
^
/in/foo.c:15:1: error: unknown type name 'Procedure'
Procedure init;
^~~~~~~~~
/in/foo.c:17:1: error: unknown type name 'var'
var i:longint;
^~~
/in/foo.c:17:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
var i:longint;
^
/in/foo.c:19:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:21:1: warning: parameter names (without types) in function declaration
readln(n,m);
^~~~~~
/in/foo.c:23:1: error: expected identifier or '(' before 'for'
for i:=1 to m do readln(sa[i],sb[i],se[i]);
^~~
/in/foo.c:25:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:25:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:27:1: error: unknown type name 'Procedure'
Procedure qsort(l,r:longint);
^~~~~~~~~
/in/foo.c:27:20: error: expected ')' before ':' token
Procedure qsort(l,r:longint);
^
/in/foo.c:29:1: error: unknown type name 'var'
var i,j,x,y:longint;
^~~
/in/foo.c:29:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
var i,j,x,y:longint;
^
/in/foo.c:31:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:33:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
i:=l;j:=r;x:=a[(l+r)shr 1];
^
/in/foo.c:33:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
i:=l;j:=r;x:=a[(l+r)shr 1];
^
/in/foo.c:33:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
i:=l;j:=r;x:=a[(l+r)shr 1];
^
/in/foo.c:37:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'while'
while a[i]x do dec(j);
^~~~~
/in/foo.c:39:1: error: expected identifier or '(' before 'if'
if ij;
^~
/in/foo.c:41:1: error: expected identifier or '(' before 'if'
if idis+cost1[k] then begin
^~
/in/foo.c:45:1: error: expected identifier or '(' before 'if'
if not check[toti1[k]] then begin
^~
/in/foo.c:49:6: error: 'tail' undeclared here (not in a function)
team[tail]:=toti1[k];
^~~~
/in/foo.c:49:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
team[tail]:=toti1[k];
^
/in/foo.c:51:7: error: 'toti1' undeclared here (not in a function)
check[toti1[k]]:=true;
^~~~~
/in/foo.c:51:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
check[toti1[k]]:=true;
^
/in/foo.c:53:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:53:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:55:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:55:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:57:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
k:=next1[k];
^
/in/foo.c:59:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:59:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:61:1: error: unknown type name 'until'
until head>tail;
^~~~~
/in/foo.c:61:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
until head>tail;
^
/in/foo.c:63:1: error: expected identifier or '(' before 'for'
for i:=1 to p do inc(ans,dis[i]);
^~~
/in/foo.c:65:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:65:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:66:1: error: unknown type name 'procedure'
procedure spfa2;
^~~~~~~~~
/in/foo.c:68:1: error: unknown type name 'var'
var
^~~
/in/foo.c:70:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
i,head,tail,k,u:longint;
^
/in/foo.c:72:1: error: unknown type name 'begin'
begin
^~~~~
/in/foo.c:74:16: error: expected ')' before 'sizeof'
fillchar(check,sizeof(check),false);
^~~~~~
/in/foo.c:76:1: error: expected identifier or '(' before 'for'
for i:=1 to p do dis[i]:=30000000001;
^~~
/in/foo.c:78:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
head:=0;
^
/in/foo.c:80:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
tail:=1;
^
/in/foo.c:82:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
dis[1]:=0;
^
/in/foo.c:84:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
team[1]:=1;
^
/in/foo.c:86:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
check[1]:=true;
^
/in/foo.c:88:1: error: unknown type name 'repeat'
repeat
^~~~~~
/in/foo.c:90:1: warning: parameter names (without types) in function declaration
inc(head);
^~~
/in/foo.c:92:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
u:=team[head];
^
/in/foo.c:94:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
check:=false;
^
/in/foo.c:96:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
k:=list2;
^
/in/foo.c:98:1: error: expected identifier or '(' before 'while'
while k0 do begin
^~~~~
/in/foo.c:104:1: error: expected identifier or '(' before 'if'
if not check[toti2[k]] then begin
^~
/in/foo.c:108:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
team[tail]:=toti2[k];
^
/in/foo.c:110:7: error: 'toti2' undeclared here (not in a function)
check[toti2[k]]:=true;
^~~~~
/in/foo.c:110:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
check[toti2[k]]:=true;
^
/in/foo.c:112:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:112:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:114:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:114:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:116:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
k:=next2[k];
^
/in/foo.c:118:1: warning: data definition has no type or storage class
end;
^~~
/in/foo.c:118:1: warning: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
/in/foo.c:120:1: error: unknown type name 'until'
until head>tail;
^~~~~
/in/foo.c:120:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
until head>tail;
^
/in/foo