Problem sterilizing
User JoshJuice
Submission Time 2025-08-04 21:31:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sterilizing.cpp: In member function ‘void node::push()’:
sterilizing.cpp:25:12: error: ‘struct node’ has no member named ‘apply’
25 | l -> apply(lazy);
| ^~~~~
sterilizing.cpp:26:12: error: ‘struct node’ has no member named ‘apply’
26 | r -> apply(lazy);
| ^~~~~
sterilizing.cpp: In member function ‘void node::divide(int, int)’:
sterilizing.cpp:34:14: error: no matching function for call to ‘apply(int)’
34 | apply(1);
| ^
In file included from /usr/include/c++/9/functional:54,
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 sterilizing.cpp:1:
/usr/include/c++/9/tuple:1690:5: note: candidate: ‘template<class _Fn, class _Tuple> constexpr decltype(auto) std::apply(_Fn&&, _Tuple&