R
Raj
I have a 2-D vector declared as vector<vector <uint> > solution(m,
vector<uint>n). I have initialized this vector with values. Now I want
to insert an element in the (i,j) position. I am trying to do
solution.insert(j, 1, value), but this gives me the error 'no
matching function for call to 'std::vector<unsigned int,
std::allocator<unsigned int> >::insert(uint&, int, int)'
How do I get this done?
Thanks,
Raj
vector<uint>n). I have initialized this vector with values. Now I want
to insert an element in the (i,j) position. I am trying to do
solution.insert(j, 1, value), but this gives me the error 'no
matching function for call to 'std::vector<unsigned int,
std::allocator<unsigned int> >::insert(uint&, int, int)'
How do I get this done?
Thanks,
Raj