title: Insert vector for value in map in C++
body: <p>I am stuck on trying to figure out how to insert a vector for a value in a map. For example:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;map&gt;
  
  using namespace std;
  
  int main()
  
  {
  
      map &lt;int, vector&lt;int&gt; &gt; mymap;   
  
      mymap.insert(pair&lt;int, vector&lt;int&gt; &gt; (10, #put something here#));
  
      return 0;
  }
  </code></pre>
  
  <p>I don't know what syntax to use insert a vector for value. I tried <code>{1,2}</code>, but that failed. What syntax should I use?</p>
  
  <p>Everything works if I declare a vector in advance and give it a name, but I don't want to do that, as I want to have a map with a lot of vectors.</p>
  
  <p>Thank You in Advance</p>