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_30754510_23264.cpp:9:1: error: 'vector' does not name a type
 vector<string> a[30];
 ^
0_0_30754510_23264.cpp: In function 'void init()':
0_0_30754510_23264.cpp:16:2: error: 'a' was not declared in this scope
  a['Y'-'A'].push_back("QQQ");
  ^
0_0_30754510_23264.cpp:32:21: error: expected ';' before ')' token
   for(int j=i+1;j<10)
                     ^
0_0_30754510_23264.cpp:34:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    string ss=tem[i]+tem[j];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 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_30754510_23264.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
       basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
       ^
0_0_30754510_23264.cpp: In function 'int main()':
0_0_30754510_23264.cpp:42:27: error: 'sync_with_stdio' was not declared in this scope
  ios:sync_with_stdio(false);
                           ^
0_0_30754510_23264.cpp:48:16: error: 'a' was not declared in this scope
  for(int i=0;i<a[head].size();i++)
                ^
0_0_30754510_23264.cpp:52:10: error: 'former' was not declared in this scope
   fromer=former.substr(1);
          ^


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-06-27 01:43:10, Gzip enabled