SIGABRT Error while HOLI submission

During the submission for the HOLI problem i am gettin the SIGABRT error!!
I could not resolve it properly…
The link for the code is https://ide.codingblocks.com/s/230818
ALso it is not compiling well at coding blocks ide while its goig smooth at my local compiler !!

@learn.cp.course
I submitted your code on SPOJ and got WA instead of SIGABRT error !!
So I don’t think there is a run time error of any sorts in your code
If you got SIGBART on CB IDE then that might have been a temporary problem so try submitting again

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.