| Problem | segmenttree2 |
|---|---|
| User | Usu |
| Submission Time | 2026-02-25 23:55:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:6:13: error: size ‘16000000000000000000’ of array ‘init’ exceeds maximum object size ‘9223372036854775807’
6 | int init[MAX]; // init[i] = initial value of leaf i
| ^
segmenttree2.cpp: In constructor ‘node::node(long long int, long long int)’:
segmenttree2.cpp:14:19: error: ‘init’ was not declared in this scope; did you mean ‘int’?
14 | val = init[S];
| ^~~~
| int
segmenttree2.cpp: In function ‘int32_t main()’:
segmenttree2.cpp:63:27: error: ‘init’ was not declared in this scope; did you mean ‘int’?
63 | for(int i=1;i<=n;i++) init[i]=0;
| ^~~~
| int