Problem segmenttree2
User PlayVoltz
Submission Time 2023-08-06 15:03:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree2.cpp:5:1: error: ‘vector’ does not name a type
5 | vector <int> segmenttree(4*segmenttree_size, 0);
| ^~~~~~
segmenttree2.cpp:6:1: error: ‘vector’ does not name a type
6 | vector <int> lazytree(4*segmenttree_size, 0);
| ^~~~~~
segmenttree2.cpp: In function ‘int query(int, int, int, int, int)’:
segmenttree2.cpp:10:6: error: ‘lazytree’ was not declared in this scope
10 | if (lazytree[index]!=0){
| ^~~~~~~~
segmenttree2.cpp:11:3: error: ‘segmenttree’ was not declared in this scope; did you mean ‘segmenttree_size’?
11 | segmenttree[index]+=(high - low + 1) * lazytree[index];
| ^~~~~~~~~~~
| segmenttree_size
segmenttree2.cpp:23:10: error: ‘segmenttree’ was not declared in this scope; did you mean ‘segmenttree_size’?
23 | return segmenttree[index];
| ^~~~~~~~~~~
| segmenttree_size
segmenttree2.cpp: In function ‘void rangeupda