| Problem | segmenttree2 |
|---|---|
| User | Usu |
| Submission Time | 2026-02-26 19:03:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
segmenttree2.cpp: In member function ‘void Fenwick::upd(int, int, ll)’:
segmenttree2.cpp:21:14: error: cannot convert ‘std::vector<int>’ to ‘std::vector<long long int>&’
21 | _add(B1, l, delta);
| ^~
| |
| std::vector<int>
segmenttree2.cpp:9:27: note: initializing argument 1 of ‘void Fenwick::_add(std::vector<long long int>&, int, ll)’
9 | void _add(vector<ll>& bit, int idx, ll delta) {
| ~~~~~~~~~~~~^~~
segmenttree2.cpp:22:14: error: cannot convert ‘std::vector<int>’ to ‘std::vector<long long int>&’
22 | _add(B1, r+1, -delta);
| ^~
| |
| std::vector<int>
segmenttree2.cpp:9:27: note: initializing argument 1 of ‘void Fenwick::_add(std::vector<long long int>&, int, ll)’
9 | void _add(vector<ll>& bit, int idx, ll