SIGFPE in March long Maximum number, GCD condition

I’m getting a runtime error in the prob

http://www.codechef.com/MARCH14/problems/ANUGCD/

I’ve checked for array index bounds

and the constraints clearly say that input can not be zer too

any suggestions?

No hints during the live contest !!!

Read the guidelines.

2 Likes