Borderou de evaluare (job #3182092)

Utilizator David_S.David Stoica David_S. Data 8 decembrie 2023 17:34:46
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/12.2.1/bits/char_traits.h:46, from /usr/include/c++/12.2.1/ios:40, 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_construct.h: In instantiation of 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {}]': /usr/include/c++/12.2.1/bits/stl_uninitialized.h:638:18: required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int; bool _TrivialValueType = false]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:701:20: required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:766:44: required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Edge*; _Size = long unsigned int; _Tp = Edge]' /usr/include/c++/12.2.1/bits/stl_vector.h:1713:36: required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_vector.h:553:9: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int; allocator_type = std::allocator<Edge>]' main.cpp:77:25: required from here /usr/include/c++/12.2.1/bits/stl_construct.h:115:28: error: no matching function for call to 'construct_at(Edge*&)' 115 | std::construct_at(__p, std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_construct.h:94:5: note: candidate: 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...)' 94 | construct_at(_Tp* __location, _Args&&... __args) | ^~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_construct.h:94:5: note: template argument deduction/substitution failed: /usr/include/c++/12.2.1/bits/stl_construct.h: In substitution of 'template<class _Tp, class ... _Args> constexpr decltype (::new(void*(0)) _Tp) std::construct_at(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {}]': /usr/include/c++/12.2.1/bits/stl_construct.h:115:21: required from 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {}]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:638:18: required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int; bool _TrivialValueType = false]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:701:20: required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:766:44: required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Edge*; _Size = long unsigned int; _Tp = Edge]' /usr/include/c++/12.2.1/bits/stl_vector.h:1713:36: required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_vector.h:553:9: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int; allocator_type = std::allocator<Edge>]' main.cpp:77:25: required from here /usr/include/c++/12.2.1/bits/stl_construct.h:96:17: error: no matching function for call to 'Edge::Edge()' 96 | -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:10:5: note: candidate: 'Edge::Edge(int, int, int)' 10 | Edge(int _from, int _to, int _cost) : from(_from), to(_to), cost(_cost) {} | ^~~~ main.cpp:10:5: note: candidate expects 3 arguments, 0 provided main.cpp:7:8: note: candidate: 'constexpr Edge::Edge(const Edge&)' 7 | struct Edge { | ^~~~ main.cpp:7:8: note: candidate expects 1 argument, 0 provided main.cpp:7:8: note: candidate: 'constexpr Edge::Edge(Edge&&)' main.cpp:7:8: note: candidate expects 1 argument, 0 provided /usr/include/c++/12.2.1/bits/stl_construct.h: In instantiation of 'constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = Edge; _Args = {}]': /usr/include/c++/12.2.1/bits/stl_uninitialized.h:638:18: required from 'static constexpr _ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int; bool _TrivialValueType = false]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:701:20: required from 'constexpr _ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator = Edge*; _Size = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_uninitialized.h:766:44: required from 'constexpr _ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, allocator<_Tp>&) [with _ForwardIterator = Edge*; _Size = long unsigned int; _Tp = Edge]' /usr/include/c++/12.2.1/bits/stl_vector.h:1713:36: required from 'constexpr void std::vector<_Tp, _Alloc>::_M_default_initialize(size_type) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int]' /usr/include/c++/12.2.1/bits/stl_vector.h:553:9: required from 'constexpr std::vector<_Tp, _Alloc>::vector(size_type, const allocator_type&) [with _Tp = Edge; _Alloc = std::allocator<Edge>; size_type = long unsigned int; allocator_type = std::allocator<Edge>]' main.cpp:77:25: required from here /usr/include/c++/12.2.1/bits/stl_construct.h:119:7: error: no matching function for call to 'Edge::Edge()' 119 | ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?