Problem segmenttree
User Kiameimon
Submission Time 2024-10-17 01:15:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

segmenttree.cpp: In member function ‘void node::upd(int, node::U)’:
segmenttree.cpp:59:12: error: ‘l’ was not declared in this scope; did you mean ‘ll’?
59 | if(l > E || r < S) return;
| ^
| ll
segmenttree.cpp:59:21: error: ‘r’ was not declared in this scope
59 | if(l > E || r < S) return;
| ^
segmenttree.cpp: In function ‘int main()’:
segmenttree.cpp:81:30: error: ‘init’ was not declared in this scope; did you mean ‘int’?
81 | for(int i = 1; i <= n; i++) init[i] = 0;
| ^~~~
| int