I'm a beginner and this is my first submission, my code works well for gcc4.3 and working ideaone but is getting SIGABRT error every time, what's wrong please help. For the problem http://www.spoj.com/problems/TEST/
Life, the Universe, and Everything
My code is here : http://ideone.com/LpfKhr