SIGSEGV !!!

question: GERALD3 Problem - CodeChef
code: CodeChef: Practical coding for everyone

Please help. i am just using 2.3 MB of memory.