| Problem | segmenttree |
|---|---|
| User | zyc |
| Submission Time | 2025-12-03 14:35:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In constructor ‘node::node(ll, ll)’:
segmenttree.cpp:36:19: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
36 | s = _s; e = _e; m = (s+e) / 2;
| ^
| tm
segmenttree.cpp: In member function ‘void node::upd(ll, ll)’:
segmenttree.cpp:47:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
47 | if(n<=m) l-> upd(n,v);
| ^
| tm
segmenttree.cpp: In member function ‘ll node::qry(ll, ll)’:
segmenttree.cpp:55:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
55 | if(y<=m) return l->qry(x,y); // only in the left half
| ^
| tm
segmenttree.cpp:56:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
56 | if(x>=m+1) return r->qry(x,y); // only in the right half
| ^
| tm
segmenttree.cpp:57:34: error: ‘m’ was n