title: How to print a type vector<pair<char, int>> to screen c++?
body: <p>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.</p>
  
  <pre><code>vector&lt;pair&lt;char, int&gt;&gt; output;
  
  for(int i = 0; i &lt; ouput.size; i++)
  {
       cout &lt;&lt; output[i][i] &lt;&lt; endl; //output[i][i] does no work: no operator [] matches these operands
  }
  </code></pre>