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_30399448_24778.cpp:96:11: error: redefinition of 'const int MAX'
 const int MAX = 15;//100000
           ^
0_0_30399448_24778.cpp:18:11: note: 'const int MAX' previously defined here
 const int MAX = 1000010;//100000
           ^
0_0_30399448_24778.cpp:97:11: error: redefinition of 'const int MAX_1'
 const int MAX_1 = 10;
           ^
0_0_30399448_24778.cpp:19:11: note: 'const int MAX_1' previously defined here
 const int MAX_1 = 2;
           ^
0_0_30399448_24778.cpp:98:11: error: redefinition of 'const int MAX_2'
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:20:11: note: 'const int MAX_2' previously defined here
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:99:11: error: redefinition of 'const int INF'
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:21:11: note: 'const int INF' previously defined here
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:100:14: error: redefinition of 'const double EPS'
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:22:14: note: 'const double EPS' previously defined here
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:101:11: error: redefinition of 'const int MOD'
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:23:11: note: 'const int MOD' previously defined here
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:102:14: error: redefinition of 'const double PI'
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:24:14: note: 'const double PI' previously defined here
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:103:5: error: conflicting declaration 'int T'
 int T,N,M,K;
     ^
0_0_30399448_24778.cpp:25:4: note: previous declaration as 'long long int T'
 LL T,N,M,K;
    ^
0_0_30399448_24778.cpp:103:7: error: conflicting declaration 'int N'
 int T,N,M,K;
       ^
0_0_30399448_24778.cpp:25:6: note: previous declaration as 'long long int N'
 LL T,N,M,K;
      ^
0_0_30399448_24778.cpp:103:9: error: conflicting declaration 'int M'
 int T,N,M,K;
         ^
0_0_30399448_24778.cpp:25:8: note: previous declaration as 'long long int M'
 LL T,N,M,K;
        ^
0_0_30399448_24778.cpp:103:11: error: conflicting declaration 'int K'
 int T,N,M,K;
           ^
0_0_30399448_24778.cpp:25:10: note: previous declaration as 'long long int K'
 LL T,N,M,K;
          ^
0_0_30399448_24778.cpp:105:30: error: size of array 'change' is too large
 int change[MAX][MAX][MAX][MAX];
                              ^
0_0_30399448_24778.cpp: In function 'void init()':
0_0_30399448_24778.cpp:118:21: error: 'change' was not declared in this scope
                     change[i][j][k][p] = INF;
                     ^
0_0_30399448_24778.cpp: In function 'int bfs(int, int)':
0_0_30399448_24778.cpp:150:13: error: 'change' was not declared in this scope
             change[n][m][i][temp.x] = min(change[n][m][i][temp.x],temp.cnt - a[i]);
             ^
0_0_30399448_24778.cpp: In function 'int main()':
0_0_30399448_24778.cpp:166:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30399448_24778.cpp:39:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_30399448_24778.cpp:187:29: error: 'change' was not declared in this scope
                     cout << change[i][j][k][p] << " ";
                             ^
0_0_30399448_24778.cpp: At global scope:
0_0_30399448_24778.cpp:213:11: error: redefinition of 'const int MAX'
 const int MAX = 2000;//100000
           ^
0_0_30399448_24778.cpp:18:11: note: 'const int MAX' previously defined here
 const int MAX = 1000010;//100000
           ^
0_0_30399448_24778.cpp:214:11: error: redefinition of 'const int MAX_1'
 const int MAX_1 = 2;
           ^
0_0_30399448_24778.cpp:19:11: note: 'const int MAX_1' previously defined here
 const int MAX_1 = 2;
           ^
0_0_30399448_24778.cpp:215:11: error: redefinition of 'const int MAX_2'
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:20:11: note: 'const int MAX_2' previously defined here
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:216:11: error: redefinition of 'const int INF'
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:21:11: note: 'const int INF' previously defined here
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:217:14: error: redefinition of 'const double EPS'
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:22:14: note: 'const double EPS' previously defined here
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:218:11: error: redefinition of 'const int MOD'
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:23:11: note: 'const int MOD' previously defined here
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:219:14: error: redefinition of 'const double PI'
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:24:14: note: 'const double PI' previously defined here
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:220:4: error: redefinition of 'long long int T'
 LL T,N,M,K;
    ^
0_0_30399448_24778.cpp:25:4: note: 'long long int T' previously declared here
 LL T,N,M,K;
    ^
0_0_30399448_24778.cpp:220:6: error: redefinition of 'long long int N'
 LL T,N,M,K;
      ^
0_0_30399448_24778.cpp:25:6: note: 'long long int N' previously declared here
 LL T,N,M,K;
      ^
0_0_30399448_24778.cpp:220:8: error: redefinition of 'long long int M'
 LL T,N,M,K;
        ^
0_0_30399448_24778.cpp:25:8: note: 'long long int M' previously declared here
 LL T,N,M,K;
        ^
0_0_30399448_24778.cpp:220:10: error: redefinition of 'long long int K'
 LL T,N,M,K;
          ^
0_0_30399448_24778.cpp:25:10: note: 'long long int K' previously declared here
 LL T,N,M,K;
          ^
0_0_30399448_24778.cpp: In function 'int main()':
0_0_30399448_24778.cpp:227:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30399448_24778.cpp:39:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_30399448_24778.cpp: At global scope:
0_0_30399448_24778.cpp:287:11: error: redefinition of 'const int MAX'
 const int MAX = 2000;//100000
           ^
0_0_30399448_24778.cpp:18:11: note: 'const int MAX' previously defined here
 const int MAX = 1000010;//100000
           ^
0_0_30399448_24778.cpp:288:10: error: conflicting declaration 'const long long int MAX_1'
 const LL MAX_1 = 1e18;
          ^
0_0_30399448_24778.cpp:19:11: note: previous declaration as 'const int MAX_1'
 const int MAX_1 = 2;
           ^
0_0_30399448_24778.cpp:289:11: error: redefinition of 'const int MAX_2'
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:20:11: note: 'const int MAX_2' previously defined here
 const int MAX_2 = 1000010;
           ^
0_0_30399448_24778.cpp:290:11: error: redefinition of 'const int INF'
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:21:11: note: 'const int INF' previously defined here
 const int INF = 0x3f3f3f3f;//1061109567,1e9,int-MAX2147483647;
           ^
0_0_30399448_24778.cpp:291:14: error: redefinition of 'const double EPS'
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:22:14: note: 'const double EPS' previously defined here
 const double EPS = 0.0000001;
              ^
0_0_30399448_24778.cpp:292:11: error: redefinition of 'const int MOD'
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:23:11: note: 'const int MOD' previously defined here
 const int MOD = 998244353;//998244353;
           ^
0_0_30399448_24778.cpp:293:14: error: redefinition of 'const double PI'
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:24:14: note: 'const double PI' previously defined here
 const double PI = acos(-1);
              ^
0_0_30399448_24778.cpp:294:4: error: redefinition of 'long long int T'
 LL T,N,M,K;
    ^
0_0_30399448_24778.cpp:25:4: note: 'long long int T' previously declared here
 LL T,N,M,K;
    ^
0_0_30399448_24778.cpp:294:6: error: redefinition of 'long long int N'
 LL T,N,M,K;
      ^
0_0_30399448_24778.cpp:25:6: note: 'long long int N' previously declared here
 LL T,N,M,K;
      ^
0_0_30399448_24778.cpp:294:8: error: redefinition of 'long long int M'
 LL T,N,M,K;
        ^
0_0_30399448_24778.cpp:25:8: note: 'long long int M' previously declared here
 LL T,N,M,K;
        ^
0_0_30399448_24778.cpp:294:10: error: redefinition of 'long long int K'
 LL T,N,M,K;
          ^
0_0_30399448_24778.cpp:25:10: note: 'long long int K' previously declared here
 LL T,N,M,K;
          ^
0_0_30399448_24778.cpp: In function 'int main()':
0_0_30399448_24778.cpp:396:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_30399448_24778.cpp:39:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_30399448_24778.cpp: At global scope:
0_0_30399448_24778.cpp:556:11: error: redefinition of 'const int MAX'
 const int MAX = 1000010;//100000
           ^
0_0_30399448_24778.cpp:18:11: note: 'const int MAX' previously defined here
 const int MAX = 1000010;//100000
           ^
0_0_303994


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-01 17:11:45, Gzip enabled