I have trouble with two dimensional vector. Example:
vector < vector<int> > data;
int i = 0;
int int_value;
while (i < 10 )
{
cin >> int_value;
data[i].push_back (int_value);
}
I want using push_back for back insert and then I want use data [i][j]. Where is the problem?