Problem segmenttree2
User tanyap2906
Submission Time 2025-12-08 15:17:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:5:13: error: array bound is not an integer constant before ‘]’ token
5 | int init[MAX]; //fill up with intitial values
| ^
segmenttree2.cpp: In constructor ‘node::node(int, int)’:
segmenttree2.cpp:12:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
12 | val = init[S];
| ^~~~
| int