| Problem | segmenttree |
|---|---|
| User | chickengoat |
| Submission Time | 2025-12-03 16:24:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree.cpp:5:15: error: expected ‘)’ before ‘s’
5 | struct node(ll s,ll e) : S(s),E(e) {
| ~ ^~
| )
segmenttree.cpp: In function ‘void update(ll, ll)’:
segmenttree.cpp:16:5: error: ‘S’ was not declared in this scope
16 | if(S==E) {
| ^
segmenttree.cpp:16:8: error: ‘E’ was not declared in this scope
16 | if(S==E) {
| ^
segmenttree.cpp:17:3: error: ‘val’ was not declared in this scope
17 | val+=newval;
| ^~~
segmenttree.cpp:19:10: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
19 | if(pos<=m) {
| ^
| tm
segmenttree.cpp:20:3: error: ‘L’ was not declared in this scope
20 | L->update(pos,newval);
| ^
segmenttree.cpp:23:3: error: ‘R’ was not declared in this scope
23 | R->update(pos,newval);
| ^
segmenttree.cpp:25:2: error: ‘val’ was not declared in