Problem segmenttree
User chatdanai
Submission Time 2026-09-01 16:24:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:12:3: error: expected ‘;’ after struct definition
12 | }
| ^
| ;
segmenttree.cpp: In function ‘long long int rmq(long long int, long long int)’:
segmenttree.cpp:14:10: error: ‘s’ was not declared in this scope
14 | if (x<=s && e<=y) return val;
| ^
segmenttree.cpp:14:15: error: ‘e’ was not declared in this scope
14 | if (x<=s && e<=y) return val;
| ^
segmenttree.cpp:14:28: error: ‘val’ was not declared in this scope
14 | if (x<=s && e<=y) return val;
| ^~~
segmenttree.cpp:15:9: error: ‘m’ was not declared in this scope
15 | if (x>m) return r->rmq(x,y);
| ^
segmenttree.cpp:15:19: error: ‘r’ was not declared in this scope
15 | if (x>m) return r->rmq(x,y);
| ^
segmenttree.cpp:16:9: error: ‘m’ was not declared in this scope
16 |