Problem rmaxq
User 6root2i
Submission Time 2026-02-28 15:04:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In instantiation of ‘void SegmentTree<T>::update(ll, ll, ll, ll, ll, ll) [with T = long long int; ll = long long int]’:
rmaxq.cpp:88:37: required from ‘void SegmentTree<T>::update(ll, ll, ll) [with T = long long int; ll = long long int]’
rmaxq.cpp:109:22: required from here
rmaxq.cpp:67:15: error: no matching function for call to ‘SegmentTree<long long int>::lazy_update(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&, ll&)’
67 | lazy[p] = lazy_update(lazy[p],val); // update this
rmaxq.cpp:24:6: note: candidate: ‘ll SegmentTree<T>::lazy_update(ll, ll, ll) [with T = long long int; ll = long long int]’
24 | ll lazy_update(ll a, ll b, ll range){
| ^~~~~~~~~~~
rmaxq.cpp:24:6: note: candidate expects 3 arguments, 2 provided