I have a method that returns a value vector> and I cannot figure out how to print the contents of this vector. I was trying to loop through the contents but I get compiler errors. Here is an example of what I have tried.
vector<pair<char, int>> output;
for(int i = 0; i < ouput.size; i++)
{
cout << output[i][i] << endl; //output[i][i] does no work: no operator [] matches these operands
}