Segmentation Error

I don’t really understand why my code is throwing a segmentation error .Could you please check it?

Save your code on ide.codingblocks.com and share its link.

Check now.