Problem fenwicktree
User Kiameimon
Submission Time 2025-03-09 20:09:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fenwicktree.cpp: In instantiation of ‘LazyPropSegtree<T, U, Op, UpdVal, UpdLazy>::LazyPropSegtree(auto:3, auto:4, T, U) [with auto:1 = __gnu_cxx::__normal_iterator<std::pair<long long int, int>*, std::vector<std::pair<long long int, int> > >; auto:2 = __gnu_cxx::__normal_iterator<std::pair<long long int, int>*, std::vector<std::pair<long long int, int> > >; T = std::pair<long long int, int>; U = int; Op = main()::<lambda(const T&, const T&)>; UpdVal = main()::<lambda(T&, const U&)>; UpdLazy = main()::<lambda(U&, const U&)>]’:
fenwicktree.cpp:208:117: required from here
fenwicktree.cpp:64:20: error: use of deleted function ‘main()::<lambda(const T&, const T&)>::<lambda>()’
64 | tree_[i] = Op()(tree_[2 * i], tree_[2 * i + 1]);
| ^~~~
fenwicktree.cpp:192:16: note: a lambda closure type has a deleted default constructor
192 | auto op = [](c