My last question regarding this problem was voted to be closed by linking Remove elements of a vector inside the loop this question... Please don\'t vote for closing unt