Help! Run Time Error (SIGABRT) in ELOMAX?

Can anyone help me to get rid out of this error, I will be so thankful for you.
Here is the link of problems https://www.codechef.com/problems/ELOMAX
and here is my submission https://www.codechef.com/viewsolution/37291329