Problem minstack
User tuongphat2505
Submission Time 2026-03-01 19:21:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minstack.cpp:54:4: error: ambiguating new declaration of ‘long long int top()’
54 | ll top()
| ^~~
In file included from minstack.cpp:2:
minstack.h:5:5: note: old declaration ‘int top()’
5 | int top();
| ^~~
minstack.cpp:60:4: error: ambiguating new declaration of ‘long long int pop()’
60 | ll pop()
| ^~~
In file included from minstack.cpp:2:
minstack.h:3:6: note: old declaration ‘void pop()’
3 | void pop();
| ^~~
minstack.cpp:69:4: error: ambiguating new declaration of ‘long long int getMin()’
69 | ll getMin()
| ^~~~~~
In file included from minstack.cpp:2:
minstack.h:7:5: note: old declaration ‘int getMin()’
7 | int getMin();
| ^~~~~~