My code is giving segmentation fault. What is the error ? Link to the code: https://ide.codingblocks.com/s/338085