Change to indirect speech: The boy said, "Alas! I have failed."
AThe boy exclaimed that he has failed.
BThe boy said with sorrow that he failed.
CThe boy exclaimed with sorrow that he had failed. ✓
DThe boy said alas that he had failed.
Explanation
Option C (The boy exclaimed with sorrow that he had failed.) correctly applies the required reporting structure and tense/pronoun changes.