Problem | segmenttree2 |
---|---|
User | PlayVoltz |
Submission Time | 2023-08-31 22:18:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp:4:1: error: ‘vector’ does not name a type
4 | vector <int> segmenttree, lazytree;
| ^~~~~~
segmenttree2.cpp: In function ‘int query(int, int, int, int, int)’:
segmenttree2.cpp:7:6: error: ‘lazytree’ was not declared in this scope
7 | if (lazytree[index]!=0){
| ^~~~~~~~
segmenttree2.cpp:8:3: error: ‘segmenttree’ was not declared in this scope
8 | segmenttree[index]+=(high - low + 1) * lazytree[index];
| ^~~~~~~~~~~
segmenttree2.cpp:20:10: error: ‘segmenttree’ was not declared in this scope
20 | return segmenttree[index];
| ^~~~~~~~~~~
segmenttree2.cpp: In function ‘void rangeupdate(int, int, int, int, int, int)’:
segmenttree2.cpp:29:6: error: ‘lazytree’ was not declared in this scope
29 | if (lazytree[index]!=0){
| ^~~~~~~~
segmenttree2.cpp:30:3: error: ‘segmenttree’ was not declared in this scope
30 | segmenttree[index]+=(high - lo