Problem segmenttree
User chickengoat
Submission Time 2025-12-03 16:32:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:7:15: error: expected ‘)’ before ‘s’
7 | struct node(ll s,ll e) :S(s),E(e) {
| ~ ^~
| )
segmenttree.cpp: In function ‘void update(ll, ll)’:
segmenttree.cpp:19:5: error: ‘S’ was not declared in this scope
19 | if(S == E) {
| ^
segmenttree.cpp:19:10: error: ‘E’ was not declared in this scope
19 | if(S == E) {
| ^
segmenttree.cpp:20:13: error: ‘val’ was not declared in this scope
20 | val += newval;
| ^~~
segmenttree.cpp:23:19: error: ‘M’ was not declared in this scope
23 | if(pos <= M) {
| ^
segmenttree.cpp:24:13: error: ‘L’ was not declared in this scope
24 | L->update(pos, newval);
| ^
segmenttree.cpp:26:13: error: ‘R’ was not declared in this scope
26 | R->update(pos, newval);
| ^
segmen