access the values of 2d vector c++ inside a function code example
Example: initialzing a 2d vector in cpp
// Create a vector containing n row and m columns
vector<vector<int> > vec( n , vector<int> (m, 0));
// Create a vector containing n row and m columns
vector<vector<int> > vec( n , vector<int> (m, 0));