Problem onlineexam
User simonfalke
Submission Time 2023-04-01 18:46:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

onlineexam.cpp: In lambda function:
onlineexam.cpp:21:34: error: no match for call to ‘(std::function<void(int, int)>) (int&, int&, std::function<void(int, int)>&)’
21 | search(l, mid, search);
| ^
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,
from onlineexam.cpp:2:
/usr/include/c++/9/bits/std_function.h:683:5: note: candidate: ‘_Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = void; _ArgTypes = {int, int}]’
683 | function<_Res(_ArgTypes...)>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/std_function.h:683:5: note: candidate expects 2 arguments, 3 provided
onlineexam.cpp:23:34: err