Problem | minstack |
---|---|
User | maximushartanto |
Submission Time | 2025-07-02 13:47:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp:4:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
4 | stack<int> s;
| ^~~~~
| obstack
minstack.cpp:5:1: error: ‘multiset’ does not name a type
5 | multiset<int> ms;
| ^~~~~~~~
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:8:5: error: ‘s’ was not declared in this scope
8 | s.push(X);
| ^
minstack.cpp:9:5: error: ‘ms’ was not declared in this scope
9 | ms.insert(X);
| ^~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:13:5: error: ‘ms’ was not declared in this scope
13 | ms.erase(s.top());
| ^~
minstack.cpp:13:14: error: ‘s’ was not declared in this scope
13 | ms.erase(s.top());
| ^
minstack.cpp: In function ‘int top()’:
minstack.cpp:18:12: error: ‘s’ was not declared in this scope
18 | return s.top();
| ^
minstack.cpp: In function