Problem | segmenttree |
---|---|
User | Potato3218 |
Submission Time | 2024-04-09 14:30:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:36:30: error: expected ‘;’ before ‘for’
36 | root = new node(0, n - 1) //0-indexed segment tree starts from 0, ends at n-1
| ^
| ;
37 | for(int i = 0; i < q; i++){
| ~~~
segmenttree.cpp:37:20: error: ‘i’ was not declared in this scope
37 | for(int i = 0; i < q; i++){
| ^