Why Presentation Error if %I64d is used as format specifier?

General topic about Valladolid Online Judge

Moderator: Board moderators

Post Reply
muktadir.rhmn
New poster
Posts: 6
Joined: Sat May 03, 2014 11:44 am

Why Presentation Error if %I64d is used as format specifier?

Post by muktadir.rhmn »

I'm using C to submit a problem. I get Presentation Error if I use "%I64d" as a format specifier to print a variable of type "long long" . just like below:

Code: Select all

long long a = 10;
printf("%I64d", a);
But I get AC if I use "%lld" instead of "%I64d". What is the reason behind this?
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: Why Presentation Error if %I64d is used as format specif

Post by brianfry713 »

%I64d is not supported in GCC.
Check input and AC output for thousands of problems on uDebug!
muktadir.rhmn
New poster
Posts: 6
Joined: Sat May 03, 2014 11:44 am

Re: Why Presentation Error if %I64d is used as format specif

Post by muktadir.rhmn »

Thanks for your reply. :)
Adpa20b!
New poster
Posts: 2
Joined: Wed Apr 01, 2015 6:32 pm

Re: Why Presentation Error if %I64d is used as format specif

Post by Adpa20b! »

Will this have an update?
Ada
Post Reply

Return to “General”