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_30141445_28336.cpp:58:11: error: redefinition of 'const int maxn'
 const int maxn = 100050;
           ^
0_0_30141445_28336.cpp:5:11: note: 'const int maxn' previously defined here
 const int maxn = 100050;
           ^
0_0_30141445_28336.cpp:59:12: error: redefinition of 'int s1 [100050]'
 int s1[maxn],ans[maxn];
            ^
0_0_30141445_28336.cpp:6:5: note: 'int s1 [100050]' previously declared here
 int s1[maxn],ans[maxn];
     ^
0_0_30141445_28336.cpp:59:22: error: redefinition of 'int ans [100050]'
 int s1[maxn],ans[maxn];
                      ^
0_0_30141445_28336.cpp:6:14: note: 'int ans [100050]' previously declared here
 int s1[maxn],ans[maxn];
              ^
0_0_30141445_28336.cpp:60:8: error: redefinition of 'struct node'
 struct node
        ^
0_0_30141445_28336.cpp:7:8: error: previous definition of 'struct node'
 struct node
        ^
0_0_30141445_28336.cpp:63:12: error: invalid type in declaration before ';' token
 } T[maxn*3];
            ^
0_0_30141445_28336.cpp:63:12: error: conflicting declaration 'int T [300150]'
0_0_30141445_28336.cpp:10:3: note: previous declaration as 'node T [300150]'
 } T[maxn*3];
   ^
0_0_30141445_28336.cpp: In function 'void build(int, int, int)':
0_0_30141445_28336.cpp:64:6: error: redefinition of 'void build(int, int, int)'
 void build(int v,int l,int r)
      ^
0_0_30141445_28336.cpp:11:6: note: 'void build(int, int, int)' previously defined here
 void build(int v,int l,int r)
      ^
0_0_30141445_28336.cpp: In function 'int query(int, int)':
0_0_30141445_28336.cpp:78:5: error: redefinition of 'int query(int, int)'
 int query(int v,int k)
     ^
0_0_30141445_28336.cpp:25:5: note: 'int query(int, int)' previously defined here
 int query(int v,int k)
     ^
0_0_30141445_28336.cpp: In function 'int main()':
0_0_30141445_28336.cpp:91:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30141445_28336.cpp:38: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-07-03 05:50:31, Gzip enabled