title: Using string vector in map
body: <p>I have a map with string key and the second atribute should be vector.</p>
  
  <p>Declaration:</p>
  
  <pre><code>map &lt;string, vector&lt;string&gt; &gt; Subjects;
  </code></pre>
  
  <p>and then when I want to use it for adding values.</p>
  
  <pre><code>Subjects[s] = new vector&lt;string&gt;;
  Subjects[s].push_back(n);
  </code></pre>
  
  <p>s and n are strings. I got error just for the first line. It says <code>error: no match for ‘operator=’ (operand types are ‘std::map&lt;std::basic_string&lt;char&gt;, std::vector&lt;std::basic_string&lt;char&gt; &gt; &gt;::mapped_type {aka std::vector&lt;std::basic_string&lt;char&gt; &gt;}’ and ‘std::vector&lt;std::basic_string&lt;char&gt; &gt;*’)</code> . I tried to give pointer of vector to map, but it doesn't help.</p>