Problem eelimination
User gelastropod
Submission Time 2025-07-14 08:32:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eelimination.cpp: In function ‘int main()’:
eelimination.cpp:11:22: error: ‘stack’ was not declared in this scope
11 | int n, a; cin >> n; stack<pair<int, int>> stk;
| ^~~~~
eelimination.cpp:4:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
3 | #include <vector>
+++ |+#include <stack>
4 |
eelimination.cpp:11:41: error: expected primary-expression before ‘>’ token
11 | int n, a; cin >> n; stack<pair<int, int>> stk;
| ^~
eelimination.cpp:11:44: error: ‘stk’ was not declared in this scope; did you mean ‘std’?
11 | int n, a; cin >> n; stack<pair<int, int>> stk;
| ^~~
| std