Vector-Erase

  • [deleted]Challenge Author
    + 3 comments

    Indeed the solution works but the problem here is the author who made this exercise.

    If you do vector.erase(vector.begin()+2) this removes the third element of the vector not the second element.