Borderou de evaluare (job #2650531)

Utilizator BGondaGonda George Luis Bogdan BGonda Data 19 septembrie 2020 11:46:02
Problema Catun Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0, from /usr/include/c++/6/bits/allocator.h:46, from /usr/include/c++/6/string:41, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Pair; _Args = {const int&, int}; _Tp = Pair]': /usr/include/c++/6/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Pair; _Args = {const int&, int}; _Tp = Pair; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Pair>]' /usr/include/c++/6/bits/vector.tcc:96:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const int&, int}; _Tp = Pair; _Alloc = std::allocator<Pair>]' /usr/include/c++/6/bits/stl_queue.h:576:4: required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {const int&, int}; _Tp = Pair; _Sequence = std::vector<Pair, std::allocator<Pair> >; _Compare = std::less<Pair>]' main.cpp:62:18: required from here /usr/include/c++/6/ext/new_allocator.h:120:4: error: new initializer expression list treated as compound expression [-fpermissive] { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/ext/new_allocator.h:120:4: error: no matching function for call to 'Pair::Pair(int)' main.cpp:13:8: note: candidate: Pair::Pair() struct Pair { ^~~~ main.cpp:13:8: note: candidate expects 0 arguments, 1 provided main.cpp:13:8: note: candidate: constexpr Pair::Pair(const Pair&) main.cpp:13:8: note: no known conversion for argument 1 from 'int' to 'const Pair&' main.cpp:13:8: note: candidate: constexpr Pair::Pair(Pair&&) main.cpp:13:8: note: no known conversion for argument 1 from 'int' to 'Pair&&' In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0, from /usr/include/c++/6/bits/allocator.h:46, from /usr/include/c++/6/string:41, from /usr/include/c++/6/bits/locale_classes.h:40, from /usr/include/c++/6/bits/ios_base.h:41, from /usr/include/c++/6/ios:42, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Pair; _Args = {int&, int&}; _Tp = Pair]': /usr/include/c++/6/bits/alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Pair; _Args = {int&, int&}; _Tp = Pair; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<Pair>]' /usr/include/c++/6/bits/vector.tcc:96:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, int&}; _Tp = Pair; _Alloc = std::allocator<Pair>]' /usr/include/c++/6/bits/stl_queue.h:576:4: required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {int&, int&}; _Tp = Pair; _Sequence = std::vector<Pair, std::allocator<Pair> >; _Compare = std::less<Pair>]' main.cpp:84:22: required from here /usr/include/c++/6/ext/new_allocator.h:120:4: error: new initializer expression list treated as compound expression [-fpermissive] { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/6/ext/new_allocator.h:120:4: error: no matching function for call to 'Pair::Pair(int&)' main.cpp:13:8: note: candidate: Pair::Pair() struct Pair { ^~~~ main.cpp:13:8: note: candidate expects 0 arguments, 1 provided main.cpp:13:8: note: candidate: constexpr Pair::Pair(const Pair&) main.cpp:13:8: note: no known conversion for argument 1 from 'int' to 'const Pair&' Non zero exit status: 1

Ceva nu functioneaza?