Borderou de evaluare (job #988833)

Utilizator vicciuvic ciu vicciu Data 23 august 2013 22:53:03
Problema Sortare topologica Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:21:8: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘int’) nex=0; ^ user.cpp:21:8: note: candidates are: In file included from /usr/local/include/c++/4.8.0/vector:69:0, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/vector.tcc:160:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>] vector<_Tp, _Alloc>:: ^ /usr/local/include/c++/4.8.0/bits/vector.tcc:160:5: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<int>&’ 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:439:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>] operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:439:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<int>&&’ /usr/local/include/c++/4.8.0/bits/stl_vector.h:461:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>] operator=(initializer_list<value_type> __l) ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from ‘int’ to ‘std::initializer_list<int>’ user.cpp:42:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (l=0; l<c[i].size(); l++) ^ user.cpp:57:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (l=0; l<c[i].size(); l++) ^ user.cpp:60:47: error: no match for ‘operator=’ (operand types are ‘std::vector<int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’) if (d[c[i][l]]==0) nex=c[i][l]; ^ user.cpp:60:47: note: candidates are: In file included from /usr/local/include/c++/4.8.0/vector:69:0, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/vector.tcc:160:5: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>] vector<_Tp, _Alloc>:: ^ /usr/local/include/c++/4.8.0/bits/vector.tcc:160:5: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ to ‘const std::vector<int>&’ 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:439:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>] operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:439:7: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ to ‘std::vector<int>&&’ /usr/local/include/c++/4.8.0/bits/stl_vector.h:461:7: note: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>] operator=(initializer_list<value_type> __l) ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:461:7: note: no known conversion for argument 1 from ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ to ‘std::initializer_list<int>’

Ceva nu functioneaza?