Borderou de evaluare (job #2684201)

Utilizator PletoPletosu Cosmin-Andrei Pleto Data 13 decembrie 2020 10:21:49
Problema Reteta 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:24:28: error: no matching function for call to 'std::vector<std::vector<double> >::push_back(std::remove_reference<std::vector<int>&>::type)' V.push_back(move(A)); ^ In file included from /usr/include/c++/6/vector:64:0, from /usr/include/c++/6/queue:61, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86, from main.cpp:1: /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<double>; _Alloc = std::allocator<std::vector<double> >; std::vector<_Tp, _Alloc>::value_type = std::vector<double>] 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::remove_reference<std::vector<int>&>::type {aka std::vector<int>}' to 'const value_type& {aka const std::vector<double>&}' /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<double>; _Alloc = std::allocator<std::vector<double> >; std::vector<_Tp, _Alloc>::value_type = std::vector<double>] push_back(value_type&& __x) ^~~~~~~~~ /usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from 'std::remove_reference<std::vector<int>&>::type {aka std::vector<int>}' to 'std::vector<std::vector<double> >::value_type&& {aka std::vector<double>&&}' main.cpp:39:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 1; j < V[pos].size(); ++j) { ~~^~~~~~~~~~~~~~~ main.cpp:47:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (bought.size() == n) { ~~~~~~~~~~~~~~^~~~ Non zero exit status: 1

Ceva nu functioneaza?