Euler totient function seive,SIGXFSZ error

The link to my code for question etfs on spoj is http://ideone.com/TmlrPc.

I am getting SIGXFSZ error…Please explain me what it mens and what i can do to correct it.