Hi I am having difficult accessing the data in the code below.
1 2 3 4 5
struct Node
{
int target;
double weight;
};
1 2 3 4 5 6 7
vector<vector<Node> > a;
// Assuming I have fill the 2D vector with data, How can I perform a print to see all the data?
for(int i = 0; i < a.size(); i++){
for(int j = 0; j < a[i].size; j++)
//Error here: cout << a[i].target << endl;
}