Page 1 of 1

I've a compile error !!!

Posted: Mon Mar 29, 2004 1:31 am
by rdeleon
Hi.
The problem is that I submit a problem on judge but it replay me with a compile error, I think that this error is because I use in this code the type of "__int64", I think that because when I change __int64 by "long" the problem don't make me a compile error, but the fact is that I need to work with big numbers, and I can't submit this problem with _int64 type.
I want you explain me a shape to make good this problem.
Ahh, where I can fine the C++ Judge Compiler, If I can obtain it, the problem will be resolve.

Thanksssssssssss... [/b]

use long long

Posted: Mon Mar 29, 2004 5:00 am
by sohel
To work with large integers ( N<2^63), use long long.
Using __int64 will get compile error.
And use printf("%lld",N) to handle the data type.

Hope it helps.

Posted: Mon Mar 29, 2004 5:00 am
by shamim
Remember, sometimes long long does not support integers large enough to support a particular problem.

One example is fibonacci freeze, where you have to use BigNum, long long will not work.

Posted: Tue Mar 30, 2004 3:00 pm
by Krzysztof Duleba
Online Judge works on gcc 2.95. Windows versions can be found it in MinGW, Cygwin (here only gcc 3.3 is supported, but I have working 2.95 as well) and DJGPP.