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_37384087_3649.cpp:7:1: error: 'string' does not name a type
 string s[maxn],u,v;
 ^
0_0_37384087_3649.cpp:9:9: error: 'string' was not declared in this scope
 bool pd(string u, string v) {//v是否是u的子串
         ^
0_0_37384087_3649.cpp:9:9: 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_37384087_3649.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_37384087_3649.cpp:9:19: error: 'string' was not declared in this scope
 bool pd(string u, string v) {//v是否是u的子串
                   ^
0_0_37384087_3649.cpp:9:19: 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_37384087_3649.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_37384087_3649.cpp:9:27: error: expression list treated as compound expression in initializer [-fpermissive]
 bool pd(string u, string v) {//v是否是u的子串
                           ^
0_0_37384087_3649.cpp:9:29: error: expected ',' or ';' before '{' token
 bool pd(string u, string v) {//v是否是u的子串
                             ^


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-17 03:36:57, Gzip enabled