Borderou de evaluare (job #3278415)

Utilizator Tudor28Ceclan Tudor Tudor28 Data 19 februarie 2025 18:08:03
Problema Divk Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/c++/12.2.1/queue:64, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_queue.h: In instantiation of 'class std::priority_queue<int, std::vector<int>, std::greater<int>()>': main.cpp:17:50: required from here /usr/include/c++/12.2.1/bits/stl_queue.h:540:18: error: data member 'std::priority_queue<int, std::vector<int>, std::greater<int>()>::comp' invalidly declared function type 540 | _Compare comp; | ^~~~ main.cpp:17:50: error: no matching function for call to 'std::priority_queue<int, std::vector<int>, std::greater<int>()>::priority_queue()' 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:693:9: note: candidate: 'template<class _InputIterator, class _Alloc, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&, const _Alloc&) [with _Alloc = _InputIterator; _Requires = _Alloc; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 693 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:693:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 5 arguments, 0 provided 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:681:9: note: candidate: 'template<class _InputIterator, class _Alloc, class, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Sequence&, const _Alloc&) [with _Alloc = _InputIterator; <template-parameter-2-3> = _Alloc; _Requires = <template-parameter-1-3>; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 681 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:681:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 5 arguments, 0 provided 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:673:9: note: candidate: 'template<class _InputIterator, class _Alloc, class, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Alloc&) [with _Alloc = _InputIterator; <template-parameter-2-3> = _Alloc; _Requires = <template-parameter-1-3>; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 673 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:673:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 4 arguments, 0 provided 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:665:9: note: candidate: 'template<class _InputIterator, class _Alloc, class, class _Requires> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Alloc&) [with _Alloc = _InputIterator; <template-parameter-2-3> = _Alloc; _Requires = <template-parameter-1-3>; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 665 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:665:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 3 arguments, 0 provided 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:651:9: note: candidate: 'template<class _InputIterator, class> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, _Sequence&&) [with <template-parameter-2-2> = _InputIterator; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 651 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:651:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 4 arguments, 0 provided 17 | priority_queue<int, vector<int>, greater<int>()> pq; | ^~ /usr/include/c++/12.2.1/bits/stl_queue.h:640:9: note: candidate: 'template<class _InputIterator, class> std::priority_queue<_Tp, _Sequence, _Compare>::priority_queue(_InputIterator, _InputIterator, const _Compare&, const _Sequence&) [with <template-parameter-2-2> = _InputIterator; _Tp = int; _Sequence = std::vector<int>; _Compare = std::greater<int>()]' 640 | priority_queue(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:640:9: note: template argument deduction/substitution failed: main.cpp:17:50: note: candidate expects 4 arguments, 0 provided Non zero exit status: 1

Ceva nu functioneaza?