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_21021780_644.cpp:5:8: error: macro names must be identifiers
 #define maxn 40005  
        ^
0_0_21021780_644.cpp:6:8: error: macro names must be identifiers
 #define INF 0x3f  
        ^
0_0_21021780_644.cpp:7:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_21021780_644.cpp:7:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_21021780_644.cpp:7:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_21021780_644.cpp:7:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_21021780_644.cpp:7:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_21021780_644.cpp:7:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_21021780_644.cpp:8:5: error: 'nbsp' declared as reference but not initialized
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:8:10: error: 'T' does not name a type
 int T,l,e1,n,e2,m;  
          ^
0_0_21021780_644.cpp:8:29: error: expected constructor, destructor, or type conversion before ';' token
 int T,l,e1,n,e2,m;  
                             ^
0_0_21021780_644.cpp:8:35: error: expected constructor, destructor, or type conversion before ';' token
 int T,l,e1,n,e2,m;  
                                   ^
0_0_21021780_644.cpp:9:5: error: redefinition of 'int& nbsp'
 int root[maxn],vis[maxn];  
     ^
0_0_21021780_644.cpp:8:5: note: 'int& nbsp' previously declared here
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:9:10: error: 'root' does not name a type
 int root[maxn],vis[maxn];  
          ^
0_0_21021780_644.cpp:9:36: error: expected constructor, destructor, or type conversion before ';' token
 int root[maxn],vis[maxn];  
                                    ^
0_0_21021780_644.cpp:9:42: error: expected constructor, destructor, or type conversion before ';' token
 int root[maxn],vis[maxn];  
                                          ^
0_0_21021780_644.cpp:10:7: error: expected identifier before '&' token
 struct edge  
       ^
0_0_21021780_644.cpp:10:12: error: invalid type in declaration before ';' token
 struct edge  
            ^
0_0_21021780_644.cpp:10:12: error: redefinition of 'int& nbsp'
0_0_21021780_644.cpp:8:5: note: 'int& nbsp' previously declared here
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:10:13: error: 'edge' does not name a type
 struct edge  
             ^
0_0_21021780_644.cpp:10:28: error: expected constructor, destructor, or type conversion before ';' token
 struct edge  
                            ^
0_0_21021780_644.cpp:11:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21021780_644.cpp:13:2: error: 'e' does not name a type
 }e[maxn];  
  ^
0_0_21021780_644.cpp:13:15: error: expected constructor, destructor, or type conversion before ';' token
 }e[maxn];  
               ^
0_0_21021780_644.cpp:13:21: error: expected constructor, destructor, or type conversion before ';' token
 }e[maxn];  
                     ^
0_0_21021780_644.cpp:14:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21021780_644.cpp:14:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21021780_644.cpp:15:6: error: conflicting declaration 'bool& nbsp'
 bool cmp(edge a,edge b)  
      ^
0_0_21021780_644.cpp:8:5: note: previous declaration as 'int& nbsp'
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:15:14: error: expected constructor, destructor, or type conversion before '(' token
 bool cmp(edge a,edge b)  
              ^
0_0_21021780_644.cpp:15:25: error: 'a' does not name a type
 bool cmp(edge a,edge b)  
                         ^
0_0_21021780_644.cpp:15:37: error: 'b' does not name a type
 bool cmp(edge a,edge b)  
                                     ^
0_0_21021780_644.cpp:15:50: error: expected constructor, destructor, or type conversion before ';' token
 bool cmp(edge a,edge b)  
                                                  ^
0_0_21021780_644.cpp:16:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21021780_644.cpp:18:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_21021780_644.cpp:18:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_21021780_644.cpp:19:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21021780_644.cpp:19:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21021780_644.cpp:20:5: error: redefinition of 'int& nbsp'
 int findroot(int x)  
     ^
0_0_21021780_644.cpp:8:5: note: 'int& nbsp' previously declared here
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:20:27: error: expected ')' before ';' token
 int findroot(int x)  
                           ^
0_0_21021780_644.cpp:20:27: error: expected constructor, destructor, or type conversion before ';' token
0_0_21021780_644.cpp:20:28: error: 'x' does not name a type
 int findroot(int x)  
                            ^
0_0_21021780_644.cpp:20:41: error: expected constructor, destructor, or type conversion before ';' token
 int findroot(int x)  
                                         ^
0_0_21021780_644.cpp:21:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21021780_644.cpp:25:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_21021780_644.cpp:25:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_21021780_644.cpp:26:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_21021780_644.cpp:26:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_21021780_644.cpp:27:5: error: redefinition of 'int& nbsp'
 int kruscal()  
     ^
0_0_21021780_644.cpp:8:5: note: 'int& nbsp' previously declared here
 int T,l,e1,n,e2,m;  
     ^
0_0_21021780_644.cpp:27:20: error: expected constructor, destructor, or type conversion before 'nbsp'
 int kruscal()  
                    ^
0_0_21021780_644.cpp:27:30: error: expected constructor, destructor, or type conversion before ';' token
 int kruscal()  
                              ^
0_0_21021780_644.cpp:28:1: error: expected unqualified-id 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-11-26 21:28:14, Gzip enabled