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_39785093_2584.cpp:47:11: error: redefinition of 'const int N'
   47 | const int N=3e4+10,M=180;
      |           ^
0_0_39785093_2584.cpp:3:11: note: 'const int N' previously defined here
    3 | const int N=3e4+10,M=180,len=180;
      |           ^
0_0_39785093_2584.cpp:47:20: error: redefinition of 'const int M'
   47 | const int N=3e4+10,M=180;
      |                    ^
0_0_39785093_2584.cpp:3:20: note: 'const int M' previously defined here
    3 | const int N=3e4+10,M=180,len=180;
      |                    ^
0_0_39785093_2584.cpp:48:5: error: redefinition of 'int n'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |     ^
0_0_39785093_2584.cpp:4:5: note: 'int n' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |     ^
0_0_39785093_2584.cpp:48:7: error: redefinition of 'int m'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |       ^
0_0_39785093_2584.cpp:4:7: note: 'int m' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |       ^
0_0_39785093_2584.cpp:48:9: error: conflicting declaration 'int len'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |         ^~~
0_0_39785093_2584.cpp:3:26: note: previous declaration as 'const int len'
    3 | const int N=3e4+10,M=180,len=180;
      |                          ^~~
0_0_39785093_2584.cpp:48:13: error: redefinition of 'int s [180][180]'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |             ^
0_0_39785093_2584.cpp:4:9: note: 'int s [180][180]' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |         ^
0_0_39785093_2584.cpp:48:21: error: redefinition of 'int k'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |                     ^
0_0_39785093_2584.cpp:4:21: note: 'int k' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |                     ^
0_0_39785093_2584.cpp:48:23: error: redefinition of 'int a [30010]'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |                       ^
0_0_39785093_2584.cpp:4:23: note: 'int a [30010]' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |                       ^
0_0_39785093_2584.cpp:48:28: error: redefinition of 'int mp [180][30010]'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |                            ^~
0_0_39785093_2584.cpp:4:28: note: 'int mp [180][30010]' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |                            ^~
0_0_39785093_2584.cpp:48:37: error: redefinition of 'int cnt [30010]'
   48 | int n,m,len,s[M][M],k,a[N],mp[M][N],cnt[N];
      |                                     ^~~
0_0_39785093_2584.cpp:4:37: note: 'int cnt [30010]' previously declared here
    4 | int n,m,s[M][M],Max,k,a[N],mp[M][N],cnt[N];
      |                                     ^~~
0_0_39785093_2584.cpp:49:5: error: redefinition of 'int Query(int, int)'
   49 | int Query(int l,int r){
      |     ^~~~~
0_0_39785093_2584.cpp:5:5: note: 'int Query(int, int)' previously defined here
    5 | int Query(int l,int r){
      |     ^~~~~
0_0_39785093_2584.cpp:62:5: error: redefinition of 'int main()'
   62 | int main(){
      |     ^~~~
0_0_39785093_2584.cpp:18:5: note: 'int main()' previously defined here
   18 | int main(){
      |     ^~~~
0_0_39785093_2584.cpp: In function 'int main()':
0_0_39785093_2584.cpp:64:12: error: assignment of read-only variable 'len'
   64 |         len=sqrt(n);
      |         ~~~^~~~~~~~


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 19:59:40, Gzip enabled