Problem fenwicktree
User jmuzhen
Submission Time 2024-12-09 14:27:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In member function ‘void node::combine()’:
fenwicktree.cpp:59:14: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
59 | mn = min(l->mn, r->mn);
| ^~~
| mn
fenwicktree.cpp:60:14: error: ‘max’ was not declared in this scope; did you mean ‘mx’?
60 | mx = max(l->mx, r->mx);
| ^~~
| mx
fenwicktree.cpp: In member function ‘void node::add(int, int, ll)’:
fenwicktree.cpp:71:31: error: ‘min’ was not declared in this scope; did you mean ‘mn’?
71 | if (x <= m) l->add(x, min(y, m), v);
| ^~~
| mn
fenwicktree.cpp:72:27: error: ‘max’ was not declared in this scope; did you mean ‘mx’?
72 | if (y > m) r->add(max(x, m + 1), y, v);
| ^~~
| mx
f