jumps.cpp: In function 'void init(int, std::vector<int>)':
jumps.cpp:72:38: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
72 | canR[i][0] = max({id[i], id[pr[i]]});
| ^
In file included from /usr/include/c++/10/vector:60,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
jumps.cpp:72:38: note: candidate expects 2 arguments, 1 provided
72 | canR[i][0] = max({id[i], id[pr[i]]});
| ^
In file included from /usr/include/c++/10/vector:60,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
jumps.cpp:72:38: note: candidate expects 3 arguments, 1 provided
72 | canR[i][0] = max({id[i], id[pr[i]]});
| ^
jumps.cpp:77:43: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
77 | canR[i][j] = max({id[cur], id[pr[cur]]});
| ^
In file included from /usr/include/c++/10/vector:60,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
254 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
jumps.cpp:77:43: note: candidate expects 2 arguments, 1 provided
77 | canR[i][j] = max({id[cur], id[pr[cur]]});
| ^
In file included from /usr/include/c++/10/vector:60,
from jumps.h:1,
from jumps.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
jumps.cpp:77:43: note: candidate expects 3 arguments, 1 provided
77 | canR[i][j] = max({id[cur], id[pr[cur]]});
| ^