But it is much better to say “Your function is not enough. You are correct that it needs to be a homomorphism”. That acknowledges the student’s contribution. It tells them that their analysis of the difficulty was correct! — Just ANSWER THE QUESTION