Borderou de evaluare (job #3233337)

Utilizator MirceaDonciuLicentaLicenta Mircea Donciu MirceaDonciuLicenta Data 2 iunie 2024 23:44:03
Problema Regiuni Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:50:20: error: 'make_tuple' was not declared in this scope 50 | lines[i] = make_tuple(a, b, c); | ^~~~~~~~~~ main.cpp:4:1: note: 'std::make_tuple' is defined in header '<tuple>'; did you forget to '#include <tuple>'? 3 | #include <vector> +++ |+#include <tuple> 4 | main.cpp:67:17: error: 'tie' was not declared in this scope 67 | tie(a, b, c) = lines[k]; | ^~~ main.cpp:67:17: note: 'std::tie' is defined in header '<tuple>'; did you forget to '#include <tuple>'? In file included from /usr/include/c++/12.2.1/vector:64, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; reference = std::tuple<int, int, int>&; size_type = long unsigned int]': main.cpp:50:16: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:1124:41: error: invalid use of incomplete type 'class std::tuple<int, int, int>' 1124 | return *(this->_M_impl._M_start + __n); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64, from /usr/include/c++/12.2.1/string:50, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_pair.h:90:11: note: declaration of 'class std::tuple<int, int, int>' 90 | class tuple; | ^~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr 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++/12.2.1/bits/stl_vector.h:552:47: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]' main.cpp:46:41: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:367:49: error: invalid use of incomplete type 'class std::tuple<int, int, int>' 367 | _M_impl._M_end_of_storage - _M_impl._M_start); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_pair.h:90:11: note: declaration of 'class std::tuple<int, int, int>' 90 | class tuple; | ^~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'static constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_S_max_size(const _Tp_alloc_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; _Tp_alloc_type = std::vector<std::tuple<int, int, int> >::_Tp_alloc_type]': /usr/include/c++/12.2.1/bits/stl_vector.h:1904:23: required from 'static constexpr std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::_S_check_init_len(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]' /usr/include/c++/12.2.1/bits/stl_vector.h:552:32: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]' main.cpp:46:41: required from here /usr/include/c++/12.2.1/bits/stl_vector.h:1917:61: error: invalid application of 'sizeof' to incomplete type 'std::tuple<int, int, int>' 1917 | = __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp); | ^~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_vector.h: In instantiation of 'constexpr void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::size_t = long unsigned int]': /usr/include/c++/12.2.1/bits/stl_vector.h:332:9: required from 'constexpr std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::size_t = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]' /usr/include/c++/12.2.1/bits/stl_vector.h:552:47: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; size_type = long unsigned int; allocator_type = std::allocator<std::tuple<int, int, int> >]' main.cpp:46:41: required from here Non zero exit status: 1

Ceva nu functioneaza?