Borderou de evaluare (job #971371)
Utilizator | Data | 9 iulie 2013 00:07:47 | |
---|---|---|---|
Problema | Scoici | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Add(int, int)’:
user.cpp:43:43: error: no matching function for call to ‘std::vector<std::pair<std::vector<int>, int> >::push_back(std::pair<int, int>)’
HASH[key].push_back(make_pair(C,pos));
^
user.cpp:43:43: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/vector:64:0,
from user.cpp:2:
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<std::vector<int>, int>; _Alloc = std::allocator<std::pair<std::vector<int>, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::vector<int>, int>]
push_back(const value_type& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::pair<int, int>’ to ‘const value_type& {aka const std::pair<std::vector<int>, int>&}’
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<std::vector<int>, int>; _Alloc = std::allocator<std::pair<std::vector<int>, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<std::vector<int>, int>]
push_back(value_type&& __x)
^
/usr/local/include/c++/4.8.0/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<int, int>’ to ‘std::vector<std::pair<std::vector<int>, int> >::value_type&& {aka std::pair<std::vector<int>, int>&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !