SIGABRT error in FORGETPW (C++)

My code for FORGETPW is running fine on my pc , but when i am submitting my solution on codechef i am getting SIGABRT error. I am coding in c++. Please Help !!!

Please refer to FAQ for more information and do not ask questions related to ongoing contests.