Borderou de evaluare (job #2714759)

Utilizator marius004scarlat marius marius004 Data 2 martie 2021 14:39:41
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:48:43: error: 'make_tuple' was not declared in this scope edges.push_back(make_tuple(x, y, c)); ^ main.cpp: In lambda function: main.cpp:52:24: error: no matching function for call to 'get(const std::tuple<int, int, int>&)' return get<2>(a) < get<2>(b); ^ In file included from /usr/include/c++/6/algorithm:60:0, from main.cpp:3: /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: main.cpp:52:24: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers return get<2>(a) < get<2>(b); ^ In file included from /usr/include/c++/6/algorithm:60:0, from main.cpp:3: /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: main.cpp:52:24: note: types 'std::pair<_Tp1, _Tp2>' and 'const std::tuple<int, int, int>' have incompatible cv-qualifiers return get<2>(a) < get<2>(b); ^ In file included from /usr/include/c++/6/algorithm:60:0, from main.cpp:3: /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: main.cpp:52:24: note: 'const std::tuple<int, int, int>' is not derived from 'const std::pair<_Tp1, _Tp2>' return get<2>(a) < get<2>(b); ^ In file included from /usr/include/c++/6/algorithm:60:0, from main.cpp:3: /usr/include/c++/6/utility:221:5: note: candidate: template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_T1, _T2>&) get(pair<_Tp, _Up>& __p) noexcept ^~~ /usr/include/c++/6/utility:221:5: note: template argument deduction/substitution failed: /usr/include/c++/6/utility:226:5: note: candidate: template<class _Tp, class _Up> constexpr const _Tp& std::get(const std::pair<_T1, _T2>&) get(const pair<_Tp, _Up>& __p) noexcept ^~~ /usr/include/c++/6/utility:226:5: note: template argument deduction/substitution failed: /usr/include/c++/6/utility:231:5: note: candidate: template<class _Tp, class _Up> constexpr _Tp&& std::get(std::pair<_T1, _T2>&&) get(pair<_Tp, _Up>&& __p) noexcept ^~~ /usr/include/c++/6/utility:231:5: note: template argument deduction/substitution failed: /usr/include/c++/6/utility:236:5: note: candidate: template<class _Tp, class _Up> constexpr _Tp& std::get(std::pair<_Up, _Tp>&) Non zero exit status: 1

Ceva nu functioneaza?