Problem | fibotree |
---|---|
User | jatrophalouvre |
Submission Time | 2024-10-11 11:00:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibotree.cpp: In function ‘void _upd(int, int&, int&, ll)’:
fibotree.cpp:170:40: error: binding reference of type ‘int&’ to ‘const int’ discards qualifiers
170 | if (l<=mid[u]) _upd(u*2, l, min(r, mid[u]), x);
| ~~~^~~~~~~~~~~
fibotree.cpp:157:35: note: initializing argument 3 of ‘void _upd(int, int&, int&, ll)’
157 | void _upd(int u, int &l, int &r, ll x)
| ~~~~~^
fibotree.cpp:171:38: error: binding reference of type ‘int&’ to ‘const int’ discards qualifiers
171 | if (r>mid[u]) _upd(u*2+1, max(mid[u]+1, l), r, x);
| ~~~^~~~~~~~~~~~~
fibotree.cpp:157:27: note: initializing argument 2 of ‘void _upd(int, int&, int&, ll)’
157 | void _upd(int u, int &l, int &r, ll x)
| ~~~~~^
fibotree.cpp: In function ‘ll _qry(int, int&, int&)’:
fibotree.cpp:179:45: error: binding r