title: Using maps within maps in C++
body: <p>I'm trying to use a map within a map using the following code;</p>
  
  <pre><code> map&lt;map &lt;int,int&gt;,int &gt; multimap;
  </code></pre>
  
  <p>Now I want to insert the data such that <code>multimap[1]</code>--->(2,3), <code>multimap[4]</code>--->(5,6). I have been trying to insert it the following way but i guess there is a syntax error which I can't seem to figure out! </p>
  
  <pre><code> multimap.insert(pair&lt;int,pair&lt;int,int&gt;(2,3)&gt;(1));
  </code></pre>
  
  <p>Any help will be appreciated. And after adding, how would I display the values by using an iterator?</p>