Problem | segmenttree2 |
---|---|
User | PlayVoltz |
Submission Time | 2023-07-06 19:55:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp: In function ‘void build(int, int, int)’:
segmenttree2.cpp:8:20: error: invalid types ‘int[int]’ for array subscript
8 | segmenttree[index] = arr[low];
| ^
segmenttree2.cpp:14:19: error: invalid types ‘int[int]’ for array subscript
14 | segmenttree[index] = segmenttree[2*index+1] + segmenttree[2*index+2];
| ^
segmenttree2.cpp:14:44: error: invalid types ‘int[int]’ for array subscript
14 | segmenttree[index] = segmenttree[2*index+1] + segmenttree[2*index+2];
| ^
segmenttree2.cpp:14:69: error: invalid types ‘int[int]’ for array subscript
14 | segmenttree[index] = segmenttree[2*index+1] + segmenttree[2*index+2];
| ^
segmenttree2.cpp: In function ‘int query(int, int, int, int, int)’:
segmenttree2.cpp:19:27: error: invalid types ‘int[int]’ for ar