Problem segmenttree
User JohnC
Submission Time 2025-12-03 17:04:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp:7:1: error: ‘init’ does not name a type; did you mean ‘int’?
7 | init[MAX]; // init[i] = initial value of leaf i
| ^~~~
| int
segmenttree.cpp: In constructor ‘node::node(int, int)’:
segmenttree.cpp:13:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
13 | val = init[S];
| ^~~~
| int