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_29450842_16443.cpp: In function 'int main()':
0_0_29450842_16443.cpp:17:3: error: 'stack' was not declared in this scope
   stack<int>s;
   ^
0_0_29450842_16443.cpp:17:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_29450842_16443.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note:   'std::stack'
     class stack
           ^
0_0_29450842_16443.cpp:17:9: error: expected primary-expression before 'int'
   stack<int>s;
         ^
0_0_29450842_16443.cpp:42:4: error: 's' was not declared in this scope
    s.push((a+b+r)%prim[cnt]);
    ^
0_0_29450842_16443.cpp:47:3: error: 's' was not declared in this scope
   s.push(r);
   ^
0_0_29450842_16443.cpp:48:15: error: 's' was not declared in this scope
   printf("%d",s.top());s.pop();
               ^


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-02 03:18:40, Gzip enabled