Can anyone tell me whats wrong with the code(error - SIGABRT)

link - CodeChef: Practical coding for everyone