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_21955959_31315.cpp:12:7: error: 'nbsp' declared as reference but not initialized
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:12:16: error: conflicting declaration 'int& nbsp'
 const int MAXN = 205*4;  
                ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:12:21: error: 'MAXN' does not name a type
 const int MAXN = 205*4;  
                     ^
0_0_21955959_31315.cpp:12:31: error: expected unqualified-id before '=' token
 const int MAXN = 205*4;  
                               ^
0_0_21955959_31315.cpp:12:38: error: expected unqualified-id before numeric constant
 const int MAXN = 205*4;  
                                      ^
0_0_21955959_31315.cpp:12:49: error: expected constructor, destructor, or type conversion before ';' token
 const int MAXN = 205*4;  
                                                 ^
0_0_21955959_31315.cpp:12:55: error: expected constructor, destructor, or type conversion before ';' token
 const int MAXN = 205*4;  
                                                       ^
0_0_21955959_31315.cpp:13:7: error: redefinition of 'const int& nbsp'
 const int MAXM = MAXN*MAXN;  
       ^
0_0_21955959_31315.cpp:12:7: note: 'const int& nbsp' previously declared here
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:13:16: error: conflicting declaration 'int& nbsp'
 const int MAXM = MAXN*MAXN;  
                ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:13:21: error: 'MAXM' does not name a type
 const int MAXM = MAXN*MAXN;  
                     ^
0_0_21955959_31315.cpp:13:31: error: expected unqualified-id before '=' token
 const int MAXM = MAXN*MAXN;  
                               ^
0_0_21955959_31315.cpp:13:38: error: 'MAXN' does not name a type
 const int MAXM = MAXN*MAXN;  
                                      ^
0_0_21955959_31315.cpp:13:53: error: expected constructor, destructor, or type conversion before ';' token
 const int MAXM = MAXN*MAXN;  
                                                     ^
0_0_21955959_31315.cpp:13:59: error: expected constructor, destructor, or type conversion before ';' token
 const int MAXM = MAXN*MAXN;  
                                                           ^
0_0_21955959_31315.cpp:14:7: error: redefinition of 'const int& nbsp'
 const int INF = 0x3f3f3f3f;  
       ^
0_0_21955959_31315.cpp:12:7: note: 'const int& nbsp' previously declared here
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:14:16: error: conflicting declaration 'int& nbsp'
 const int INF = 0x3f3f3f3f;  
                ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:14:21: error: 'INF' does not name a type
 const int INF = 0x3f3f3f3f;  
                     ^
0_0_21955959_31315.cpp:14:30: error: expected unqualified-id before '=' token
 const int INF = 0x3f3f3f3f;  
                              ^
0_0_21955959_31315.cpp:14:37: error: expected unqualified-id before numeric constant
 const int INF = 0x3f3f3f3f;  
                                     ^
0_0_21955959_31315.cpp:14:53: error: expected constructor, destructor, or type conversion before ';' token
 const int INF = 0x3f3f3f3f;  
                                                     ^
0_0_21955959_31315.cpp:14:59: error: expected constructor, destructor, or type conversion before ';' token
 const int INF = 0x3f3f3f3f;  
                                                           ^
0_0_21955959_31315.cpp:15:7: error: expected identifier before '&' token
 struct Edge  
       ^
0_0_21955959_31315.cpp:15:12: error: invalid type in declaration before ';' token
 struct Edge  
            ^
0_0_21955959_31315.cpp:15:12: error: conflicting declaration 'int& nbsp'
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:15:13: error: 'Edge' does not name a type
 struct Edge  
             ^
0_0_21955959_31315.cpp:15:28: error: expected constructor, destructor, or type conversion before ';' token
 struct Edge  
                            ^
0_0_21955959_31315.cpp:16:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21955959_31315.cpp:19:2: error: 'edge' does not name a type
 }edge[MAXM];  
  ^
0_0_21955959_31315.cpp:19:18: error: expected constructor, destructor, or type conversion before ';' token
 }edge[MAXM];  
                  ^
0_0_21955959_31315.cpp:19:24: error: expected constructor, destructor, or type conversion before ';' token
 }edge[MAXM];  
                        ^
0_0_21955959_31315.cpp:20:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21955959_31315.cpp:20:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21955959_31315.cpp:21:6: error: expected constructor, destructor, or type conversion before ';' token
  
      ^
0_0_21955959_31315.cpp:22:5: error: conflicting declaration 'int& nbsp'
 int cnt;  
     ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:22:10: error: 'cnt' does not name a type
 int cnt;  
          ^
0_0_21955959_31315.cpp:22:19: error: expected constructor, destructor, or type conversion before ';' token
 int cnt;  
                   ^
0_0_21955959_31315.cpp:22:25: error: expected constructor, destructor, or type conversion before ';' token
 int cnt;  
                         ^
0_0_21955959_31315.cpp:23:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21955959_31315.cpp:23:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21955959_31315.cpp:24:5: error: conflicting declaration 'int& nbsp'
 int first[MAXN], level[MAXN];  
     ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:24:10: error: 'first' does not name a type
 int first[MAXN], level[MAXN];  
          ^
0_0_21955959_31315.cpp:24:28: error: 'level' does not name a type
 int first[MAXN], level[MAXN];  
                            ^
0_0_21955959_31315.cpp:24:45: error: expected constructor, destructor, or type conversion before ';' token
 int first[MAXN], level[MAXN];  
                                             ^
0_0_21955959_31315.cpp:24:51: error: expected constructor, destructor, or type conversion before ';' token
 int first[MAXN], level[MAXN];  
                                                   ^
0_0_21955959_31315.cpp:25:5: error: conflicting declaration 'int& nbsp'
 int q[MAXN];  
     ^
0_0_21955959_31315.cpp:12:7: note: previous declaration as 'const int& nbsp'
 const int MAXN = 205*4;  
       ^
0_0_21955959_31315.cpp:25:10: error: 'q' does not name a type
 int q[MAXN];  
          ^
0_0_21955959_31315.cpp:25:23: error: expected constructor, destructor, or type conversion before ';' token
 int q[MAXN];  
                       ^
0_0_21955959_31315.cpp:25:29: error: expected constructor, destructor, or type conversion before ';' token
 int q[MAXN];  
                             ^
0_0_21955959_31315.cpp:26:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21955959_31315.cpp:26:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21955959_31315.cpp:27:6: error: cannot declare reference to 'void'
 void init()  
      ^
0_0_21955959_31315.cpp:27:6: error: variable or field 'nbsp' declared void
0_0_21955959_31315.cpp:27:18: error: expected constructor, destructor, or type conversion before 'nbsp'
 void init()  
                  ^
0_0_21955959_31315.cpp:27:28: error: expected constructor, destructor, or type conversion before ';' token
 void init()  
                            ^
0_0_21955959_31315.cpp:28:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21955959_31315.cpp:31:7: e


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 14:33:53, Gzip enabled