| Problem | minstack |
|---|---|
| User | bribritt |
| Submission Time | 2023-03-17 12:18:28 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
minstack.cpp: In function ‘void push(int)’:
minstack.cpp:32:21: error: no matching function for call to ‘node::update(int&, int&)’
32 | root->update(cnt, x);
| ^
minstack.cpp:20:10: note: candidate: ‘void node::update(ll, ll, ll, ll)’
20 | void update(ll s, ll e, ll x, ll u) {
| ^~~~~~
minstack.cpp:20:10: note: candidate expects 4 arguments, 2 provided
minstack.cpp: In function ‘void pop()’:
minstack.cpp:35:29: error: no matching function for call to ‘node::update(int, int)’
35 | root->update(cnt--, INT_MAX);
| ^
minstack.cpp:20:10: note: candidate: ‘void node::update(ll, ll, ll, ll)’
20 | void update(ll s, ll e, ll x, ll u) {
| ^~~~~~
minstack.cpp:20:10: note: candidate expects 4 arguments, 2 provided
minstack.cpp: In function ‘int top()’:
minstack.cpp:38:29: error: no matching function for call to ‘node::query(int