Problem plagia
User haydendoo
Submission Time 2023-03-25 02:45:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

plagia.cpp: In constructor ‘node::node(long long int, long long int, long long int*)’:
plagia.cpp:238:19: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
238 | l = new node(s, m, a); r = new node(m+1,e,a); combine();
| ^
| tm
plagia.cpp: In member function ‘void node::upd(long long int, long long int, long long int)’:
plagia.cpp:258:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
258 | sus if(y<=m) l->upd(x, y, v);
| ^
| tm
plagia.cpp: In member function ‘long long int node::query(long long int, long long int)’:
plagia.cpp:265:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
265 | sus if(y<=m) return l->query(x, y);
| ^
| tm
plagia.cpp:266:8: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
266 | if(x>m) return r->query(x, y);