getting runtime error in c(sigabrt)

https://www.codechef.com/viewsolution/18906525 getting runtime error in this question https://www.codechef.com/problems/CLFIBD please help