Why is this code showing SIGABRT??

When i run this code on my local machine then it runs fine but when i submit it then it shows SIGABRT

Here is the code

https://www.codechef.com/viewsolution/21316198

Hello! Compile it in debug mode (-g with g++), use dbx and it will find the problem. I had the same problem and found this answer in one of the articles on https://samedaypapers.com/write-my-paper-for-me-cheap and it helped!