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_23207303_6916.cpp:104:11: error: redefinition of 'const int size'
 const int size=100001;
           ^
0_0_23207303_6916.cpp:5:11: note: 'const int size' previously defined here
 const int size=100001; 
           ^
0_0_23207303_6916.cpp:106:16: error: redefinition of 'int parent [100001]'
 int parent[size],rank1[size],count1;
                ^
0_0_23207303_6916.cpp:7:5: note: 'int parent [100001]' previously declared here
 int parent[size],rank1[size],count1; 
     ^
0_0_23207303_6916.cpp:106:28: error: redefinition of 'int rank1 [100001]'
 int parent[size],rank1[size],count1;
                            ^
0_0_23207303_6916.cpp:7:18: note: 'int rank1 [100001]' previously declared here
 int parent[size],rank1[size],count1; 
                  ^
0_0_23207303_6916.cpp:106:30: error: redefinition of 'int count1'
 int parent[size],rank1[size],count1;
                              ^
0_0_23207303_6916.cpp:7:30: note: 'int count1' previously declared here
 int parent[size],rank1[size],count1; 
                              ^
0_0_23207303_6916.cpp: In function 'void init()':
0_0_23207303_6916.cpp:108:7: error: redefinition of 'void init()'
 void  init()
       ^
0_0_23207303_6916.cpp:9:7: note: 'void init()' previously defined here
 void  init() 
       ^
0_0_23207303_6916.cpp: In function 'int find(int)':
0_0_23207303_6916.cpp:128:5: error: redefinition of 'int find(int)'
 int find(int n)
     ^
0_0_23207303_6916.cpp:29:5: note: 'int find(int)' previously defined here
 int find(int n) 
     ^
0_0_23207303_6916.cpp: In function 'void join(int, int)':
0_0_23207303_6916.cpp:136:7: error: redefinition of 'void join(int, int)'
 void  join(int a,int b)
       ^
0_0_23207303_6916.cpp:37:7: note: 'void join(int, int)' previously defined here
 void  join(int a,int b) 
       ^
0_0_23207303_6916.cpp: In function 'int main()':
0_0_23207303_6916.cpp:162:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_23207303_6916.cpp:63: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-29 12:49:05, Gzip enabled