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_33659784_20931.cpp: In function 'int main()':
0_0_33659784_20931.cpp:99:20: error: conflicting declaration 'int t'
   int s = nn + nm, t = s + 1;
                    ^
0_0_33659784_20931.cpp:88:15: note: previous declaration as 'std::vector<int> t'
   vector<int> t(n), x(n);
               ^
0_0_33659784_20931.cpp:104:26: error: no matching function for call to 'Dinic::adde(int, std::vector<int>&, int)'
    flow.adde(i + nn, t, 1);
                          ^
0_0_33659784_20931.cpp:104:26: note: candidate is:
0_0_33659784_20931.cpp:22:7: note: void Dinic::adde(int, int, int)
  void adde(int u, int v, int w) {
       ^
0_0_33659784_20931.cpp:22:7: note:   no known conversion for argument 2 from 'std::vector<int>' to 'int'
0_0_33659784_20931.cpp:111:41: error: no matching function for call to 'Dinic::maxflow(int&, std::vector<int>&, int)'
   cout << flow.maxflow(s, t, nn + nm + 2) << '\n';
                                         ^
0_0_33659784_20931.cpp:111:41: note: candidate is:
0_0_33659784_20931.cpp:46:5: note: ll Dinic::maxflow(int, int, int)
  ll maxflow(int s, int t, int n) {
     ^
0_0_33659784_20931.cpp:46:5: note:   no known conversion for argument 2 from 'std::vector<int>' to 'int'


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-25 22:37:12, Gzip enabled