Borderou de evaluare (job #2510671)

Utilizator cezarinfoTulceanu Cezar cezarinfo Data 17 decembrie 2019 09:22:14
Problema Volum Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void marg()': main.cpp:50:34: error: no matching function for call to 'std::priority_queue<str>::push(int&, int, int&)' pq.push(v.x,v.y+1,p[v.x][v.y+1]); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(const value_type& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate expects 1 argument, 3 provided /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(value_type&& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate expects 1 argument, 3 provided main.cpp:55:34: error: no matching function for call to 'std::priority_queue<str>::push(int, int&, int&)' pq.push(v.x+1,v.y,p[v.x+1][v.y]); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(const value_type& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate expects 1 argument, 3 provided /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(value_type&& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate expects 1 argument, 3 provided main.cpp:60:34: error: no matching function for call to 'std::priority_queue<str>::push(int&, int, int&)' pq.push(v.x,v.y-1,p[v.x][v.y-1]); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(const value_type& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate expects 1 argument, 3 provided /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] push(value_type&& __x) ^~~~ /usr/include/c++/6/bits/stl_queue.h:566:7: note: candidate expects 1 argument, 3 provided main.cpp:65:34: error: no matching function for call to 'std::priority_queue<str>::push(int, int&, int&)' pq.push(v.x-1,v.y,p[v.x-1][v.y]); ^ In file included from /usr/include/c++/6/queue:64:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/6/bits/stl_queue.h:558:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = str; _Sequence = std::vector<str, std::allocator<str> >; _Compare = std::less<str>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = str] Non zero exit status: 1

Ceva nu functioneaza?