My code is giving segmentation fault

please help me with it https://ide.codingblocks.com/s/424464