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_20062613_16788.cpp:2:8: error: macro names must be identifiers
 #define FINITY 0x7fffffff  
        ^
0_0_20062613_16788.cpp:3:8: error: macro names must be identifiers
 #define M 1005  
        ^
0_0_20062613_16788.cpp:4:5: error: 'nbsp' declared as reference but not initialized
 int n;//图的大小  
     ^
0_0_20062613_16788.cpp:4:10: error: 'n' does not name a type
 int n;//图的大小  
          ^
0_0_20062613_16788.cpp:5:9: error: 'typedef int& nbsp' redeclared as different kind of symbol
 typedef struct edge_t{  
         ^
0_0_20062613_16788.cpp:4:5: note: previous declaration 'int& nbsp'
 int n;//图的大小  
     ^
0_0_20062613_16788.cpp:5:20: error: expected identifier before '&' token
 typedef struct edge_t{  
                    ^
0_0_20062613_16788.cpp:5:25: error: invalid type in declaration before ';' token
 typedef struct edge_t{  
                         ^
0_0_20062613_16788.cpp:5:25: error: redefinition of 'int& nbsp'
0_0_20062613_16788.cpp:4:5: note: 'int& nbsp' previously declared here
 int n;//图的大小  
     ^
0_0_20062613_16788.cpp:5:26: error: 'edge_t' does not name a type
 typedef struct edge_t{  
                          ^
0_0_20062613_16788.cpp:8:2: error: 'edge_t' does not name a type
 }edge_t;  
  ^
0_0_20062613_16788.cpp:8:14: error: expected constructor, destructor, or type conversion before ';' token
 }edge_t;  
              ^
0_0_20062613_16788.cpp:8:20: error: expected constructor, destructor, or type conversion before ';' token
 }edge_t;  
                    ^
0_0_20062613_16788.cpp:9:1: error: 'edge_t' does not name a type
 edge_t m[M][M];  
 ^
0_0_20062613_16788.cpp:9:13: error: 'm' does not name a type
 edge_t m[M][M];  
             ^
0_0_20062613_16788.cpp:9:26: error: expected constructor, destructor, or type conversion before ';' token
 edge_t m[M][M];  
                          ^
0_0_20062613_16788.cpp:9:32: error: expected constructor, destructor, or type conversion before ';' token
 edge_t m[M][M];  
                                ^
0_0_20062613_16788.cpp:10:6: error: cannot declare reference to 'void'
 void dijkstra(int v0,int d[M],int p[M]){  
      ^
0_0_20062613_16788.cpp:10:6: error: variable or field 'nbsp' declared void
0_0_20062613_16788.cpp:10:28: error: expected ')' before ';' token
 void dijkstra(int v0,int d[M],int p[M]){  
                            ^
0_0_20062613_16788.cpp:10:28: error: expected constructor, destructor, or type conversion before ';' token
0_0_20062613_16788.cpp:10:29: error: 'v0' does not name a type
 void dijkstra(int v0,int d[M],int p[M]){  
                             ^
0_0_20062613_16788.cpp:10:41: error: 'd' does not name a type
 void dijkstra(int v0,int d[M],int p[M]){  
                                         ^
0_0_20062613_16788.cpp:10:55: error: 'p' does not name a type
 void dijkstra(int v0,int d[M],int p[M]){  
                                                       ^
0_0_20062613_16788.cpp:46:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20062613_16788.cpp:46:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_20062613_16788.cpp:47:5: error: redefinition of 'int& nbsp'
 int main(){  
     ^
0_0_20062613_16788.cpp:4:5: note: 'int& nbsp' previously declared here
 int n;//图的大小  
     ^
0_0_20062613_16788.cpp: In function 'int main()':
0_0_20062613_16788.cpp:48:29: error: 'nbsp' declared as reference but not initialized
     int i,j,t;  
                             ^
0_0_20062613_16788.cpp:48:34: error: 'i' was not declared in this scope
     int i,j,t;  
                                  ^
0_0_20062613_16788.cpp:48:36: error: 'j' was not declared in this scope
     int i,j,t;  
                                    ^
0_0_20062613_16788.cpp:48:38: error: 't' was not declared in this scope
     int i,j,t;  
                                      ^
0_0_20062613_16788.cpp:49:29: error: redeclaration of 'int& nbsp'
     int dis[M],pp[M];  
                             ^
0_0_20062613_16788.cpp:48:29: note: 'int& nbsp' previously declared here
     int i,j,t;  
                             ^
0_0_20062613_16788.cpp:49:34: error: 'dis' was not declared in this scope
     int dis[M],pp[M];  
                                  ^
0_0_20062613_16788.cpp:49:38: error: 'M' was not declared in this scope
     int dis[M],pp[M];  
                                      ^
0_0_20062613_16788.cpp:49:41: error: 'pp' was not declared in this scope
     int dis[M],pp[M];  
                                         ^
0_0_20062613_16788.cpp:50:29: error: redeclaration of 'int& nbsp'
     int x,a,b,d,p,max[M],Min;  
                             ^
0_0_20062613_16788.cpp:48:29: note: 'int& nbsp' previously declared here
     int i,j,t;  
                             ^
0_0_20062613_16788.cpp:50:34: error: 'x' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                  ^
0_0_20062613_16788.cpp:50:36: error: 'a' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                    ^
0_0_20062613_16788.cpp:50:38: error: 'b' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                      ^
0_0_20062613_16788.cpp:50:40: error: 'd' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                        ^
0_0_20062613_16788.cpp:50:42: error: 'p' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                          ^
0_0_20062613_16788.cpp:50:44: error: 'max' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                            ^
0_0_20062613_16788.cpp:50:51: error: 'Min' was not declared in this scope
     int x,a,b,d,p,max[M],Min;  
                                                   ^
0_0_20062613_16788.cpp:51:45: error: 'n' was not declared in this scope
     while(scanf("%d%d",&n,&x)&&(n||x)){  
                                             ^
0_0_20062613_16788.cpp:54:97: error: 'm' was not declared in this scope
                 m[i][j].d=m[i][j].p=FINITY;  
                                                                                                 ^
0_0_20062613_16788.cpp:54:117: error: 'FINITY' was not declared in this scope
                 m[i][j].d=m[i][j].p=FINITY;  
                                                                                                                     ^
0_0_20062613_16788.cpp:61:73: error: 'else' without a previous 'if'
             else if(m[a-1][b-1].d==d&&m[a-1][b-1].p>p){  
                                                                         ^
0_0_20062613_16788.cpp:66:68: error: 'dijkstra' was not declared in this scope
         dijkstra(a-1,dis,pp);  
                                                                    ^
0_0_20062613_16788.cpp: At global scope:
0_0_20062613_16788.cpp:69:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_20062613_16788.cpp:69:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^


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-09-30 07:28:36, Gzip enabled