title: STL map error: no template named 'map' in namespace 'std'; did you mean 'max'?
body: <p>I am working on an application that tracks the frequency of letters in a string. To do this I created the following Struct</p>
  
  <pre><code>struct MessageLetter{
    char letter;
    int count;
    MessageLetter(char letter, int freq)
    : letter(letter), count(freq)
    {}
  };
  </code></pre>
  
  <p>Now I am trying to create a stl::map like follows...</p>
  
  <pre><code>  std::map&lt;std::string, MessageLetter&gt; lList;
    for(int i = 0; i &lt; output.length(); i++){
      std::cout &lt;&lt; i &lt;&lt; output[i] &lt;&lt; std::endl;
      if(lList.find(output[i]) == lList.end()){
        std::cout &lt;&lt; "Letter not found" &lt;&lt; std::endl;
        MessageLetter m = {output[i],1};
        lList[output[i]] = m;
      }
      else{
        std::cout &lt;&lt; "Letter found" &lt;&lt; std::endl;
      }
    }
  </code></pre>
  
  <p>When I try to compile this I get the following...</p>
  
  <pre><code>test.cpp:95:8: error: no template named 'map' in namespace 'std'; did you mean 'max'?
    std::map&lt;std::string, MessageLetter&gt; lList;
  </code></pre>
  
  <p>I am new to c++ so any guidance would be great. And if this is a duplicate I will be happy to remove. Any other information (C++ version etc) will be provided if needed. This is eventually going to be a native Android app.</p>