Problem rarwall
User Tyx2019
Submission Time 2024-05-15 11:29:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rarwall.cpp: In member function ‘long long int node::qry(int, int)’:
rarwall.cpp:47:34: error: ‘M’ was not declared in this scope
47 | return max(l->qry(x, M), r->qry((S+E)>>1 + 1, y)) + ladd;
| ^
rarwall.cpp: In member function ‘node* node::upd(int, int, int)’:
rarwall.cpp:72:29: error: ‘M’ was not declared in this scope
72 | res->r = r->upd(M + 1, y, v);
| ^