title: Compiler Error: No matching function for call to find
body: <p>I was trying to use vectors as I just started studying but was stuck on this error. I tried to look cpp reference and wrote as on it but still getting error.</p>
  
  <pre><code> #include&lt;vector&gt;
   #include&lt;iostream&gt;
   #include&lt;cstring&gt;
   using namespace std;
   int main()
  {
  
  vector&lt;string&gt; vec;
  
  vec.push_back("First");
  
  vec.push_back("second");
  
  for( int i = 0; i &lt; 4 ; i++ )
      vec.push_back("RepeatTimes");
  
  vector&lt;string&gt;::iterator fp = find(vec.begin(), vec.end(), "First");
  
  
  for( vector&lt;string&gt;::iterator it = vec.begin(); it != vec.end(); it++ )                  cout&lt;&lt;*it&lt;&lt;" ";
  
  }
  </code></pre>
  
  <p>Error is :</p>
  
  <pre><code>[Error] no matching function for call to 'find(std::vector&lt;std::basic_string&lt;char&gt; &gt;::iterator, std::vector&lt;std::basic_string&lt;char&gt; &gt;::iterator, const char [6])'
  </code></pre>