Try adding decimal point at the end of the number. I mean
double d;
d = 5000000000; // <-- illegal error
d = 5000000000.0; // <-- OK
Integer 5000.. doesn't fit 32bit integer. Since this compiler doesn't support long long int type, probably it complines about all integer constants, which don't fit 32bits. Your Arduino compiler may support long long's.
BTW Should we guess how do you enter your big number? Is it so hard to copy paste few lines, which trigger compiler error?