Maria,
As frustrating is that maybe to the student, it is probably the best pedagogical approach to take. One "critical" component of critical thinking skills would be to not take shortcuts. Providing the answer in this scenario would only reinforce the undesired behavior. Nicely done.
Dr. S. David Vaillancourt