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_17908994_6011.cpp:61:2: error: expected unqualified-id before '<' token
 }</pre>
  ^
0_0_17908994_6011.cpp:87:11: error: redefinition of 'const int maxn'
 const int maxn=2010;
           ^
0_0_17908994_6011.cpp:20:11: note: 'const int maxn' previously defined here
 const int maxn=2020;
           ^
0_0_17908994_6011.cpp:89:8: error: redefinition of 'struct Edge'
 struct Edge{
        ^
0_0_17908994_6011.cpp:22:8: error: previous definition of 'struct Edge'
 struct Edge{
        ^
0_0_17908994_6011.cpp:95:12: error: invalid type in declaration before ';' token
 }edge[maxm];
            ^
0_0_17908994_6011.cpp:95:12: error: conflicting declaration 'int edge [1002000]'
0_0_17908994_6011.cpp:24:2: note: previous declaration as 'Edge edge [20200]'
 }edge[10*maxn];
  ^
0_0_17908994_6011.cpp:96:14: error: redefinition of 'int head [2020]'
 int head[maxn],tol,dep[maxn],gap[maxn];
              ^
0_0_17908994_6011.cpp:21:5: note: 'int head [2020]' previously declared here
 int head[maxn],tol;
     ^
0_0_17908994_6011.cpp:96:16: error: redefinition of 'int tol'
 int head[maxn],tol,dep[maxn],gap[maxn];
                ^
0_0_17908994_6011.cpp:21:16: note: 'int tol' previously declared here
 int head[maxn],tol;
                ^
0_0_17908994_6011.cpp: In function 'void addedge(int, int, int)':
0_0_17908994_6011.cpp:98:34: error: no matching function for call to 'Edge::Edge(int&, int&, int&)'
     edge[tol]=Edge(head[u],v,flow);head[u]=tol++;
                                  ^
0_0_17908994_6011.cpp:98:34: note: candidates are:
0_0_17908994_6011.cpp:22:8: note: Edge::Edge()
 struct Edge{
        ^
0_0_17908994_6011.cpp:22:8: note:   candidate expects 0 arguments, 3 provided
0_0_17908994_6011.cpp:22:8: note: constexpr Edge::Edge(const Edge&)
0_0_17908994_6011.cpp:22:8: note:   candidate expects 1 argument, 3 provided
0_0_17908994_6011.cpp:22:8: note: constexpr Edge::Edge(Edge&&)
0_0_17908994_6011.cpp:22:8: note:   candidate expects 1 argument, 3 provided
0_0_17908994_6011.cpp:99:31: error: no matching function for call to 'Edge::Edge(int&, int&, int)'
     edge[tol]=Edge(head[v],u,0);head[v]=tol++;
                               ^
0_0_17908994_6011.cpp:99:31: note: candidates are:
0_0_17908994_6011.cpp:22:8: note: Edge::Edge()
 struct Edge{
        ^
0_0_17908994_6011.cpp:22:8: note:   candidate expects 0 arguments, 3 provided
0_0_17908994_6011.cpp:22:8: note: constexpr Edge::Edge(const Edge&)
0_0_17908994_6011.cpp:22:8: note:   candidate expects 1 argument, 3 provided
0_0_17908994_6011.cpp:22:8: note: constexpr Edge::Edge(Edge&&)
0_0_17908994_6011.cpp:22:8: note:   candidate expects 1 argument, 3 provided
0_0_17908994_6011.cpp: In function 'int sap(int, int, int)':
0_0_17908994_6011.cpp:122:26: error: 'struct Edge' has no member named 'cap'
       if(temp>edge[S[i]].cap)
                          ^
0_0_17908994_6011.cpp:123:24: error: 'struct Edge' has no member named 'cap'
        temp=edge[S[i]].cap,id=i;
                        ^
0_0_17908994_6011.cpp:125:21: error: 'struct Edge' has no member named 'cap'
          edge[S[i]].cap-=temp,edge[S[i]^1].cap+=temp;
                     ^
0_0_17908994_6011.cpp:125:44: error: 'struct Edge' has no member named 'cap'
          edge[S[i]].cap-=temp,edge[S[i]^1].cap+=temp;
                                            ^
0_0_17908994_6011.cpp:130:15: error: 'struct Edge' has no member named 'cap'
    if(edge[i].cap&&dep[u]==dep[edge[i].to]+1)break;
               ^
0_0_17908994_6011.cpp:135:16: error: 'struct Edge' has no member named 'cap'
     if(edge[i].cap&&MIN>dep[edge[i].to])
                ^
0_0_17908994_6011.cpp: In function 'int main()':
0_0_17908994_6011.cpp:144:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17908994_6011.cpp:42:5: note: 'int main()' previously defined here
 int main()
     ^


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-30 09:36:23, Gzip enabled