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_29395169_8096.cpp:113:11: error: redefinition of 'const int MAXN'
 const int MAXN=1000+5;
           ^
0_0_29395169_8096.cpp:3:11: note: 'const int MAXN' previously defined here
 const int MAXN=1000+5;
           ^
0_0_29395169_8096.cpp:114:11: error: redefinition of 'const int MAXM'
 const int MAXM=1e6+5;
           ^
0_0_29395169_8096.cpp:4:11: note: 'const int MAXM' previously defined here
 const int MAXM=1e6+5;
           ^
0_0_29395169_8096.cpp:115:5: error: redefinition of 'int n'
 int n,m,pre[MAXN],trc;
     ^
0_0_29395169_8096.cpp:5:5: note: 'int n' previously declared here
 int n,m,pre[MAXN],trc;
     ^
0_0_29395169_8096.cpp:115:7: error: redefinition of 'int m'
 int n,m,pre[MAXN],trc;
       ^
0_0_29395169_8096.cpp:5:7: note: 'int m' previously declared here
 int n,m,pre[MAXN],trc;
       ^
0_0_29395169_8096.cpp:115:17: error: redefinition of 'int pre [1005]'
 int n,m,pre[MAXN],trc;
                 ^
0_0_29395169_8096.cpp:5:9: note: 'int pre [1005]' previously declared here
 int n,m,pre[MAXN],trc;
         ^
0_0_29395169_8096.cpp:115:19: error: redefinition of 'int trc'
 int n,m,pre[MAXN],trc;
                   ^
0_0_29395169_8096.cpp:5:19: note: 'int trc' previously declared here
 int n,m,pre[MAXN],trc;
                   ^
0_0_29395169_8096.cpp:116:8: error: redefinition of 'double mst'
 double mst;
        ^
0_0_29395169_8096.cpp:6:8: note: 'double mst' previously declared here
 double mst;
        ^
0_0_29395169_8096.cpp:117:14: error: redefinition of 'double x [1005]'
 double x[MAXN],y[MAXN],city[MAXN];
              ^
0_0_29395169_8096.cpp:7:8: note: 'double x [1005]' previously declared here
 double x[MAXN],y[MAXN],city[MAXN];
        ^
0_0_29395169_8096.cpp:117:22: error: redefinition of 'double y [1005]'
 double x[MAXN],y[MAXN],city[MAXN];
                      ^
0_0_29395169_8096.cpp:7:16: note: 'double y [1005]' previously declared here
 double x[MAXN],y[MAXN],city[MAXN];
                ^
0_0_29395169_8096.cpp:117:33: error: redefinition of 'double city [1005]'
 double x[MAXN],y[MAXN],city[MAXN];
                                 ^
0_0_29395169_8096.cpp:7:24: note: 'double city [1005]' previously declared here
 double x[MAXN],y[MAXN],city[MAXN];
                        ^
0_0_29395169_8096.cpp:118:8: error: redefinition of 'struct Edge'
 struct Edge{
        ^
0_0_29395169_8096.cpp:8:8: error: previous definition of 'struct Edge'
 struct Edge{
        ^
0_0_29395169_8096.cpp:121:9: error: invalid type in declaration before ',' token
 }e[MAXM],tr[MAXM];
         ^
0_0_29395169_8096.cpp:121:9: error: conflicting declaration 'int e [1000005]'
0_0_29395169_8096.cpp:11:2: note: previous declaration as 'Edge e [1000005]'
 }e[MAXM],tr[MAXM];
  ^
0_0_29395169_8096.cpp:121:17: error: conflicting declaration 'int tr [1000005]'
 }e[MAXM],tr[MAXM];
                 ^
0_0_29395169_8096.cpp:11:10: note: previous declaration as 'Edge tr [1000005]'
 }e[MAXM],tr[MAXM];
          ^
0_0_29395169_8096.cpp: In function 'bool cmp(Edge, Edge)':
0_0_29395169_8096.cpp:122:6: error: redefinition of 'bool cmp(Edge, Edge)'
 bool cmp(Edge x,Edge y){
      ^
0_0_29395169_8096.cpp:12:6: note: 'bool cmp(Edge, Edge)' previously defined here
 bool cmp(Edge x,Edge y){
      ^
0_0_29395169_8096.cpp: In function 'void init()':
0_0_29395169_8096.cpp:125:6: error: redefinition of 'void init()'
 void init(){
      ^
0_0_29395169_8096.cpp:15:6: note: 'void init()' previously defined here
 void init(){
      ^
0_0_29395169_8096.cpp: In function 'void Pre()':
0_0_29395169_8096.cpp:137:6: error: redefinition of 'void Pre()'
 void Pre(){
      ^
0_0_29395169_8096.cpp:27:6: note: 'void Pre()' previously defined here
 void Pre(){
      ^
0_0_29395169_8096.cpp: In function 'int find(int)':
0_0_29395169_8096.cpp:140:5: error: redefinition of 'int find(int)'
 int find(int x){
     ^
0_0_29395169_8096.cpp:30:5: note: 'int find(int)' previously defined here
 int find(int x){
     ^
0_0_29395169_8096.cpp: In function 'int kruskal()':
0_0_29395169_8096.cpp:144:5: error: redefinition of 'int kruskal()'
 int kruskal(){
     ^
0_0_29395169_8096.cpp:34:5: note: 'int kruskal()' previously defined here
 int kruskal(){
     ^
0_0_29395169_8096.cpp: In function 'int main()':
0_0_29395169_8096.cpp:165:8: error: redefinition of 'int main()'
 signed main(){
        ^
0_0_29395169_8096.cpp:55:8: note: 'int main()' previously defined here
 signed 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-16 07:25:52, Gzip enabled