title: Error: No Match Function to Call
body: <p>I want to make my vector, vector_list, not to have any duplicate data. Here the code:</p>
  
  <pre><code>int is_Tally(int num ) 
  {
      vector&lt;int&gt; vector_list;
      for(int i=1; i&lt; 1000;i++)
      {
          int item = (i*num)%10000;
          if (vector_list.empty())
          {
              vector_list.push_back(item);
          }
          else
          {
              if (find(vector_list.begin(), vector_list.end(), item)!=vector_list.end())
              {
                  vector_list.push_back(item);
                  if (vector_list.size()&gt;15)
                  {
                      return 0;
                  }
              }
          } 
      }
      return vector_list.size();
  </code></pre>
  
  <p>And I got an error when I execute the code.</p>
  
  <pre><code>error: no matching function for call to 'find(__gnu_cxx::__normal_iterator&lt;int*,     std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, __gnu_cxx::__normal_iterator&lt;int*, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt;, int&amp;)
  </code></pre>
  
  <p>Any suggestions? Thank.</p>