Problem | minstack |
---|---|
User | dacashew |
Submission Time | 2023-12-09 14:29:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minstack.cpp:93:5: error: ambiguating new declaration of ‘long long int top()’
93 | int top(){
| ^~~
In file included from minstack.cpp:60:
minstack.h:5:5: note: old declaration ‘int top()’
5 | int top();
| ^~~
minstack.cpp:97:5: error: ambiguating new declaration of ‘long long int getMin()’
97 | int getMin(){
| ^~~~~~
In file included from minstack.cpp:60:
minstack.h:7:5: note: old declaration ‘int getMin()’
7 | int getMin();
| ^~~~~~
minstack.cpp: In function ‘long long int getMin()’:
minstack.cpp:98:29: error: ‘class std::stack<long long int>’ has no member named ‘end’
98 | while(st.find(pq.top())==s.end()){
| ^~~