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_30407275_5939.cpp:64:2: error: conflicting declaration 'typedef struct Node Node'
 }Node;
  ^
0_0_30407275_5939.cpp:15:2: note: previous declaration as 'typedef struct Node Node'
 }Node;
  ^
0_0_30407275_5939.cpp:69:2: error: conflicting declaration 'typedef struct Path Path'
 }Path;
  ^
0_0_30407275_5939.cpp:20:2: note: previous declaration as 'typedef struct Path Path'
 }Path;
  ^
0_0_30407275_5939.cpp:71:9: error: redefinition of 'int ha [9]'
 int ha[9] = {1, 1, 2, 6, 24, 120, 720, 5040, 40320};
         ^
0_0_30407275_5939.cpp:22:5: note: 'int ha [9]' previously defined here
 int ha[9] = {1, 1, 2, 6, 24, 120, 720, 5040, 40320};
     ^
0_0_30407275_5939.cpp:73:15: error: redefinition of 'Node queue [400010]'
 Node queue[MAX];
               ^
0_0_30407275_5939.cpp:24:6: note: 'Node queue [400010]' previously declared here
 Node queue[MAX];
      ^
0_0_30407275_5939.cpp:74:11: error: redefinition of 'Path p [400010]'
 Path p[MAX];
           ^
0_0_30407275_5939.cpp:25:6: note: 'Path p [400010]' previously declared here
 Path p[MAX];
      ^
0_0_30407275_5939.cpp:75:13: error: redefinition of 'int dir [4][2]'
 int dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
             ^
0_0_30407275_5939.cpp:26:5: note: 'int dir [4][2]' previously defined here
 int dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
     ^
0_0_30407275_5939.cpp:76:9: error: redefinition of 'char d [5]'
 char d[5] = "udlr";
         ^
0_0_30407275_5939.cpp:27:6: note: 'char d [5]' previously defined here
 char d[5] = "udlr";
      ^
0_0_30407275_5939.cpp:77:12: error: redefinition of 'int vis [400010]'
 int vis[MAX];
            ^
0_0_30407275_5939.cpp:28:5: note: 'int vis [400010]' previously declared here
 int vis[MAX];
     ^
0_0_30407275_5939.cpp:78:5: error: redefinition of 'int size'
 int size = 0;
     ^
0_0_30407275_5939.cpp:29:5: note: 'int size' previously defined here
 int size = 0;
     ^
0_0_30407275_5939.cpp: In function 'void print(int)':
0_0_30407275_5939.cpp:80:6: error: redefinition of 'void print(int)'
 void print(int x) {
      ^
0_0_30407275_5939.cpp:38:6: note: 'void print(int)' previously defined here
 void print(int x) {
      ^
0_0_30407275_5939.cpp: In function 'void swap(int*, int*)':
0_0_30407275_5939.cpp:87:6: error: redefinition of 'void swap(int*, int*)'
 void swap(int *a,int *b){
      ^
0_0_30407275_5939.cpp:45:6: note: 'void swap(int*, int*)' previously defined here
 void swap(int *a,int *b){
      ^
0_0_30407275_5939.cpp: In function 'void aStar(Node)':
0_0_30407275_5939.cpp:228:6: error: redefinition of 'void aStar(Node)'
 void aStar(Node a){
      ^
0_0_30407275_5939.cpp:126:6: note: 'void aStar(Node)' previously defined here
 void aStar(Node a){
      ^
0_0_30407275_5939.cpp: In function 'int main()':
0_0_30407275_5939.cpp:340:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_30407275_5939.cpp:181: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-17 09:38:41, Gzip enabled