Borderou de evaluare (job #2981482)

Utilizator angelaAngela Visuian angela Data 18 februarie 2023 06:23:52
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/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33, from /usr/include/c++/10/bits/allocator.h:46, from /usr/include/c++/10/string:41, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Edge; _Args = {int&, int&}; _Tp = Edge]': /usr/include/c++/10/bits/alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Edge; _Args = {int&, int&}; _Tp = Edge; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Edge>]' /usr/include/c++/10/bits/vector.tcc:115:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, int&}; _Tp = Edge; _Alloc = std::allocator<Edge>]' main.cpp:89:31: required from here /usr/include/c++/10/ext/new_allocator.h:150:4: error: new initializer expression list treated as compound expression [-fpermissive] 150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/10/ext/new_allocator.h:150:4: error: no matching function for call to 'Edge::Edge(int&)' main.cpp:12:8: note: candidate: 'Edge::Edge()' 12 | struct Edge { | ^~~~ main.cpp:12:8: note: candidate expects 0 arguments, 1 provided main.cpp:12:8: note: candidate: 'constexpr Edge::Edge(const Edge&)' main.cpp:12:8: note: no known conversion for argument 1 from 'int' to 'const Edge&' main.cpp:12:8: note: candidate: 'constexpr Edge::Edge(Edge&&)' main.cpp:12:8: note: no known conversion for argument 1 from 'int' to 'Edge&&' Non zero exit status: 1

Ceva nu functioneaza?