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

Compile Error

segmenttree2.cpp: In function ‘int main()’:
segmenttree2.cpp:51:22: error: invalid conversion from ‘void*’ to ‘long long int*’ [-fpermissive]
51 | segmenttree = malloc(n*4 * sizeof(*segmenttree));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*