Borderou de evaluare (job #1140721)

Utilizator classiusCobuz Andrei classius Data 12 martie 2014 10:46:47
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:32:28: error: no matching function for call to ‘std::vector<conf>::push_back(int)’ c.push_back(-1000000000); ^ user.cpp:32:28: note: candidates are: In file included from /usr/local/include/c++/4.8.0/vector:64:0, from user.cpp:3: /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 = conf; _Alloc = std::allocator<conf>; std::vector<_Tp, _Alloc>::value_type = conf] 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 ‘int’ to ‘const value_type& {aka const conf&}’ /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 = conf; _Alloc = std::allocator<conf>; std::vector<_Tp, _Alloc>::value_type = conf] 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 ‘int’ to ‘std::vector<conf>::value_type&& {aka conf&&}’ user.cpp:46:27: error: no matching function for call to ‘std::vector<conf>::push_back(int)’ c.push_back(1000000000); ^ user.cpp:46:27: note: candidates are: In file included from /usr/local/include/c++/4.8.0/vector:64:0, from user.cpp:3: /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 = conf; _Alloc = std::allocator<conf>; std::vector<_Tp, _Alloc>::value_type = conf] 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 ‘int’ to ‘const value_type& {aka const conf&}’ /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 = conf; _Alloc = std::allocator<conf>; std::vector<_Tp, _Alloc>::value_type = conf] 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 ‘int’ to ‘std::vector<conf>::value_type&& {aka conf&&}’ user.cpp:49:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<c.size();i++){ ^ user.cpp:65:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i<c.size()){ ^

Ceva nu functioneaza?