Problem | fenwicktree |
---|---|
User | Kiameimon |
Submission Time | 2024-03-26 14:08:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In instantiation of ‘void propSegmentTree<T, U>::vis(int) [with T = long long int; U = int]’:
fenwicktree.cpp:78:3: required from ‘void propSegmentTree<T, U>::upd(int, int, U) [with T = long long int; U = int]’
fenwicktree.cpp:102:18: required from here
fenwicktree.cpp:44:4: error: no match for call to ‘(const std::function<void(long long int&, int&, int&, int, int)>) (__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, long long int&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int&, int&)’
44 | update(arr[p], x, lazy[p], intv[p].first, intv[p].second);
| ^~~~~~
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,