how to make a define 2d vector code example Example: initializing 2d vector vector<vector<int> > vec( n , vector<int> (m, 0));