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_37963516_9446.cpp:29:11: error: redefinition of 'const int MAXN'
 const int MAXN = 40 + 10, MAXA = 1 << 20;
           ^
0_0_37963516_9446.cpp:4:11: note: 'const int MAXN' previously defined here
 const int MAXN = 40 + 10, MAXA = 1 << 20;
           ^
0_0_37963516_9446.cpp:29:27: error: redefinition of 'const int MAXA'
 const int MAXN = 40 + 10, MAXA = 1 << 20;
                           ^
0_0_37963516_9446.cpp:4:27: note: 'const int MAXA' previously defined here
 const int MAXN = 40 + 10, MAXA = 1 << 20;
                           ^
0_0_37963516_9446.cpp:30:5: error: redefinition of 'int n'
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
     ^
0_0_37963516_9446.cpp:5:5: note: 'int n' previously declared here
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
     ^
0_0_37963516_9446.cpp:30:8: error: redefinition of 'int m'
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
        ^
0_0_37963516_9446.cpp:5:8: note: 'int m' previously declared here
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
        ^
0_0_37963516_9446.cpp:30:17: error: redefinition of 'int a [50]'
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
                 ^
0_0_37963516_9446.cpp:5:11: note: 'int a [50]' previously declared here
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
           ^
0_0_37963516_9446.cpp:30:33: error: redefinition of 'int dp [50][1048576]'
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
                                 ^
0_0_37963516_9446.cpp:5:20: note: 'int dp [50][1048576]' previously declared here
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
                    ^
0_0_37963516_9446.cpp:30:36: error: redefinition of 'int ans'
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
                                    ^
0_0_37963516_9446.cpp:5:36: note: 'int ans' previously declared here
 int n, m, a[MAXN], dp[MAXN][MAXA], ans;
                                    ^
0_0_37963516_9446.cpp: In function 'int main()':
0_0_37963516_9446.cpp:32:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_37963516_9446.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 22:07:20, Gzip enabled