Borderou de evaluare (job #3227795)
Utilizator | Data | 2 mai 2024 18:27:01 | |
---|---|---|---|
Problema | Arbori binari de cautare echilibrati | Status | done |
Runda | arhiva-test | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void ScapegoatTree<T>::rebuild_subtree(Node&)':
main.cpp:867:17: error: 'make_tuple' is not a member of 'std'
867 | s.push(std::make_tuple(0, sorted_nodes.size() - 1, root_parent.get_node_index(), is_root_left_sibling));
| ^~~~~~~~~~
main.cpp:11:1: note: 'std::make_tuple' is defined in header '<tuple>'; did you forget to '#include <tuple>'?
10 | #include <cmath>
+++ |+#include <tuple>
11 |
main.cpp:873:40: error: no matching function for call to 'get<0>(std::tuple<long unsigned int, long unsigned int, long unsigned int, bool>&)'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/12.2.1/utility:69,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/stl_pair.h:855: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>&)'
855 | get(pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:855:5: note: template argument deduction/substitution failed:
main.cpp:873:40: note: 'std::tuple<long unsigned int, long unsigned int, long unsigned int, bool>' is not derived from 'std::pair<_Tp1, _Tp2>'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:860: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>&&)'
860 | get(pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:860:5: note: template argument deduction/substitution failed:
main.cpp:873:40: note: 'std::tuple<long unsigned int, long unsigned int, long unsigned int, bool>' is not derived from 'std::pair<_Tp1, _Tp2>'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:865: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>&)'
865 | get(const pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:865:5: note: template argument deduction/substitution failed:
main.cpp:873:40: note: 'std::tuple<long unsigned int, long unsigned int, long unsigned int, bool>' is not derived from 'const std::pair<_Tp1, _Tp2>'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:870: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>&&)'
870 | get(const pair<_Tp1, _Tp2>&& __in) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:870:5: note: template argument deduction/substitution failed:
main.cpp:873:40: note: 'std::tuple<long unsigned int, long unsigned int, long unsigned int, bool>' is not derived from 'const std::pair<_Tp1, _Tp2>'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
/usr/include/c++/12.2.1/bits/stl_pair.h:879:5: note: candidate: 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_T1, _T2>&)'
879 | get(pair<_Tp, _Up>& __p) noexcept
| ^~~
/usr/include/c++/12.2.1/bits/stl_pair.h:879:5: note: template argument deduction/substitution failed:
main.cpp:873:40: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_T1, _T2>&)'
873 | size_t left_index = std::get<0>(top);
| ~~~~~~~~~~~^~~~~
main.cpp:873:40: note: expected a type, got '0'
/usr/include/c++/12.2.1/bits/stl_pair.h:884:5: note: candidate: 'template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_T1, _T2>&)'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !