0_0_18131493_17177.cpp: In member function 'int NetWorkFlow::spfa()':
0_0_18131493_17177.cpp:89:3: error: 'q' was not declared in this scope
q[1] = S; v[S] = 1; dist[S] = 0;
^
0_0_18131493_17177.cpp: In function 'void work(int)':
0_0_18131493_17177.cpp:134:14: error: no matching function for call to 'SPFA::main()'
spfa.main();
^
0_0_18131493_17177.cpp:134:14: note: candidate is:
0_0_18131493_17177.cpp:48:7: note: void SPFA::main(int)
void main(int s) {
^
0_0_18131493_17177.cpp:48:7: note: candidate expects 1 argument, 0 provided
0_0_18131493_17177.cpp:135:8: error: 'struct NetWorkFlow' has no member named 'addedge'
nwf.addedge(nwf.S, ren[i], 1, 0);
^
0_0_18131493_17177.cpp:137:9: error: 'struct NetWorkFlow' has no member named 'addedge'
nwf.addedge(ren[i], n+edge[p].adj, 1, spfa.dist[edge[p].adj]);
^
0_0_18131493_17177.cpp:140:10: error: 'struct NetWorkFlow' has no member named 'addedge'
nwf.addedge(n+edge[p].adj, nwf.T, 1, 0);
^
|