Problem segmenttree
User yhkhoo
Submission Time 2025-12-03 15:30:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:40:2: error: expected ‘;’ after struct definition
40 | }
| ^
| ;
segmenttree.cpp: In member function ‘int node::update(int, int)’:
segmenttree.cpp:30:4: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
30 | return;
| ^~~~~~
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:47:5: error: ‘root’ was not declared in this scope
47 | root = new node(0, n-1);
| ^~~~