title: error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::basic_string
body: <p>I have tried to write a phonebook using C++ code with <code>unordered_map</code> but I have a problem. In the beginning of this code there is an error which I can't understand. When I tried to run it I get this error: </p>
  
  <blockquote>
    <p>Error 1 error C2679: binary '='</p>
  </blockquote>
  
  <p>Can anyone please help me.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;unordered_map&gt;
  #include &lt;vector&gt;
  #include &lt;hash_map&gt;
  #include &lt;algorithm&gt;
  using namespace std;
  
  int main()
  {
      unordered_map&lt;string, pair&lt; string,vector&lt;string&gt;&gt;&gt;contact;
      string name, number, address;
      cin &gt;&gt; name &gt;&gt; number&gt;&gt;address;
      contact[name]=make_pair(number, address);
      unordered_map&lt;string, pair&lt; string, vector&lt;string&gt;&gt;&gt; ::iterator it;
      it = contact.begin();
      while (it != contact.end())
      {
          cout &lt;&lt; it-&gt;first;
          it++;
      }
      return 0;
  }
  </code></pre>