vector<vector<int>> vec( n , vector<int> (m, 0)); where: n is number of ROWS, m is number of COLUMNS So result will be ( Let n = 2, m = 3 ) [[ 0, 0, 0], [ 0, 0, 0]] ( 2 x 3 )