Why am i getting SIGABRT error?

Please check my code. I am getting SIGABRT when i submit my code.

Here is the link to my code: https://ide.codingblocks.com/s/239645

@HemantKumar don’t delete the array in the test cases. Rest is fine.