Help in CPP program - Getting SIGABRT

I’m getting SIGABRT on submitting the code to codechef. But it works well in all other IDE. Please help.
My code

Check the following solution which uses local variables and vector<int> object to store the input data for each test case without using the C malloc() function.