SIGABART runtime error

Hello everyone,
I am getting runtime error in the question of “June cook-off”.
If anyone can understand this, then please help me.
My solution: https://www.codechef.com/viewsolution/34642313
Thanks in advance.