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_33559681_21267.cpp:52:11: error: redefinition of 'const int maxn'
 const int maxn = 55;
           ^
0_0_33559681_21267.cpp:5:11: note: 'const int maxn' previously defined here
 const int maxn = 55;
           ^
0_0_33559681_21267.cpp:53:5: error: redefinition of 'int n'
 int n, m, temp;
     ^
0_0_33559681_21267.cpp:6:5: note: 'int n' previously declared here
 int n, m, temp;
     ^
0_0_33559681_21267.cpp:53:8: error: redefinition of 'int m'
 int n, m, temp;
        ^
0_0_33559681_21267.cpp:6:8: note: 'int m' previously declared here
 int n, m, temp;
        ^
0_0_33559681_21267.cpp:53:11: error: redefinition of 'int temp'
 int n, m, temp;
           ^
0_0_33559681_21267.cpp:6:11: note: 'int temp' previously declared here
 int n, m, temp;
           ^
0_0_33559681_21267.cpp:54:13: error: redefinition of 'int cnt [55]'
 int cnt[maxn], nxt[maxn];
             ^
0_0_33559681_21267.cpp:7:5: note: 'int cnt [55]' previously declared here
 int cnt[maxn], nxt[maxn];
     ^
0_0_33559681_21267.cpp:54:24: error: redefinition of 'int nxt [55]'
 int cnt[maxn], nxt[maxn];
                        ^
0_0_33559681_21267.cpp:7:16: note: 'int nxt [55]' previously declared here
 int cnt[maxn], nxt[maxn];
                ^
0_0_33559681_21267.cpp:55:22: error: redefinition of 'int val [55][55][4]'
 int val[maxn][maxn][4];
                      ^
0_0_33559681_21267.cpp:8:5: note: 'int val [55][55][4]' previously declared here
 int val[maxn][maxn][4];
     ^
0_0_33559681_21267.cpp:56:11: error: redefinition of 'long long int ans'
 long long ans;
           ^
0_0_33559681_21267.cpp:9:11: note: 'long long int ans' previously declared here
 long long ans;
           ^
0_0_33559681_21267.cpp: In function 'void dfs(int, int, int, int, int)':
0_0_33559681_21267.cpp:58:6: error: redefinition of 'void dfs(int, int, int, int, int)'
 void dfs(int level, int a, int b, int c, int d){
      ^
0_0_33559681_21267.cpp:11:6: note: 'void dfs(int, int, int, int, int)' previously defined here
 void dfs(int level, int a, int b, int c, int d){
      ^
0_0_33559681_21267.cpp:68:13: error: 'x' was not declared in this scope
         dfs(x+1,a+val[level][i][0],b+val[level][i][1],c+val[level][i][2],d+val[level][i][3]);
             ^
0_0_33559681_21267.cpp: In function 'int main()':
0_0_33559681_21267.cpp:71:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_33559681_21267.cpp:24: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-24 20:00:19, Gzip enabled