F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 20:23:34, Gzip enabled