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_20940209_16710.cpp:159:10: error: redefinition of 'const long long int mod'
 const ll mod = 1000000007;
          ^
0_0_20940209_16710.cpp:30:10: note: 'const long long int mod' previously defined here
 const ll mod = 1000000007;
          ^
0_0_20940209_16710.cpp:160:11: error: redefinition of 'const int INF'
 const int INF = 213456789;
           ^
0_0_20940209_16710.cpp:31:11: note: 'const int INF' previously defined here
 const int INF = 213456789;
           ^
0_0_20940209_16710.cpp:161:14: error: redefinition of 'const double eps'
 const double eps = 1e-7;
              ^
0_0_20940209_16710.cpp:32:14: note: 'const double eps' previously defined here
 const double eps = 1e-7;
              ^
0_0_20940209_16710.cpp:163:21: error: redefinition of 'template<class T> T gcd(T, T)'
 template<class T> T gcd(T a, T b){if(!b)return a;return gcd(b,a%b);}
                     ^
0_0_20940209_16710.cpp:34:21: note: 'template<class T> T gcd(T, T)' previously declared here
 template<class T> T gcd(T a, T b){if(!b)return a;return gcd(b,a%b);}
                     ^
0_0_20940209_16710.cpp:164:5: error: redefinition of 'int n'
 int n, m, k, d;
     ^
0_0_20940209_16710.cpp:35:5: note: 'int n' previously declared here
 int n, m, k, d;
     ^
0_0_20940209_16710.cpp:164:8: error: redefinition of 'int m'
 int n, m, k, d;
        ^
0_0_20940209_16710.cpp:35:8: note: 'int m' previously declared here
 int n, m, k, d;
        ^
0_0_20940209_16710.cpp:164:11: error: redefinition of 'int k'
 int n, m, k, d;
           ^
0_0_20940209_16710.cpp:35:11: note: 'int k' previously declared here
 int n, m, k, d;
           ^
0_0_20940209_16710.cpp:164:14: error: redefinition of 'int d'
 int n, m, k, d;
              ^
0_0_20940209_16710.cpp:35:14: note: 'int d' previously declared here
 int n, m, k, d;
              ^
0_0_20940209_16710.cpp:165:23: error: redefinition of 'int cost [110][110][110]'
 int cost[110][110][110];
                       ^
0_0_20940209_16710.cpp:36:5: note: 'int cost [110][110][110]' previously declared here
 int cost[110][110][110];
     ^
0_0_20940209_16710.cpp:166:23: error: redefinition of 'bool ban [110][110][110]'
 bool ban[110][110][110];
                       ^
0_0_20940209_16710.cpp:37:6: note: 'bool ban [110][110][110]' previously declared here
 bool ban[110][110][110];
      ^
0_0_20940209_16710.cpp:167:18: error: redefinition of 'bool cas [110][110]'
 bool cas[110][110];
                  ^
0_0_20940209_16710.cpp:38:6: note: 'bool cas [110][110]' previously declared here
 bool cas[110][110];
      ^
0_0_20940209_16710.cpp:168:8: error: redefinition of 'int dx []'
 int dx[] = {0, 0, 0, 1, -1};
        ^
0_0_20940209_16710.cpp:39:5: note: 'int dx [5]' previously defined here
 int dx[] = {0, 0, 0, 1, -1};
     ^
0_0_20940209_16710.cpp:169:8: error: redefinition of 'int dy []'
 int dy[] = {0, 1, -1, 0, 0};
        ^
0_0_20940209_16710.cpp:40:5: note: 'int dy [5]' previously defined here
 int dy[] = {0, 1, -1, 0, 0};
     ^
0_0_20940209_16710.cpp:171:8: error: redefinition of 'struct point'
 struct point
        ^
0_0_20940209_16710.cpp:42:8: error: previous definition of 'struct point'
 struct point
        ^
0_0_20940209_16710.cpp:175:9: error: invalid type in declaration before ';' token
 }c[1010];
         ^
0_0_20940209_16710.cpp:175:9: error: conflicting declaration 'int c [1010]'
0_0_20940209_16710.cpp:46:2: note: previous declaration as 'point c [1010]'
 }c[1010];
  ^
0_0_20940209_16710.cpp:177:8: error: redefinition of 'struct p'
 struct p
        ^
0_0_20940209_16710.cpp:48:8: error: previous definition of 'struct p'
 struct p
        ^
0_0_20940209_16710.cpp: In function 'int bfs()':
0_0_20940209_16710.cpp:182:5: error: redefinition of 'int bfs()'
 int bfs()
     ^
0_0_20940209_16710.cpp:53:5: note: 'int bfs()' previously defined here
 int bfs()
     ^
0_0_20940209_16710.cpp: In function 'int main()':
0_0_20940209_16710.cpp:206:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_20940209_16710.cpp:77: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-06-29 10:49:27, Gzip enabled