Borderou de evaluare (job #2942448)
Utilizator | Data | 19 noiembrie 2022 17:56:00 | |
---|---|---|---|
Problema | Apm2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In lambda function:
main.cpp:46:28: error: no matching function for call to 'get<2>(const std::tuple<int, int, int>&)'
46 | return get < 2 > (a) < get < 2 > (b);
| ^
In file included from /usr/include/c++/10/algorithm:60,
from main.cpp:4:
/usr/include/c++/10/utility:223: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>&)'
223 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/10/utility:223:5: note: template argument deduction/substitution failed:
main.cpp:46:28: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers
46 | return get < 2 > (a) < get < 2 > (b);
| ^
In file included from /usr/include/c++/10/algorithm:60,
from main.cpp:4:
/usr/include/c++/10/utility:228: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>&&)'
228 | get(std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/10/utility:228:5: note: template argument deduction/substitution failed:
main.cpp:46:28: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers
46 | return get < 2 > (a) < get < 2 > (b);
| ^
In file included from /usr/include/c++/10/algorithm:60,
from main.cpp:4:
/usr/include/c++/10/utility:233: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>&)'
233 | get(const std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/10/utility:233:5: note: template argument deduction/substitution failed:
main.cpp:46:28: note: 'const std::tuple<int, int, int>' is not derived from 'const std::pair<_Tp1, _Tp2>'
46 | return get < 2 > (a) < get < 2 > (b);
| ^
In file included from /usr/include/c++/10/algorithm:60,
from main.cpp:4:
/usr/include/c++/10/utility:238: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>&&)'
238 | get(const std::pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/10/utility:238:5: note: template argument deduction/substitution failed:
main.cpp:46:28: note: 'const std::tuple<int, int, int>' is not derived from 'const std::pair<_Tp1, _Tp2>'
46 | return get < 2 > (a) < get < 2 > (b);
| ^
In file included from /usr/include/c++/10/algorithm:60,
from main.cpp:4:
/usr/include/c++/10/utility:247:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&)'
247 | get(pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:247:5: note: template argument deduction/substitution failed:
/usr/include/c++/10/utility:252:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&)'
252 | get(const pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/10/utility:252:5: note: template argument deduction/substitution failed:
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !