answer.code: In function ‘int main()’:
answer.code:36:9: error: expected ‘,’ or ‘;’ before ‘auto’
36 | auto get = [&](int k) -> int {
| ^~~~
answer.code:49:20: error: no matching function for call to ‘get(int&)’
49 | if (get(m) < 0) {
| ~~~^~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from answer.code:5:
/usr/include/c++/13/bits/stl_pair.h:1035:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(pair<_Tp1, _Tp2>&)’
1035 | get(pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1035:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘std::pair<_Tp1, _Tp2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1040:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(pair<_Tp1, _Tp2>&&)’
1040 | get(pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1040:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘std::pair<_Tp1, _Tp2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1045:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const pair<_Tp1, _Tp2>&)’
1045 | get(const pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘const std::pair<_Tp1, _Tp2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1050:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(const pair<_Tp1, _Tp2>&&)’
1050 | get(const pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1050:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘const std::pair<_Tp1, _Tp2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1059:5: note: candidate: ‘template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_T1, _T2>&)’
1059 | get(pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1059:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘std::pair<_T1, _T2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1064:5: note: candidate: ‘template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_T1, _T2>&)’
1064 | get(const pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1064:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1069:5: note: candidate: ‘template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_T1, _T2>&&)’
1069 | get(pair<_Tp, _Up>&& __p) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1069:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘std::pair<_T1, _T2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1074:5: note: candidate: ‘template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_T1, _T2>&&)’
1074 | get(const pair<_Tp, _Up>&& __p) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1074:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
49 | if (get(m) < 0) {
| ~~~^~~
/usr/include/c++/13/bits/stl_pair.h:1079:5: note: candidate: ‘template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_Up, _Tp>&)’
1079 | get(pair<_Up, _Tp>& __p) noexcept
| ^~~
/usr/include/c++/13/bits/stl_pair.h:1079:5: note: template argument deduction/substitution failed:
answer.code:49:20: note: mismatched types ‘std::pair<_Up, _Tp>’ and ‘int’
49 | if (get(m) < 0) {
| ...