You are viewing a single comment's thread. Return to all comments →
vector<vector<long>> l; for(int i = 0; i < n; i++) l.push_back( *(new vector<long>()) );
You can also do this to initiate the 2D vector
Seems like cookies are disabled on this browser, please enable them to open this website
Dynamic Array
You are viewing a single comment's thread. Return to all comments →
You can also do this to initiate the 2D vector