| Problem | segmenttree |
|---|---|
| User | weiheng |
| Submission Time | 2026-09-01 16:28:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In function ‘int rmq(int, int)’:
segmenttree.cpp:16:10: error: ‘s’ was not declared in this scope
16 | if (x>=s && y<=e) return val;
| ^
segmenttree.cpp:16:18: error: ‘e’ was not declared in this scope
16 | if (x>=s && y<=e) return val;
| ^
segmenttree.cpp:16:28: error: ‘val’ was not declared in this scope
16 | if (x>=s && y<=e) return val;
| ^~~
segmenttree.cpp:17:9: error: ‘m’ was not declared in this scope
17 | if (x>m) return r->rmq(x,y);
| ^
segmenttree.cpp:17:19: error: ‘r’ was not declared in this scope
17 | if (x>m) return r->rmq(x,y);
| ^
segmenttree.cpp:18:10: error: ‘m’ was not declared in this scope
18 | if (y<=m) return l->rmq(x,y);
| ^
segmenttree.cpp:18:20: error: ‘l’ was not declared in this scope
18 |