Borderou de evaluare (job #1192901)

Utilizator andrei_diaconuAndrei Diaconu andrei_diaconu Data 29 mai 2014 23:36:47
Problema Autobuze2 Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:23:40: error: no matching function for call to ‘std::vector<int>::push_back(std::vector<int>&)’ gr[nod[k]].push_back(gr[nod[1]]); ^ user.cpp:23:40: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘const value_type& {aka const int&}’ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘std::vector<int>::value_type&& {aka int&&}’ user.cpp:30:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<gr[qu[fi]].size(); i++) { ^

Ceva nu functioneaza?