Borderou de evaluare (job #2418163)

Utilizator dhfodorDan Fodor dhfodor Data 3 mai 2019 21:48:31
Problema Permutari Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:43:40: error: no matching function for call to 'std::vector<std::vector<long long int> >::push_back(std::vector<int>)' values.push_back(vector<int>(n)); ^ In file included from /usr/include/c++/6/vector:64:0, from main.cpp:3: /usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>] push_back(const value_type& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'const value_type& {aka const std::vector<long long int>&}' /usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::vector<long long int>; _Alloc = std::allocator<std::vector<long long int> >; std::vector<_Tp, _Alloc>::value_type = std::vector<long long int>] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<std::vector<long long int> >::value_type&& {aka std::vector<long long int>&&}' Non zero exit status: 1

Ceva nu functioneaza?