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_35202936_23227.cpp:40:11: error: redefinition of 'const int M'
 const int M=1000005;
           ^
0_0_35202936_23227.cpp:5:11: note: 'const int M' previously defined here
 const int M=1000005;
           ^
0_0_35202936_23227.cpp:41:5: error: redefinition of 'int n'
 int n,m,ans,a[M],b[M],nxt[M],T;
     ^
0_0_35202936_23227.cpp:6:5: note: 'int n' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
     ^
0_0_35202936_23227.cpp:41:7: error: redefinition of 'int m'
 int n,m,ans,a[M],b[M],nxt[M],T;
       ^
0_0_35202936_23227.cpp:6:7: note: 'int m' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
       ^
0_0_35202936_23227.cpp:41:9: error: redefinition of 'int ans'
 int n,m,ans,a[M],b[M],nxt[M],T;
         ^
0_0_35202936_23227.cpp:6:9: note: 'int ans' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
         ^
0_0_35202936_23227.cpp:41:16: error: redefinition of 'int a [1000005]'
 int n,m,ans,a[M],b[M],nxt[M],T;
                ^
0_0_35202936_23227.cpp:6:13: note: 'int a [1000005]' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
             ^
0_0_35202936_23227.cpp:41:21: error: redefinition of 'int b [1000005]'
 int n,m,ans,a[M],b[M],nxt[M],T;
                     ^
0_0_35202936_23227.cpp:6:18: note: 'int b [1000005]' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
                  ^
0_0_35202936_23227.cpp:41:28: error: redefinition of 'int nxt [1000005]'
 int n,m,ans,a[M],b[M],nxt[M],T;
                            ^
0_0_35202936_23227.cpp:6:23: note: 'int nxt [1000005]' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
                       ^
0_0_35202936_23227.cpp:41:30: error: redefinition of 'int T'
 int n,m,ans,a[M],b[M],nxt[M],T;
                              ^
0_0_35202936_23227.cpp:6:30: note: 'int T' previously declared here
 int n,m,ans,a[M],b[M],nxt[M],T;
                              ^
0_0_35202936_23227.cpp: In function 'int main()':
0_0_35202936_23227.cpp:42:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_35202936_23227.cpp:7: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 18:33:11, Gzip enabled