Getting segmentation fault donot know why

Please check my code tell me where i am wrong
Ide:-https://ide.geeksforgeeks.org/RMvTI6ge8m

hello @manikjindal49

it is working fine, pls hard refresh ur tab and try to submit again

I am not able to submit the code

its working fine on my side.

try submitting here->
https://hack.codingblocks.com/app/contests/1794/281/problem

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.