Borderou de evaluare (job #1990453)
Utilizator | Data | 11 iunie 2017 21:56:10 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:33:26: error: no matching function for call to ‘std::list<std::pair<int, int> >::push_back(Pair&)’
myQ.push_back(aux);
^
user.cpp:33:26: note: candidates are:
In file included from /usr/include/c++/4.8/list:63:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_list.h:1015:7: note: void std::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_list.h:1015:7: note: no known conversion for argument 1 from ‘Pair’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_list.h:1020:7: note: void std::list<_Tp, _Alloc>::push_back(std::list<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_list.h:1020:7: note: no known conversion for argument 1 from ‘Pair’ to ‘std::list<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !