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_13722284_23001.cpp:51:1: error: stray '\275' in program
 }------解决方案--------------------比较函数错了,应该为
 ^
0_0_13722284_23001.cpp:51:1: error: stray '\342' in program
0_0_13722284_23001.cpp:51:1: error: stray '\276' in program
0_0_13722284_23001.cpp:51:1: error: stray '\366' in program
0_0_13722284_23001.cpp:51:1: error: stray '\267' in program
0_0_13722284_23001.cpp:51:1: error: stray '\275' in program
0_0_13722284_23001.cpp:51:1: error: stray '\260' in program
0_0_13722284_23001.cpp:51:1: error: stray '\270' in program
0_0_13722284_23001.cpp:51:1: error: stray '\261' in program
0_0_13722284_23001.cpp:51:1: error: stray '\310' in program
0_0_13722284_23001.cpp:51:1: error: stray '\275' in program
0_0_13722284_23001.cpp:51:1: error: stray '\317' in program
0_0_13722284_23001.cpp:51:1: error: stray '\272' in program
0_0_13722284_23001.cpp:51:1: error: stray '\257' in program
0_0_13722284_23001.cpp:51:1: error: stray '\312' in program
0_0_13722284_23001.cpp:51:1: error: stray '\375' in program
0_0_13722284_23001.cpp:51:1: error: stray '\264' in program
0_0_13722284_23001.cpp:51:1: error: stray '\355' in program
0_0_13722284_23001.cpp:51:1: error: stray '\301' in program
0_0_13722284_23001.cpp:51:1: error: stray '\313' in program
0_0_13722284_23001.cpp:51:1: error: stray '\243' in program
0_0_13722284_23001.cpp:51:1: error: stray '\254' in program
0_0_13722284_23001.cpp:51:1: error: stray '\323' in program
0_0_13722284_23001.cpp:51:1: error: stray '\246' in program
0_0_13722284_23001.cpp:51:1: error: stray '\270' in program
0_0_13722284_23001.cpp:51:1: error: stray '\303' in program
0_0_13722284_23001.cpp:51:1: error: stray '\316' in program
0_0_13722284_23001.cpp:51:1: error: stray '\252' in program
0_0_13722284_23001.cpp:5:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_13722284_23001.cpp:5:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_13722284_23001.cpp:5:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_13722284_23001.cpp:5:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_13722284_23001.cpp:6:1: error: 'string' does not name a type
 string s;
 ^
0_0_13722284_23001.cpp:6:13: error: 's' does not name a type
 string s;
             ^
0_0_13722284_23001.cpp:7:6: error: 'nbsp' declared as reference but not initialized
 bool comp(string s1,string s2){
      ^
0_0_13722284_23001.cpp:7:15: error: expected constructor, destructor, or type conversion before '(' token
 bool comp(string s1,string s2){
               ^
0_0_13722284_23001.cpp:7:28: error: 's1' does not name a type
 bool comp(string s1,string s2){
                            ^
0_0_13722284_23001.cpp:7:43: error: 's2' does not name a type
 bool comp(string s1,string s2){
                                           ^
0_0_13722284_23001.cpp:14:5: error: conflicting declaration 'int& nbsp'
 int main(){
     ^
0_0_13722284_23001.cpp:7:6: note: previous declaration as 'bool& nbsp'
 bool comp(string s1,string s2){
      ^
0_0_13722284_23001.cpp: In function 'int main()':
0_0_13722284_23001.cpp:15:32: error: 'nbsp' declared as reference but not initialized
     size_t p,pt;
                                ^
0_0_13722284_23001.cpp:15:37: error: 'p' was not declared in this scope
     size_t p,pt;
                                     ^
0_0_13722284_23001.cpp:15:39: error: 'pt' was not declared in this scope
     size_t p,pt;
                                       ^
0_0_13722284_23001.cpp:16:25: error: 'string' was not declared in this scope
     string t;
                         ^
0_0_13722284_23001.cpp:16:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_13722284_23001.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note:   'std::string'
   typedef basic_string<char>    string;   
                                 ^
0_0_13722284_23001.cpp:16:37: error: 't' was not declared in this scope
     string t;
                                     ^
0_0_13722284_23001.cpp:17:31: error: 'cin' was not declared in this scope
     while(cin>>s){
                               ^
0_0_13722284_23001.cpp:17:31: note: suggested alternative:
In file included from 0_0_13722284_23001.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_13722284_23001.cpp:17:36: error: 's' was not declared in this scope
     while(cin>>s){
                                    ^
0_0_13722284_23001.cpp:18:49: error: 'vector' was not declared in this scope
         vector<string> a;
                                                 ^
0_0_13722284_23001.cpp:18:49: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from 0_0_13722284_23001.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:   'std::vector'
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_13722284_23001.cpp:18:69: error: 'a' was not declared in this scope
         vector<string> a;
                                                                     ^
0_0_13722284_23001.cpp:24:104: error: 'string' is not a class, namespace, or enumeration
                 if(pt==string::npos) t="0";
                                                                                                        ^
0_0_13722284_23001.cpp:25:97: error: expected '}' before 'else'
                 else t.assign(t,pt,t.length()-pt);
                                                                                                 ^
0_0_13722284_23001.cpp:27:103: error: 'string' is not a class, namespace, or enumeration
                 if(p!=string::npos) s.assign(s,p,s.length()-p);
                                                                                                       ^
0_0_13722284_23001.cpp:28:97: error: 'else' without a previous 'if'
                 else s="";
                                                                                                 ^
0_0_13722284_23001.cpp:30:1: error: expected 'while' before '&' token
             p=s.find_first_not_of("5");
 ^
0_0_13722284_23001.cpp:30:1: error: expected '(' before '&' token
0_0_13722284_23001.cpp:30:6: error: expected ')' before ';' token
             p=s.find_first_not_of("5");
      ^
0_0_13722284_23001.cpp:31:79: error: 'string' is not a class, namespace, or enumeration
             if(p!=string::npos) s.assign(s,p,s.length()-p);
                                                                               ^
0_0_13722284_23001.cpp:32:73: error: 'else' without a previous 'if'
             else s.assign("");
                                                                         ^
0_0_13722284_23001.cpp:34:59: error: 'string' is not a class, namespace, or enumeration
         }while(p!=string::npos);
                                                           ^
0_0_13722284_23001.cpp:35:52: error: 's' was not declared in this scope
         if(s.length()){ 
                                                    ^
0_0_13722284_23001.cpp:38:80: error: 'string' is not a class, namespace, or enumeration
             if(pt==string::npos) t="0";
                                                                                ^
0_0_13722284_23001.cpp:39:73: error: expected '}' before 'else'
             else t.assign(t,pt,t.length()-pt);
                                                                         ^
0_0_13722284_23001.cpp:40:73: error: 'a' was not declared in this scope
             a.push_back(t);
                                                                         ^
0_0_13722284_23001.


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-12-03 17:54:24, Gzip enabled