/in/foo.cc: In function 'int main()':
/in/foo.cc:12:26: error: no matching function for call to 'get(int&, int&)'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:202: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(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^~~
/usr/include/c++/6/utility:202:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:207: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(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^~~
/usr/include/c++/6/utility:207:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:212: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 std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^~~
/usr/include/c++/6/utility:212:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:281:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
get(array<_Tp, _Nm>& __arr) noexcept
^~~
/usr/include/c++/6/array:281:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::array<_Tp, _Nm>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:290:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
get(array<_Tp, _Nm>&& __arr) noexcept
^~~
/usr/include/c++/6/array:290:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::array<_Tp, _Nm>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:298:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
get(const array<_Tp, _Nm>& __arr) noexcept
^~~
/usr/include/c++/6/array:298:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'const std::array<_Tp, _Nm>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1258:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(std::tuple<_Elements ...>&)
get(tuple<_Elements...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1258:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::tuple<_Elements ...>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1264:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const std::tuple<_Elements ...>&)
get(const tuple<_Elements...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1264:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'const std::tuple<_Elements ...>' and 'int'
int x = find(get(a,b));
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1270:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&)
get(tuple<_Elements...>&& __t) noexcept
^~~
/usr/include/c++/6/tuple:1270:5: note: template argument deduction/substitution failed:
/in/foo.cc:12:26: note: mismatched types 'std::tuple<_Elements ...>' and 'int'
int x = find(get(a,b));
^
/in/foo.cc:13:29: error: no matching function for call to 'get(int&, int&)'
int y = find(get(c,d));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:202: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(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^~~
/usr/include/c++/6/utility:202:5: note: template argument deduction/substitution failed:
/in/foo.cc:13:29: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
int y = find(get(c,d));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:207: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(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^~~
/usr/include/c++/6/utility:207:5: note: template argument deduction/substitution failed:
/in/foo.cc:13:29: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
int y = find(get(c,d));
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:212: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 std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^~~
/usr/include/c++/6/utility:212:5: note: tem