| Problem | minstack |
|---|---|
| User | Jude |
| Submission Time | 2026-03-12 08:49:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp:5:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
5 | stack<pair<long long, long long>> minStack;
| ^~~~~
| obstack
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:8:19: error: ‘minStack’ was not declared in this scope
8 | int new_min = minStack.empty() ? x : min(x, minStack.top().second);
| ^~~~~~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:13:6: error: ‘minStack’ was not declared in this scope
13 | minStack.pop();
| ^~~~~~~~
minstack.cpp: In function ‘int top()’:
minstack.cpp:17:12: error: ‘minStack’ was not declared in this scope
17 | return minStack.top().first;
| ^~~~~~~~
minstack.cpp: In function ‘int getMin()’:
minstack.cpp:21:19: error: ‘minStack’ was not declared in this scope
21 | int minimum = minStack.top().second;
| ^~~~~~~~