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_19492548_7251.cpp:3:6: error: expected nested-name-specifier before '&' token
 using namespace std;  
      ^
0_0_19492548_7251.cpp:3:21: error: expected identifier before '&' token
 using namespace std;  
                     ^
0_0_19492548_7251.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                          ^
0_0_19492548_7251.cpp:3:27: error: 'std' does not name a type
 using namespace std;  
                           ^
0_0_19492548_7251.cpp:3:36: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                    ^
0_0_19492548_7251.cpp:3:42: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;  
                                          ^
0_0_19492548_7251.cpp:4:6: error: expected constructor, destructor, or type conversion before ';' token
   
      ^
0_0_19492548_7251.cpp:4:12: error: expected constructor, destructor, or type conversion before ';' token
   
            ^
0_0_19492548_7251.cpp:5:5: error: 'nbsp' declared as reference but not initialized
 int main(){  
     ^
0_0_19492548_7251.cpp: In function 'int main()':
0_0_19492548_7251.cpp:6:30: error: 'nbsp' declared as reference but not initialized
     char a[1000];  
                              ^
0_0_19492548_7251.cpp:6:35: error: 'a' was not declared in this scope
     char a[1000];  
                                   ^
0_0_19492548_7251.cpp:7:29: error: conflicting declaration 'int& nbsp'
     int i,j,sum,n;  
                             ^
0_0_19492548_7251.cpp:6:30: note: previous declaration as 'char& nbsp'
     char a[1000];  
                              ^
0_0_19492548_7251.cpp:7:34: error: 'i' was not declared in this scope
     int i,j,sum,n;  
                                  ^
0_0_19492548_7251.cpp:7:36: error: 'j' was not declared in this scope
     int i,j,sum,n;  
                                    ^
0_0_19492548_7251.cpp:7:38: error: 'sum' was not declared in this scope
     int i,j,sum,n;  
                                      ^
0_0_19492548_7251.cpp:7:42: error: 'n' was not declared in this scope
     int i,j,sum,n;  
                                          ^
0_0_19492548_7251.cpp:8:31: error: 'cin' was not declared in this scope
     while(cin>>a){  
                               ^
0_0_19492548_7251.cpp:8:31: note: suggested alternative:
In file included from 0_0_19492548_7251.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_19492548_7251.cpp:12:53: error: 'nbsp' declared as reference but not initialized
         int len=strlen(a);  
                                                     ^
0_0_19492548_7251.cpp:12:58: error: 'len' was not declared in this scope
         int len=strlen(a);  
                                                          ^
0_0_19492548_7251.cpp:23:49: error: 'cout' was not declared in this scope
         cout<<sum<<endl;  
                                                 ^
0_0_19492548_7251.cpp:23:49: note: suggested alternative:
In file included from 0_0_19492548_7251.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
0_0_19492548_7251.cpp:23:60: error: 'endl' was not declared in this scope
         cout<<sum<<endl;  
                                                            ^
0_0_19492548_7251.cpp:23:60: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_19492548_7251.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^
0_0_19492548_7251.cpp:25:32: error: invalid conversion from 'char*' to 'int' [-fpermissive]
     return 0;  
                                ^
0_0_19492548_7251.cpp: At global scope:
0_0_19492548_7251.cpp:26:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_19492548_7251.cpp:26: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-10-06 12:28:55, Gzip enabled