SIGABRT in TAEDITOR

I dont know why I am getting a SIGABRT(RE) in the problem Simple Editor.
Problem link : TAEDITOR Problem - CodeChef
My submitted program : CodeChef: Practical coding for everyone

Help appreciated.