| Problem | minstack |
|---|---|
| User | itsLQ |
| Submission Time | 2023-11-26 01:35:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp:3:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
3 | stack<pair<int, int>> minstack;
| ^~~~~
| obstack
minstack.cpp: In function ‘int top()’:
minstack.cpp:5:11: error: named return values are no longer supported
5 | int top() return minstack.top().first;
| ^~~~~~
minstack.cpp:9:9: error: ‘minstack’ was not declared in this scope; did you mean ‘sigstack’?
9 | if (minstack.empty()) minstack.push(make_pair(b, b));
| ^~~~~~~~
| sigstack
minstack.cpp:9:51: error: ‘b’ was not declared in this scope
9 | if (minstack.empty()) minstack.push(make_pair(b, b));
| ^
minstack.cpp:9:41: error: ‘make_pair’ was not declared in this scope; did you mean ‘std::make_pair’?
9 | if (minstack.empty()) minstack.push(make_pair(b, b));
|