title: binary_search not working for a vector<string>
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  #include &lt;algorithm&gt;
  using namespace std;
  int main(void)
  {
      string temp;
      vector&lt;string&gt; encrypt, decrypt;
      int i,n, co=0;
      cin &gt;&gt; n;
      for(i=0;i&lt;n;i++)
      {
          cin &gt;&gt; temp;
              encrypt.push_back(temp);
      }
      for(i=0;i&lt;n;i++)
      {
          cin &gt;&gt; temp;
          decrypt.push_back(temp);
      }
      for(i=0;i&lt;n;i++)
      {
          temp = encrypt[i];
          if((binary_search(decrypt.begin(), decrypt.end(), temp)) == true) ++co;
      }
      cout &lt;&lt; co &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>It reads two equal lists of strings and should print out how many of the words in the first list are also found in the second list, simple.
  Not giving me the expexted results and i think the problem is in binary_search. 
  Can you tell me why ?</p>