Problem segmenttree
User yc
Submission Time 2025-09-20 16:46:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:6:12: error: expected ‘)’ before ‘,’ token
6 | node(int_s ,int_e):
| ~ ^~
| )
segmenttree.cpp: In function ‘void update(int, int)’:
segmenttree.cpp:17:7: error: ‘s’ was not declared in this scope
17 | if (s==e) {val = v; return;}
| ^
segmenttree.cpp:17:10: error: ‘e’ was not declared in this scope
17 | if (s==e) {val = v; return;}
| ^
segmenttree.cpp:17:14: error: ‘val’ was not declared in this scope
17 | if (s==e) {val = v; return;}
| ^~~
segmenttree.cpp:18:9: error: ‘m’ was not declared in this scope
18 | if (p>m) r->update(p,y);
| ^
segmenttree.cpp:18:13: error: ‘r’ was not declared in this scope
18 | if (p>m) r->update(p,y);
| ^
segmenttree.cpp:18:25: error: ‘y’ was not declared in this scope
18 | if (p>m) r->update(p,y);
|