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

Compile Error

segmenttree2.cpp: In function ‘void build(long long int, long long int, long long int)’:
segmenttree2.cpp:8:3: error: ‘segmenttree’ was not declared in this scope
8 | segmenttree[index] = segmenttree[low];
| ^~~~~~~~~~~
segmenttree2.cpp:14:2: error: ‘segmenttree’ was not declared in this scope
14 | segmenttree[index] = segmenttree[2*index+1] + segmenttree[2*index+2];
| ^~~~~~~~~~~
segmenttree2.cpp: In function ‘int query(long long int, long long int, long long int, long long int, long long int)’:
segmenttree2.cpp:19:10: error: ‘segmenttree’ was not declared in this scope
19 | return segmenttree[index];
| ^~~~~~~~~~~
segmenttree2.cpp: In function ‘void update(long long int, long long int, long long int, long long int, long long int)’:
segmenttree2.cpp:32:3: error: ‘segmenttree’ was not declared in this scope
32 | segmenttree[index] += addition;
| ^~~~~~~~~~~
segmenttree2.cpp:42:3: erro