Getting run time error except 1st test case

I can’t figure out the mistake in my code.

I have edited your code… Try to submit now…