Runtime Error(OTHER)

i’m getting Runtime Error(OTHER) in http://www.codechef.com/problems/PRIME1/

my solution http://www.codechef.com/viewsolution/4654796
i’m applying sieve of eratosthenes. Please help what to do for this RUNTIME ERROR. It is the first time i’m getting this runtime error message.

You cant declare array of 10^9 size.

array of size 35000 will be enough…

I think the declaration of the global array with size 9999999999 is the reason for that error.You can’t declare that much size like this. As said by @ravi0213 35000 will be enough.