I am running VC++ 6.0
Is there any way I can get the 'long long int' to work in it? Currently I am using __int64 and that is working fine.
However when I change my __int64 into 'long long int' and make the relative scanf and printf changes as well, I am forced to submit my solution without testing because VC++ on my computer does not support long long int.
Allternatively is there a way to make the Online Judge work with __int64?
So basically there are 2 questions:
1) How to use the 'long long int' in VC++ 6.0 in this form i.e. without resorting to__int64
2) How to make the online judge to accept my code if I have used __int64
in it.
Thanks.
long long int AND __int64
Moderator: Board moderators
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
use something like this
#ifdef ONLINE_JUDGE
#define LONG long long int
#else
#define LONG __int64
#endif
and after this use only LONG datatype
Best regards
DM
#ifdef ONLINE_JUDGE
#define LONG long long int
#else
#define LONG __int64
#endif
and after this use only LONG datatype

Best regards
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
Born from ashes - restarting counter of problems (800+ solved problems)
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
muvee, I have exactly the same problem. Let me know when you have a structural solution!
What I currently do is use a define statement for LONG (like Dominik Michniewski does) and then just before I send in to the judge, I change the printf statements by hand and send in the program without recompiling (while hoping I've made no typos)
What I currently do is use a define statement for LONG (like Dominik Michniewski does) and then just before I send in to the judge, I change the printf statements by hand and send in the program without recompiling (while hoping I've made no typos)
