"What a hopeless fellow you are" said the teacher to the student.

A ) The teacher told the student that you are a very hopeless fellow.

B ) The teacher told the student that he was a very hopeless fellow. ✅

C ) The teacher said what a hopeless fellow the student was.

D ) The teacher exclaimed that the student was what a hopeless fellow.