Problem | eelimination |
---|---|
User | MegaG |
Submission Time | 2025-10-11 12:32:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eelimination.cpp: In function ‘int main()’:
eelimination.cpp:29:5: error: ‘stack’ was not declared in this scope
29 | stack<int> st;
| ^~~~~
eelimination.cpp:12:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
11 | #include <unordered_set>
+++ |+#include <stack>
12 | #include <utility>
eelimination.cpp:13:13: error: expected primary-expression before ‘long’
13 | #define int long long
| ^~~~
eelimination.cpp:29:11: note: in expansion of macro ‘int’
29 | stack<int> st;
| ^~~
eelimination.cpp:32:17: error: ‘st’ was not declared in this scope; did you mean ‘std’?
32 | while (!st.empty() and H[i] > H[st.top()]) {
| ^~
| std
eelimination.cpp:36:9: error: ‘st’ was not declared in this scope; did you mean ‘std’?
36 | s