Problem | fenwicktree |
---|---|
User | Kiameimon |
Submission Time | 2025-03-09 17:54:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In instantiation of ‘void propSegmentTree<T, U>::upd(int, int, U) [with T = long long int; U = int]’:
fenwicktree.cpp:113:18: required from here
fenwicktree.cpp:86:66: error: no match for call to ‘(const std::function<void(long long int&, int&, int&, int, int)>) (int&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int&, int&, int&)’
86 | if(l & 1) update(x, lazy[l], v, intv[l].first, intv[l].second), l++;
In file included from /usr/include/c++/9/functional:59,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from fenwicktree.cpp:1:
/usr/include/c++/9/bits/std_function.h:683:5: note: candidate: ‘_Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = void; _ArgTypes = {long long int&, int&