Problem lampposts
User penguin133
Submission Time 2022-12-26 19:10:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lampposts.cpp: In member function ‘void node::upd(int, int)’:
lampposts.cpp:10:19: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
10 | if(s == e)val = min(val, v);
| ^~~
| mn
lampposts.cpp:14:10: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
14 | val = min(l->val, r->val);
| ^~~
| mn
lampposts.cpp: In member function ‘int node::query(int, int)’:
lampposts.cpp:21:15: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
21 | else return min(l->query(a, m), r->query(m+1, b));
| ^~~
| mn
lampposts.cpp: In member function ‘void node::upd2(int, int)’:
lampposts.cpp:24:20: error: ‘max’ was not declared in this scope; did you mean ‘mx’?
24 | if(s == e)val2 = max(val2, v);
| ^~~
| mx
lampposts.cp