Borderou de evaluare (job #2956891)

Utilizator radubuzas08Buzas Radu radubuzas08 Data 20 decembrie 2022 23:08:19
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/10/vector:67, from main.cpp:2: /usr/include/c++/10/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]': /usr/include/c++/10/bits/stl_vector.h:487:7: required from here /usr/include/c++/10/bits/stl_vector.h:336:35: error: invalid use of incomplete type 'class std::tuple<int, int, int>' 336 | _M_impl._M_end_of_storage - _M_impl._M_start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/10/bits/move.h:57, from /usr/include/c++/10/bits/nested_exception.h:40, from /usr/include/c++/10/exception:148, from /usr/include/c++/10/ios:39, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/type_traits:2631:11: note: declaration of 'class std::tuple<int, int, int>' 2631 | class tuple; | ^~~~~ /usr/include/c++/10/type_traits: In instantiation of 'struct std::is_nothrow_constructible<std::tuple<int, int, int>, const int&, const int&, const int&>': /usr/include/c++/10/bits/alloc_traits.h:509:57: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::tuple<int, int, int>; _Args = {const int&, const int&, const int&}; _Tp = std::tuple<int, int, int>; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<std::tuple<int, int, int> >]' /usr/include/c++/10/bits/vector.tcc:115:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int&, const int&, const int&}; _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]' main.cpp:68:38: required from here /usr/include/c++/10/type_traits:1011:52: error: static assertion failed: template argument must be a complete class or an unbounded array 1011 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/10/vector:72, from main.cpp:2: /usr/include/c++/10/bits/vector.tcc: In instantiation of 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int&, const int&, const int&}; _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]': main.cpp:68:38: required from here /usr/include/c++/10/bits/vector.tcc:117:22: error: cannot increment a pointer to incomplete type 'std::tuple<int, int, int>' 117 | ++this->_M_impl._M_finish; | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/10/bits/move.h:57, from /usr/include/c++/10/bits/nested_exception.h:40, from /usr/include/c++/10/exception:148, from /usr/include/c++/10/ios:39, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/type_traits: In instantiation of 'struct std::is_destructible<std::tuple<int, int, int> >': /usr/include/c++/10/bits/stl_construct.h:177:51: required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::tuple<int, int, int>*]' /usr/include/c++/10/bits/alloc_traits.h:738:15: required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = std::tuple<int, int, int>*; _Tp = std::tuple<int, int, int>]' /usr/include/c++/10/bits/stl_vector.h:680:15: required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]' main.cpp:58:36: required from here /usr/include/c++/10/type_traits:844:52: error: static assertion failed: template argument must be a complete class or an unbounded array 844 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/10/bits/alloc_traits.h:33, from /usr/include/c++/10/ext/alloc_traits.h:34, from /usr/include/c++/10/bits/basic_string.h:40, from /usr/include/c++/10/string:55, Non zero exit status: 1

Ceva nu functioneaza?