Code not working

it shows a segmentation fault in my code in line 4. but I can not find the error

hello @rick711c

pls save ur code here - > https://ide.codingblocks.com/

and share its link with me

hello @rick711c

pls share ur code

now it fails one test case

check now->

i have turned on colaborate mood . I don’t know to save my code in cb ide

checkn my last response , i already shared ur updated code->

check this link->

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.