title: no matching function for call to std::vector<int>::erase(int&)
body: <p>I have a problem with this snippet of code:</p>
  
  <pre><code>for(int i=n;i&gt;0;i--)
          for(int j=0;j&lt;i;j++)
              if(docel[j]==docel[i])
                  docel.erase(j);
  </code></pre>
  
  <p>Why is that that my program doesn't compile? I also tried:</p>
  
  <pre><code>docel.erase(docel.at(j))
  </code></pre>