title: Identifier cout is undefined..and others
body: <p>I don't understand what's going on. I compiled the program a few times and everything was going fine. But since I inserted <code>#include &lt;unordered_map&gt;</code>, I'm getting errors such "undeclared identifier on cout...no instance of overloaded function for getline". I'm using Visual Studio 10. 
  Also if someone could tell me how to properly initialize <code>unordered_map</code>, that would be great.</p>
  
  <pre><code>#include "stdafx.h"
  #include&lt;string&gt;
  #include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;unordered_map&gt;
  
  using namespace std;
  
  unordered_map&lt;string, dictionary * &gt; Mymap;
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      string option;
      string pass;
      int choice=0;
  
      unsigned char hash[20];
      char hex_str[41];
  
      while(choice!=4)
      {
          cout&lt;&lt; "Select an option:"&lt;&lt; endl;
          cout&lt;&lt;"1. Basic Hashing"&lt;&lt;endl;
          cout&lt;&lt;"2. Load Dictionary"&lt;&lt;endl;
          cout&lt;&lt;"3. Decrypt"&lt;&lt;endl;
          cout&lt;&lt;"4. Exit" &lt;&lt;endl;
  
          getline(cin,option);
          stringstream(option) &gt;&gt; choice;
  
          if(choice == 1)
          {
              cout&lt;&lt;"Please enter a sample password"&lt;&lt;endl;
              getline(cin,pass);
              const char * c= pass.c_str();
              sha1::calc(c,pass.length(), hash);
              sha1::toHexString(hash,hex_str);
              cout&lt;&lt;endl;
              cout&lt;&lt;"Hashed: "&lt;&lt; hex_str&lt;&lt;endl;
          }
          else if(choice ==2)
          {
              string answer;
              cout&lt;&lt;"Would you like to use the default dictionary file(d8.txt). Press y or n"&lt;&lt;endl;
              getline(cin,answer);
          }
      }
      return 0;
  }
  </code></pre>