Borderou de evaluare (job #2172349)
Utilizator | Data | 15 martie 2018 16:10:09 | |
---|---|---|---|
Problema | Miting | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void lee2()’:
user.cpp:63:26: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<unresolved overloaded function type>)’
q3.push(make_pair)
^
In file included from /usr/include/c++/5/queue:64:0,
from user.cpp:3:
/usr/include/c++/5/bits/stl_queue.h:215:7: note: candidate: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(const value_type& __x)
^
/usr/include/c++/5/bits/stl_queue.h:215:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/5/bits/stl_queue.h:220:7: note: candidate: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(value_type&& __x)
^
/usr/include/c++/5/bits/stl_queue.h:220:7: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp: In function ‘void b()’:
user.cpp:69:10: warning: unused variable ‘ok’ [-Wunused-variable]
bool ok=true;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !