Borderou de evaluare (job #1317863)

Utilizator eneskristofjd hgd eneskristo Data 15 ianuarie 2015 12:07:24
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:8: error: found ‘:’ in nested-name-specifier, expected ‘::’ string :iterator bi; ^ user.cpp: In function ‘int main()’: user.cpp:54:36: error: no matching function for call to ‘std::vector<Values>::push_back(int&)’ v[matrix[i][j]].push_back(u); ^ user.cpp:54:36: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64, 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 = Values; _Alloc = std::allocator<Values>; std::vector<_Tp, _Alloc>::value_type = Values] 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 ‘int’ to ‘const value_type& {aka const Values&}’ /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 = Values; _Alloc = std::allocator<Values>; std::vector<_Tp, _Alloc>::value_type = Values] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<Values>::value_type&& {aka Values&&}’ user.cpp:64:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0;j<v[i].size();j++) ^ user.cpp:42:9: warning: unused variable ‘counter’ [-Wunused-variable] int counter=0; ^

Ceva nu functioneaza?