This is what I have:
vector<int> A {5,4,3,1};
vector<int> B {3,1};
I want make 2d vector C to 5*5 2d vector filled in 0.0 so I tried this:
vector<vector<double>> C((A.size() + 1), vector<double>((B.begin() + 2),0.0));
But this is an error I'm getting.
There is no instance of a constructor with a matching C++ argument list.
(std::_Vector_iterator<std::_Vector_val<std::conditional_t<true, std::_Simple_types<int>, std::_Vec_iter_types<int, size_t, ptrdiff_t, int *, const int *, int &, const int &>>>>, double)
I can't understand the content of the error. May I ask what is wrong and how to fix it?