I've a compile error !!!

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
rdeleon
New poster
Posts: 1
Joined: Mon Mar 29, 2004 12:36 am

I've a compile error !!!

Post 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]
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

use long long

Post 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.
Last edited by sohel on Mon Mar 29, 2004 5:01 am, edited 1 time in total.
shamim
A great helper
Posts: 498
Joined: Mon Dec 30, 2002 10:10 am
Location: Bozeman, Montana, USA

Post 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.
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post 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.
Post Reply

Return to “C++”