That is a rather strange use of the word erased. I understand what your teacher means and I suppose it's possible she is literally going to erase the mark on the paper and write a new mark on it but it's unlikely. I would prefer something like "You have another chance to do your homework so that you can try to improve your mark."

Student or Learner
Bookmarks