An exclamation expressing surprise, dismay, or frustration (informal); often used when something unexpected or unfortunate happens.
なんてこった、また電車に乗り遅れた。
Oh no, I missed the train again.
試験の合格発表を見て、なんてこった、友達が落ちていた。
I checked the exam results — oh no, my friend failed.
なんてこった!大事な書類を家に忘れてきた。
Oh no! I left an important document at home.
ああ、なんてこった。こんな簡単なミスをするなんて信じられない。
Ah, what a mess. I can't believe I made such a simple mistake.