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_36755807_16079.cpp:45:5: error: redefinition of 'int a'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
     ^
0_0_36755807_16079.cpp:5:5: note: 'int a' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
     ^
0_0_36755807_16079.cpp:45:7: error: redefinition of 'int b'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
       ^
0_0_36755807_16079.cpp:5:7: note: 'int b' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
       ^
0_0_36755807_16079.cpp:45:9: error: redefinition of 'int mn'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
         ^
0_0_36755807_16079.cpp:5:9: note: 'int mn' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
         ^
0_0_36755807_16079.cpp:45:12: error: redefinition of 'int mx'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
            ^
0_0_36755807_16079.cpp:5:12: note: 'int mx' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
            ^
0_0_36755807_16079.cpp:45:15: error: redefinition of 'int cnt'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
               ^
0_0_36755807_16079.cpp:5:15: note: 'int cnt' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
               ^
0_0_36755807_16079.cpp:45:19: error: redefinition of 'int flag'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                   ^
0_0_36755807_16079.cpp:5:19: note: 'int flag' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                   ^
0_0_36755807_16079.cpp:45:34: error: redefinition of 'int pre [100001]'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                                  ^
0_0_36755807_16079.cpp:5:24: note: 'int pre [100001]' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                        ^
0_0_36755807_16079.cpp:45:46: error: redefinition of 'int vis [100001]'
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                                              ^
0_0_36755807_16079.cpp:5:36: note: 'int vis [100001]' previously declared here
 int a,b,mn,mx,cnt,flag,pre[100001],vis[100001];
                                    ^
0_0_36755807_16079.cpp: In function 'int find(int)':
0_0_36755807_16079.cpp:46:5: error: redefinition of 'int find(int)'
 int find(int x)
     ^
0_0_36755807_16079.cpp:6:5: note: 'int find(int)' previously defined here
 int find(int x)
     ^
0_0_36755807_16079.cpp: In function 'void join(int, int)':
0_0_36755807_16079.cpp:51:6: error: redefinition of 'void join(int, int)'
 void join(int a,int b)
      ^
0_0_36755807_16079.cpp:11:6: note: 'void join(int, int)' previously defined here
 void join(int a,int b)
      ^
0_0_36755807_16079.cpp: In function 'int main()':
0_0_36755807_16079.cpp:57:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_36755807_16079.cpp:17: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-12-02 13:17:59, Gzip enabled