Error in the program


sir I am getting a segmentation fault can you please check
https://hack.codingblocks.com/app/practice/3/551/problem