SyntaxFix
Write A Post
Hire A Developer
Questions
Do not erase and then increment the iterator. No need to increment, if your vector has an odd (or even, I don't know) number of elements you will miss the end of the vector.