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_18021817_19946.cpp:72:11: error: redefinition of 'const int MAX'
 const int MAX=2001;
           ^
0_0_18021817_19946.cpp:4:11: note: 'const int MAX' previously defined here
 const int MAX=2001;
           ^
0_0_18021817_19946.cpp:73:11: error: redefinition of 'const int MAXINT'
 const int MAXINT=999999999;
           ^
0_0_18021817_19946.cpp:5:11: note: 'const int MAXINT' previously defined here
 const int MAXINT=999999999;
           ^
0_0_18021817_19946.cpp:74:8: error: redefinition of 'struct point'
 struct point 
        ^
0_0_18021817_19946.cpp:6:8: error: previous definition of 'struct point'
 struct point 
        ^
0_0_18021817_19946.cpp:78:9: error: invalid type in declaration before ';' token
 }sq[MAX];
         ^
0_0_18021817_19946.cpp:78:9: error: conflicting declaration 'int sq [2001]'
0_0_18021817_19946.cpp:10:2: note: previous declaration as 'point sq [2001]'
 }sq[MAX];
  ^
0_0_18021817_19946.cpp:79:17: error: redefinition of 'int map [2001][2001]'
 int map[MAX][MAX];
                 ^
0_0_18021817_19946.cpp:11:5: note: 'int map [2001][2001]' previously declared here
 int map[MAX][MAX];
     ^
0_0_18021817_19946.cpp:80:14: error: redefinition of 'int visit [2001]'
 int visit[MAX];
              ^
0_0_18021817_19946.cpp:12:5: note: 'int visit [2001]' previously declared here
 int visit[MAX];
     ^
0_0_18021817_19946.cpp:81:13: error: redefinition of 'int dist [2001]'
 int dist[MAX];
             ^
0_0_18021817_19946.cpp:13:5: note: 'int dist [2001]' previously declared here
 int dist[MAX];
     ^
0_0_18021817_19946.cpp:82:5: error: redefinition of 'int n'
 int n,m;
     ^
0_0_18021817_19946.cpp:14:5: note: 'int n' previously declared here
 int n,m;
     ^
0_0_18021817_19946.cpp:82:7: error: redefinition of 'int m'
 int n,m;
       ^
0_0_18021817_19946.cpp:14:7: note: 'int m' previously declared here
 int n,m;
       ^
0_0_18021817_19946.cpp: In function 'void Dijkstra()':
0_0_18021817_19946.cpp:83:6: error: redefinition of 'void Dijkstra()'
 void Dijkstra()
      ^
0_0_18021817_19946.cpp:15:6: note: 'void Dijkstra()' previously defined here
 void Dijkstra()
      ^
0_0_18021817_19946.cpp: In function 'int main()':
0_0_18021817_19946.cpp:107:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_18021817_19946.cpp:39: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-30 02:36:18, Gzip enabled