Problem rmaxq
User maximushartanto
Submission Time 2025-12-09 13:44:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmaxq.cpp: In instantiation of ‘void segtree::build(int, int, int, std::vector<_Tp>) [with T = int]’:
rmaxq.cpp:62:3: required from ‘segtree::segtree(std::vector<_Tp>) [with T = int]’
rmaxq.cpp:150:16: required from here
rmaxq.cpp:79:4: error: no matching function for call to ‘segtree::node::apply(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
79 | t[ti].apply(v[tl]);
| ^
rmaxq.cpp:32:8: note: candidate: ‘void segtree::node::apply(int, int, int)’
32 | void apply(int l, int r, int x){
| ^~~~~
rmaxq.cpp:32:8: note: candidate expects 3 arguments, 1 provided