title: Accessing a Two-Dimensional Set
body: <p>How can I print all elements of 2-dimensional set created as follows?</p>
  
  <pre><code>int i, j, n;
  set&lt; set&lt;int&gt; &gt; st;
  set&lt; set&lt;int&gt; &gt; ::iterator it;
  for(i=0;i&lt;5;i++)
  {
      set&lt;int&gt;row;
      for(j=0;j&lt;5;j++)
      {
          cin&gt;&gt;n;
          row.insert(n);
      }
      st.insert(row);
  }
  </code></pre>