ATM question

I am able to compile my code. The output is also correct. But it is giving runtime error!!