| Problem | minstack |
|---|---|
| User | thatlycheeoolongdrink |
| Submission Time | 2025-12-10 14:17:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp:12:5: error: ambiguating new declaration of ‘long long int top()’
12 | int top() {
| ^~~
In file included from minstack.cpp:2:
minstack.h:5:5: note: old declaration ‘int top()’
5 | int top();
| ^~~
minstack.cpp:15:5: error: ambiguating new declaration of ‘long long int getMin()’
15 | int getMin() {
| ^~~~~~
In file included from minstack.cpp:2:
minstack.h:7:5: note: old declaration ‘int getMin()’
7 | int getMin();
| ^~~~~~
minstack.cpp: In function ‘long long int getMin()’:
minstack.cpp:17:17: error: ‘x’ was not declared in this scope
17 | for (int i=0;i<x.size();i++) {
| ^