Problem | minstack |
---|---|
User | aj |
Submission Time | 2025-01-24 17:12:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘int main()’:
minstack.cpp:7:2: error: ‘stack’ was not declared in this scope
7 | stack<long long> values;
| ^~~~~
minstack.cpp:3:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
2 | #include <deque>
+++ |+#include <stack>
3 | using namespace std;
minstack.cpp:7:8: error: expected primary-expression before ‘long’
7 | stack<long long> values;
| ^~~~
minstack.cpp:18:4: error: ‘values’ was not declared in this scope
18 | values.push(to_push);
| ^~~~~~
minstack.cpp:20:4: error: ‘values’ was not declared in this scope
20 | values.pop();
| ^~~~~~
minstack.cpp:22:10: error: ‘values’ was not declared in this scope
22 | cout<<values.top();
| ^~~~~~
minstack.cpp:25:10: error: ‘values’ was not declared in this scope
25 | cout<&