| Problem | segmenttree |
|---|---|
| User | shenshiqi |
| Submission Time | 2025-12-03 14:34:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In constructor ‘node::node(long long int, long long int)’:
segmenttree.cpp:13:19: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
13 | s = _s; e = _e; m = (s+e)/2;
| ^
| tm
segmenttree.cpp: In member function ‘void node::upd(long long int, long long int)’:
segmenttree.cpp:26:12: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
26 | if (n <= m) l->upd(n, v);
| ^
| tm
segmenttree.cpp: In member function ‘long long int node::query(long long int, long long int)’:
segmenttree.cpp:33:12: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
33 | if (y <= m) return l->query(x, y); //only in left half
| ^
| tm
segmenttree.cpp:34:12: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
34 | if (x >= m+1) return r->query(x, y); //only in