Segmentation fault in my code

My code= https://ide.codingblocks.com/s/666769

Please help me out in this, if needed please make changes in my code and comment that part.

hi @ayushkotwar2002_78a27ac2b05189a5 updated https://ide.codingblocks.com/s/666772, i ve sent u a vid watch that you wont repeat these mistakes

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.