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_21838551_29115.cpp:5:8: error: macro names must be identifiers
 #define INF 1000000000  
        ^
0_0_21838551_29115.cpp:6:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_21838551_29115.cpp:6:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_21838551_29115.cpp:6:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_21838551_29115.cpp:6:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_21838551_29115.cpp:6:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_21838551_29115.cpp:6:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_21838551_29115.cpp:7:6: error: 'nbsp' declared as reference but not initialized
 char s[200005];  
      ^
0_0_21838551_29115.cpp:7:11: error: 's' does not name a type
 char s[200005];  
           ^
0_0_21838551_29115.cpp:7:26: error: expected constructor, destructor, or type conversion before ';' token
 char s[200005];  
                          ^
0_0_21838551_29115.cpp:7:32: error: expected constructor, destructor, or type conversion before ';' token
 char s[200005];  
                                ^
0_0_21838551_29115.cpp:8:5: error: conflicting declaration 'int& nbsp'
 int a[200005],dp[200005][2];  
     ^
0_0_21838551_29115.cpp:7:6: note: previous declaration as 'char& nbsp'
 char s[200005];  
      ^
0_0_21838551_29115.cpp:8:10: error: 'a' does not name a type
 int a[200005],dp[200005][2];  
          ^
0_0_21838551_29115.cpp:8:39: error: expected constructor, destructor, or type conversion before ';' token
 int a[200005],dp[200005][2];  
                                       ^
0_0_21838551_29115.cpp:8:45: error: expected constructor, destructor, or type conversion before ';' token
 int a[200005],dp[200005][2];  
                                             ^
0_0_21838551_29115.cpp:9:5: error: conflicting declaration 'int& nbsp'
 int max(int a,int b)  
     ^
0_0_21838551_29115.cpp:7:6: note: previous declaration as 'char& nbsp'
 char s[200005];  
      ^
0_0_21838551_29115.cpp:9:22: error: expected ')' before ';' token
 int max(int a,int b)  
                      ^
0_0_21838551_29115.cpp:9:22: error: expected constructor, destructor, or type conversion before ';' token
0_0_21838551_29115.cpp:9:23: error: 'a' does not name a type
 int max(int a,int b)  
                       ^
0_0_21838551_29115.cpp:9:34: error: 'b' does not name a type
 int max(int a,int b)  
                                  ^
0_0_21838551_29115.cpp:9:47: error: expected constructor, destructor, or type conversion before ';' token
 int max(int a,int b)  
                                               ^
0_0_21838551_29115.cpp:10:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_21838551_29115.cpp:12:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_21838551_29115.cpp:12:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^
0_0_21838551_29115.cpp:13:5: error: conflicting declaration 'int& nbsp'
 int main()  
     ^
0_0_21838551_29115.cpp:7:6: note: previous declaration as 'char& nbsp'
 char s[200005];  
      ^
0_0_21838551_29115.cpp:13:17: error: expected constructor, destructor, or type conversion before 'nbsp'
 int main()  
                 ^
0_0_21838551_29115.cpp:13:27: error: expected constructor, destructor, or type conversion before ';' token
 int main()  
                           ^
0_0_21838551_29115.cpp:14: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 16:07:58, Gzip enabled