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_25689567_8380.cpp:99:11: error: redefinition of 'const int Max'
 const int Max=205;
           ^
0_0_25689567_8380.cpp:3:11: note: 'const int Max' previously defined here
 const int Max=205;
           ^
0_0_25689567_8380.cpp:100:14: error: redefinition of 'int first [205]'
 int first[Max],top;
              ^
0_0_25689567_8380.cpp:4:5: note: 'int first [205]' previously declared here
 int first[Max],top;
     ^
0_0_25689567_8380.cpp:100:16: error: redefinition of 'int top'
 int first[Max],top;
                ^
0_0_25689567_8380.cpp:4:16: note: 'int top' previously declared here
 int first[Max],top;
                ^
0_0_25689567_8380.cpp:101:8: error: redefinition of 'struct Edge'
 struct Edge
        ^
0_0_25689567_8380.cpp:5:8: error: previous definition of 'struct Edge'
 struct Edge
        ^
0_0_25689567_8380.cpp:104:11: error: invalid type in declaration before ';' token
 }edge[Max];
           ^
0_0_25689567_8380.cpp:104:11: error: conflicting declaration 'int edge [205]'
0_0_25689567_8380.cpp:8:2: note: previous declaration as 'Edge edge [205]'
 }edge[Max];
  ^
0_0_25689567_8380.cpp: In function 'void add_edge(int, int, int)':
0_0_25689567_8380.cpp:105:6: error: redefinition of 'void add_edge(int, int, int)'
 void add_edge(int u,int v,int flow)
      ^
0_0_25689567_8380.cpp:9:6: note: 'void add_edge(int, int, int)' previously defined here
 void add_edge(int u,int v,int flow)
      ^
0_0_25689567_8380.cpp: In function 'void init()':
0_0_25689567_8380.cpp:117:6: error: redefinition of 'void init()'
 void init()
      ^
0_0_25689567_8380.cpp:21:6: note: 'void init()' previously defined here
 void init()
      ^
0_0_25689567_8380.cpp: At global scope:
0_0_25689567_8380.cpp:122:13: error: redefinition of 'int dist [205]'
 int dist[Max],vis[Max];
             ^
0_0_25689567_8380.cpp:26:5: note: 'int dist [205]' previously declared here
 int dist[Max],vis[Max];
     ^
0_0_25689567_8380.cpp:122:22: error: redefinition of 'int vis [205]'
 int dist[Max],vis[Max];
                      ^
0_0_25689567_8380.cpp:26:15: note: 'int vis [205]' previously declared here
 int dist[Max],vis[Max];
               ^
0_0_25689567_8380.cpp: In function 'int bfs(int, int)':
0_0_25689567_8380.cpp:123:5: error: redefinition of 'int bfs(int, int)'
 int bfs(int s,int t)
     ^
0_0_25689567_8380.cpp:27:5: note: 'int bfs(int, int)' previously defined here
 int bfs(int s,int t)
     ^
0_0_25689567_8380.cpp: In function 'int dfs(int, int, int)':
0_0_25689567_8380.cpp:147:5: error: redefinition of 'int dfs(int, int, int)'
 int dfs(int now,int t,int min_flow)
     ^
0_0_25689567_8380.cpp:51:5: note: 'int dfs(int, int, int)' previously defined here
 int dfs(int now,int t,int min_flow)
     ^
0_0_25689567_8380.cpp: In function 'void dinic(int, int)':
0_0_25689567_8380.cpp:167:6: error: redefinition of 'void dinic(int, int)'
 void dinic(int s,int t)
      ^
0_0_25689567_8380.cpp:71:6: note: 'void dinic(int, int)' previously defined here
 void dinic(int s,int t)
      ^
0_0_25689567_8380.cpp: In function 'int main()':
0_0_25689567_8380.cpp:177:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_25689567_8380.cpp:81: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-07-09 06:09:13, Gzip enabled