0_0_17367724_318.cpp: In function 'int BFS()':
0_0_17367724_318.cpp:31:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
for(int i=head;i!=-1;i=edge.nxt){
^
0_0_17367724_318.cpp:31:29: error: request for member 'nxt' in 'edge', which is of non-class type 'Edge [400020]'
for(int i=head;i!=-1;i=edge.nxt){
^
0_0_17367724_318.cpp:32:12: error: request for member 'to' in 'edge', which is of non-class type 'Edge [400020]'
int v=edge.to;
^
0_0_17367724_318.cpp:33:9: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
if(edge.cap>0 && dep[v]==-1){
^
0_0_17367724_318.cpp:34:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
dep[v]=dep+1;
^
0_0_17367724_318.cpp: In function 'int DFS(int, int)':
0_0_17367724_318.cpp:45:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
for(int i=head;i!=-1;i=edge.nxt){
^
0_0_17367724_318.cpp:45:29: error: request for member 'nxt' in 'edge', which is of non-class type 'Edge [400020]'
for(int i=head;i!=-1;i=edge.nxt){
^
0_0_17367724_318.cpp:46:12: error: request for member 'to' in 'edge', which is of non-class type 'Edge [400020]'
int v=edge.to;
^
0_0_17367724_318.cpp:47:9: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
^
0_0_17367724_318.cpp:47:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
^
0_0_17367724_318.cpp:47:60: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
^
0_0_17367724_318.cpp:48:6: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
edge.cap-=tmp;
^
0_0_17367724_318.cpp:53:4: error: incompatible types in assignment of 'int' to 'int [1010]'
dep=-1;
^
|