Problem | minstack |
---|---|
User | Duk168 |
Submission Time | 2024-06-25 23:14:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘int main()’:
minstack.cpp:11:11: error: expected primary-expression before ‘int’
11 | stack<int> minStack;
| ^~~
minstack.cpp:24:17: error: ‘minStack’ was not declared in this scope
24 | if (minStack.empty() || X <= minStack.top()) {
| ^~~~~~~~
minstack.cpp:29:36: error: ‘minStack’ was not declared in this scope
29 | if (stack.top() == minStack.top()) {
| ^~~~~~~~
minstack.cpp:39:18: error: ‘minStack’ was not declared in this scope
39 | if (!minStack.empty()) {
| ^~~~~~~~