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_39826827_17953.cpp:72:5: error: redefinition of 'int pre [100001]'
   72 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:6:5: note: 'int pre [100001]' previously declared here
    6 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:73:5: error: redefinition of 'int num'
   73 | int num;
      |     ^~~
0_0_39826827_17953.cpp:7:5: note: 'int num' previously declared here
    7 | int num;
      |     ^~~
0_0_39826827_17953.cpp:74:5: error: redefinition of 'int find(int)'
   74 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:8:5: note: 'int find(int)' previously defined here
    8 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:80:5: error: redefinition of 'int union_n [100001]'
   80 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:14:5: note: 'int union_n [100001]' previously declared here
   14 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:81:5: error: redefinition of 'int flag'
   81 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:15:5: note: 'int flag' previously declared here
   15 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:82:5: error: redefinition of 'int Case'
   82 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:16:5: note: 'int Case' previously declared here
   16 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:83:5: error: redefinition of 'int main()'
   83 | int main()
      |     ^~~~
0_0_39826827_17953.cpp:17:5: note: 'int main()' previously defined here
   17 | int main()
      |     ^~~~
0_0_39826827_17953.cpp:138:5: error: redefinition of 'int pre [100001]'
  138 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:6:5: note: 'int pre [100001]' previously declared here
    6 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:139:5: error: redefinition of 'int num'
  139 | int num;
      |     ^~~
0_0_39826827_17953.cpp:7:5: note: 'int num' previously declared here
    7 | int num;
      |     ^~~
0_0_39826827_17953.cpp:140:5: error: redefinition of 'int find(int)'
  140 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:8:5: note: 'int find(int)' previously defined here
    8 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:146:5: error: redefinition of 'int union_n [100001]'
  146 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:14:5: note: 'int union_n [100001]' previously declared here
   14 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:147:5: error: redefinition of 'int flag'
  147 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:15:5: note: 'int flag' previously declared here
   15 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:148:5: error: redefinition of 'int Case'
  148 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:16:5: note: 'int Case' previously declared here
   16 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:149:5: error: redefinition of 'int main()'
  149 | int main()
      |     ^~~~
0_0_39826827_17953.cpp:17:5: note: 'int main()' previously defined here
   17 | int main()
      |     ^~~~
0_0_39826827_17953.cpp:204:5: error: redefinition of 'int pre [100001]'
  204 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:6:5: note: 'int pre [100001]' previously declared here
    6 | int pre[MAX];
      |     ^~~
0_0_39826827_17953.cpp:205:5: error: redefinition of 'int num'
  205 | int num;
      |     ^~~
0_0_39826827_17953.cpp:7:5: note: 'int num' previously declared here
    7 | int num;
      |     ^~~
0_0_39826827_17953.cpp:206:5: error: redefinition of 'int find(int)'
  206 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:8:5: note: 'int find(int)' previously defined here
    8 | int find(int x)
      |     ^~~~
0_0_39826827_17953.cpp:212:5: error: redefinition of 'int union_n [100001]'
  212 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:14:5: note: 'int union_n [100001]' previously declared here
   14 | int union_n[MAX];
      |     ^~~~~~~
0_0_39826827_17953.cpp:213:5: error: redefinition of 'int flag'
  213 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:15:5: note: 'int flag' previously declared here
   15 | int flag;
      |     ^~~~
0_0_39826827_17953.cpp:214:5: error: redefinition of 'int Case'
  214 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:16:5: note: 'int Case' previously declared here
   16 | int Case;
      |     ^~~~
0_0_39826827_17953.cpp:215:5: error: redefinition of 'int main()'
  215 | int main()
      |     ^~~~
0_0_39826827_17953.cpp:17:5: note: 'int main()' previously defined here
   17 | 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-25 03:37:44, Gzip enabled