0_0_28848918_15865.cpp:1:1: error: expected unqualified-id before '<' token
<code class=" hljs axapta">void add(int x,int y,int z){
^
0_0_28848918_15865.cpp: In function 'int dfs(int, int)':
0_0_28848918_15865.cpp:5:12: error: 'T' was not declared in this scope
if (x==T) return sum;
^
0_0_28848918_15865.cpp:6:16: error: 'lnk' was not declared in this scope
for (int j=lnk[x];j!=-1;j=nxt[j])
^
0_0_28848918_15865.cpp:6:31: error: 'nxt' was not declared in this scope
for (int j=lnk[x];j!=-1;j=nxt[j])
^
0_0_28848918_15865.cpp:7:9: error: 'dep' was not declared in this scope
if (dep[son[j]]==dep[x]+1&&w[j]!=0) {
^
0_0_28848918_15865.cpp:7:13: error: 'son' was not declared in this scope
if (dep[son[j]]==dep[x]+1&&w[j]!=0) {
^
0_0_28848918_15865.cpp:7:32: error: 'w' was not declared in this scope
if (dep[son[j]]==dep[x]+1&&w[j]!=0) {
^
0_0_28848918_15865.cpp:8:41: error: 'min' was not declared in this scope
int sum1=dfs(son[j],min(sum,w[j]));
^
0_0_28848918_15865.cpp: In function 'int bfs()':
0_0_28848918_15865.cpp:14:12: error: 'dep' was not declared in this scope
memset(dep,0,sizeof(dep));
^
0_0_28848918_15865.cpp:14:29: error: 'memset' was not declared in this scope
memset(dep,0,sizeof(dep));
^
0_0_28848918_15865.cpp:15:24: error: 'que' was not declared in this scope
int head=0,tail=1; que[tail]=S,dep[1]=1;
^
0_0_28848918_15865.cpp:15:34: error: 'S' was not declared in this scope
int head=0,tail=1; que[tail]=S,dep[1]=1;
^
0_0_28848918_15865.cpp:18:20: error: 'lnk' was not declared in this scope
for (int j=lnk[que[head]];j!=-1;j=nxt[j])
^
0_0_28848918_15865.cpp:18:43: error: 'nxt' was not declared in this scope
for (int j=lnk[que[head]];j!=-1;j=nxt[j])
^
0_0_28848918_15865.cpp:19:13: error: 'w' was not declared in this scope
if (w[j]>0&&dep[son[j]]==0)
^
0_0_28848918_15865.cpp:19:25: error: 'son' was not declared in this scope
if (w[j]>0&&dep[son[j]]==0)
^
0_0_28848918_15865.cpp:22:13: error: 'T' was not declared in this scope
if (dep[T]>0) return 1; else return 0;
^
0_0_28848918_15865.cpp: In function 'int dinic()':
0_0_28848918_15865.cpp:27:24: error: 'S' was not declared in this scope
while (sum=dfs(S,inf)) ans+=sum;
^
0_0_28848918_15865.cpp:27:26: error: 'inf' was not declared in this scope
while (sum=dfs(S,inf)) ans+=sum;
^
0_0_28848918_15865.cpp:27:32: error: 'ans' was not declared in this scope
while (sum=dfs(S,inf)) ans+=sum;
^
0_0_28848918_15865.cpp:29:12: error: 'ans' was not declared in this scope
return ans;
^
|