Don't know why I am getting WA for this question by uva judge, it seems no error to me and my head is stuck off with the frustration to find the error.Please help me out..

My code :-
Code: Select all
REMOVED AFTER AC.

Code: Select all
REMOVED AFTER AC.