Compilation Error

In the contest Codezilla 2013, i got too many compilation errors for this question. I am still not able to figure out where am I going wrong. It works fine on my system. This is my solution.

2 Likes

When you submit, you can actually see the compiler error message.

For your case, the constant you defined for MOD (4294967296) is too large as an integer.
Change it into:

#define MOD 4294967296ULL

3 Likes
//