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_21020746_13473.cpp:4:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_21020746_13473.cpp:4:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_21020746_13473.cpp:4:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_21020746_13473.cpp:4:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_21020746_13473.cpp:4:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_21020746_13473.cpp:4:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_21020746_13473.cpp:5:7: error: 'nbsp' declared as reference but not initialized
 const int maxn = 222222;  
       ^
0_0_21020746_13473.cpp:5:16: error: conflicting declaration 'int& nbsp'
 const int maxn = 222222;  
                ^
0_0_21020746_13473.cpp:5:7: note: previous declaration as 'const int& nbsp'
 const int maxn = 222222;  
       ^
0_0_21020746_13473.cpp:5:21: error: 'maxn' does not name a type
 const int maxn = 222222;  
                     ^
0_0_21020746_13473.cpp:5:31: error: expected unqualified-id before '=' token
 const int maxn = 222222;  
                               ^
0_0_21020746_13473.cpp:5:38: error: expected unqualified-id before numeric constant
 const int maxn = 222222;  
                                      ^
0_0_21020746_13473.cpp:5:50: error: expected constructor, destructor, or type conversion before ';' token
 const int maxn = 222222;  
                                                  ^
0_0_21020746_13473.cpp:5:56: error: expected constructor, destructor, or type conversion before ';' token
 const int maxn = 222222;  
                                                        ^
0_0_21020746_13473.cpp:6:5: error: conflicting declaration 'int& nbsp'
 int fa[maxn],num[maxn];  
     ^
0_0_21020746_13473.cpp:5:7: note: previous declaration as 'const int& nbsp'
 const int maxn = 222222;  
       ^
0_0_21020746_13473.cpp:6:10: error: 'fa' does not name a type
 int fa[maxn],num[maxn];  
          ^
0_0_21020746_13473.cpp:6:34: error: expected constructor, destructor, or type conversion before ';' token
 int fa[maxn],num[maxn];  
                                  ^
0_0_21020746_13473.cpp:6:40: error: expected constructor, destructor, or type conversion before ';' token
 int fa[maxn],num[maxn];  
                                        ^
0_0_21020746_13473.cpp:7:5: error: conflicting declaration 'int& nbsp'
 int find_father(int u){  
     ^
0_0_21020746_13473.cpp:5:7: note: previous declaration as 'const int& nbsp'
 const int maxn = 222222;  
       ^
0_0_21020746_13473.cpp:7:30: error: expected ')' before ';' token
 int find_father(int u){  
                              ^
0_0_21020746_13473.cpp:7:30: error: expected constructor, destructor, or type conversion before ';' token
0_0_21020746_13473.cpp:7:31: error: 'u' does not name a type
 int find_father(int u){  
                               ^
0_0_21020746_13473.cpp:16:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_21020746_13473.cpp:16:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_21020746_13473.cpp:17:5: error: conflicting declaration 'int& nbsp'
 int main(){  
     ^
0_0_21020746_13473.cpp:5:7: note: previous declaration as 'const int& nbsp'
 const int maxn = 222222;  
       ^
0_0_21020746_13473.cpp: In function 'int main()':
0_0_21020746_13473.cpp:18:29: error: 'nbsp' declared as reference but not initialized
     int n,m;  
                             ^
0_0_21020746_13473.cpp:18:34: error: 'n' was not declared in this scope
     int n,m;  
                                  ^
0_0_21020746_13473.cpp:18:36: error: 'm' was not declared in this scope
     int n,m;  
                                    ^
0_0_21020746_13473.cpp:19:55: error: expected ')' before ';' token
     while(scanf("%d%d",&n,&m) != EOF){  
                                                       ^
0_0_21020746_13473.cpp:19:56: error: expected primary-expression before '!=' token
     while(scanf("%d%d",&n,&m) != EOF){  
                                                        ^
0_0_21020746_13473.cpp:19:67: error: expected ';' before ')' token
     while(scanf("%d%d",&n,&m) != EOF){  
                                                                   ^
0_0_21020746_13473.cpp:42:13: error: expected '}' at end of input
 }  
             ^


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-27 03:51:22, Gzip enabled