Why Do I get SIGABRT here?

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

Why are you explicitly using “delete” ? They will automatically free up memory when we go out of scope. Also, I heard that deleting might cause memory errors in circumstances, eg- When “freeing” a memory which wasnt allocated.

//