about _int64

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

Moderator: Board moderators

Post Reply
AcmNightivy
New poster
Posts: 36
Joined: Tue Dec 04, 2007 10:20 am

about _int64

Post by AcmNightivy »

when i use long long,the output printf(),i use "%lld" got AC but got WA when using "%I64d",is this the problem about compiled language?Thanks~
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

%I64d is a non-standard Microsoft extension.

%lld is a standard way for printing long long, but some versions of Microsoft's runtime library don't support it, and so it might not work under Windows.
lnr
Experienced poster
Posts: 142
Joined: Sat Jun 30, 2007 2:52 pm
Location: Dhaka,Bangladesh

Re: about _int64

Post by lnr »

Thanks mf.
I had the same problem.
Post Reply

Return to “C++”