Which sentence from the text shows how Sam felt when he became aware of his mistake?
A. "Sam was indifferent to his error."
B. "Sam felt a surge of satisfaction."
C. "Regret washed over Sam as he realized his mistake."
D. "Sam celebrated his accomplishment."