title: Using map with queue in c++
body: <p>When try to run below piece of code,It compiles without any errors.</p>
  
  <pre><code>int main()
  {
      queue&lt;map&lt;int,int&gt; &gt;run_time;
  }
  </code></pre>
  
  <p>But,now when I try to push something into the queue using the below code.</p>
  
  <pre><code>int main()
  {
      queue&lt;map&lt;int,int&gt; &gt;run_time;
  
      run_time.push(make_pair(1,2));
      run_time.push(make_pair(3,4));
  }
  </code></pre>
  
  <p>I get error as :</p>
  
  <p><code>no matching function for call to 'std::queue&lt;std::map&lt;int,int,std::less&lt;int&gt;,std::allocator&lt;std::pair&lt;const int,int&gt;</code></p>