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_37010462_953.cpp: In function 'int main()':
0_0_37010462_953.cpp:5:1: error: 'string' was not declared in this scope
 string ss,s1;
 ^
0_0_37010462_953.cpp:5:1: 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++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37010462_953.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_37010462_953.cpp:6:1: error: 'queue' was not declared in this scope
 queue<int>q;
 ^
0_0_37010462_953.cpp:6:1: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_37010462_953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note:   'std::queue'
     class queue
           ^
0_0_37010462_953.cpp:6:7: error: expected primary-expression before 'int'
 queue<int>q;
       ^
0_0_37010462_953.cpp:7:1: error: 'stack' was not declared in this scope
 stack<int>s;
 ^
0_0_37010462_953.cpp:7:1: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
                 from 0_0_37010462_953.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note:   'std::stack'
     class stack
           ^
0_0_37010462_953.cpp:7:7: error: expected primary-expression before 'int'
 stack<int>s;
       ^
0_0_37010462_953.cpp:11:13: error: 'ss' was not declared in this scope
 scanf("%s",&ss);
             ^
0_0_37010462_953.cpp:14:13: error: 's1' was not declared in this scope
 scanf("%s",&s1);
             ^
0_0_37010462_953.cpp:17:1: error: 'q' was not declared in this scope
 q.push(qp);
 ^
0_0_37010462_953.cpp:19:4: error: 'q' was not declared in this scope
 if(q.empty()){
    ^
0_0_37010462_953.cpp:29:13: error: 's1' was not declared in this scope
 scanf("%s",&s1);
             ^
0_0_37010462_953.cpp:32:1: error: 's' was not declared in this scope
 s.push(qp);
 ^
0_0_37010462_953.cpp:34:4: error: 's' was not declared in this scope
 if(s.empty()){
    ^


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-02 10:18:11, Gzip enabled