Problem segmenttree2
User PlayVoltz
Submission Time 2023-07-06 20:39:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:6:5: error: storage size of ‘segmenttree’ isn’t known
6 | int segmenttree[];
| ^~~~~~~~~~~
segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:51:22: error: initializer fails to determine size of ‘segmenttree’
51 | int segmenttree[] = new int[n*4];
| ^~~~~~~~~~~~
segmenttree2.cpp:51:22: error: array must be initialized with a brace-enclosed initializer