Main.cpp: In function 'int32_t main()':
Main.cpp:22:9: error: expected ',' or ';' before 'function'
22 | function<void(int, int, int)> search = [&V, &M, &search](int a, int b, int k) {
| ^~~~~~~~
In file included from /usr/include/c++/13/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from Main.cpp:1:
/usr/include/c++/13/bits/stl_algo.h: In instantiation of 'constexpr _ForwardIterator std::search(_ForwardIterator, _ForwardIterator, const _Searcher&) [with _ForwardIterator = long long int; _Searcher = long long int]':
Main.cpp:33:15: required from here
/usr/include/c++/13/bits/stl_algo.h:4275:24: error: expression cannot be used as a function
4275 | { return __searcher(__first, __last).first; }
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~