| Problem | minstack |
|---|---|
| User | jmuzhen |
| Submission Time | 2025-12-12 09:33:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp:30:11: error: ‘inf’ does not name a type; did you mean ‘ynf’?
30 | constexpr inf INF = 1e9 + 10;
| ^~~
| ynf
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:39:9: error: ‘class std::stack<int>’ has no member named ‘push_back’
39 | stk.push_back(idx);
| ^~~~~~~~~
minstack.cpp: In function ‘void pop()’:
minstack.cpp:45:19: error: ‘INF’ was not declared in this scope
45 | root->set(x, {INF, x});
| ^~~
minstack.cpp:45:26: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘std::pair<int, int>’
45 | root->set(x, {INF, x});
| ^
minstack.cpp:15:22: note: initializing argument 2 of ‘void SegTree<T>::set(int, T) [with T = std::pair<int, int>]’
15 | void set(int p,T v) {
| ~~^
minstack.cpp: In function ‘int top()’:
m