SIGSEGV error

why did i get the SIGSEGV error in question DCE05 Problem - CodeChef
and answer is CodeChef: Practical coding for everyone