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_35638591_12153.cpp:78:17: error: redefinition of 'int father [10005]'
 int father[10005], in[10005];
                 ^
0_0_35638591_12153.cpp:4:5: note: 'int father [10005]' previously declared here
 int father[10005], in[10005];
     ^
0_0_35638591_12153.cpp:78:28: error: redefinition of 'int in [10005]'
 int father[10005], in[10005];
                            ^
0_0_35638591_12153.cpp:4:20: note: 'int in [10005]' previously declared here
 int father[10005], in[10005];
                    ^
0_0_35638591_12153.cpp:79:5: error: redefinition of 'int k'
 int k;
     ^
0_0_35638591_12153.cpp:5:5: note: 'int k' previously declared here
 int k;
     ^
0_0_35638591_12153.cpp:80:6: error: redefinition of 'bool res'
 bool res, vis[10005];
      ^
0_0_35638591_12153.cpp:6:6: note: 'bool res' previously declared here
 bool res, vis[10005];
      ^
0_0_35638591_12153.cpp:80:20: error: redefinition of 'bool vis [10005]'
 bool res, vis[10005];
                    ^
0_0_35638591_12153.cpp:6:11: note: 'bool vis [10005]' previously declared here
 bool res, vis[10005];
           ^
0_0_35638591_12153.cpp: In function 'void init()':
0_0_35638591_12153.cpp:82:6: error: redefinition of 'void init()'
 void init()
      ^
0_0_35638591_12153.cpp:8:6: note: 'void init()' previously defined here
 void init()
      ^
0_0_35638591_12153.cpp: In function 'int findx(int)':
0_0_35638591_12153.cpp:90:5: error: redefinition of 'int findx(int)'
 int findx(int x)
     ^
0_0_35638591_12153.cpp:16:5: note: 'int findx(int)' previously defined here
 int findx(int x)
     ^
0_0_35638591_12153.cpp: In function 'void merge(int, int)':
0_0_35638591_12153.cpp:95:6: error: redefinition of 'void merge(int, int)'
 void merge(int x, int y)
      ^
0_0_35638591_12153.cpp:21:6: note: 'void merge(int, int)' previously defined here
 void merge(int x, int y)
      ^
0_0_35638591_12153.cpp: In function 'int main(int, char**)':
0_0_35638591_12153.cpp:107:5: error: redefinition of 'int main(int, char**)'
 int main(int argc, char *argv[])
     ^
0_0_35638591_12153.cpp:33:5: note: 'int main(int, char**)' previously defined here
 int main(int argc, char *argv[])
     ^


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-23 05:16:44, Gzip enabled