What is the error in my code

pls help in debugging my code i am not able to understand why it is not giving correct ans asap

this code is running well in vs code but it is showing error here pls help to solve the problem

hi @prabhsim2627_d56bfdda3da10bc9, updated
https://ide.codingblocks.com/s/679038

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.