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_39655332_5186.cpp: In function 'int main()':
0_0_39655332_5186.cpp:41:9: error: 'stack' was not declared in this scope
   41 |         stack<pair<int, int>> st1;
      |         ^~~~~
0_0_39655332_5186.cpp:13:1: note: 'std::stack' is defined in header '<stack>'; did you forget to '#include <stack>'?
   12 | #include "queue"
  +++ |+#include <stack>
   13 | 
0_0_39655332_5186.cpp:41:28: error: expected primary-expression before '>' token
   41 |         stack<pair<int, int>> st1;
      |                            ^~
0_0_39655332_5186.cpp:41:31: error: 'st1' was not declared in this scope; did you mean 'std'?
   41 |         stack<pair<int, int>> st1;
      |                               ^~~
      |                               std
0_0_39655332_5186.cpp:53:28: error: expected primary-expression before '>' token
   53 |         stack<pair<int, int>> st2;
      |                            ^~
0_0_39655332_5186.cpp:53:31: error: 'st2' was not declared in this scope; did you mean 'std'?
   53 |         stack<pair<int, int>> st2;
      |                               ^~~
      |                               std


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-11 15:17:17, Gzip enabled