| Problem | minstack |
|---|---|
| User | Xrh999 |
| Submission Time | 2025-12-12 09:12:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:8:2: error: reference to ‘stack’ is ambiguous
8 | stack.push_front(X);
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from minstack.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:99:11: note: candidates are: ‘template<class _Tp, class _Sequence> class std::stack’
99 | class stack
| ^~~~~
minstack.cpp:5:12: note: ‘std::deque<int> stack’
5 | deque<int> stack;
| ^~~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:12:5: error: reference to ‘stack’ is ambiguous
12 | stack.pop_front();
| ^~~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from minstack.cpp:1:
/usr/inclu