This question it's not of live or death, just knowledge
I have a question, i use the mingw in windows, and when i read a number with scanf("%lld %Ld %Lf ") the values of my variables are junk, but, when i send to the judge, the answer is AC. Someone knows why happen this, the are a solution to this (using scanf)
PS: i'm forced to use cin
Long long in windows whit scanf(and MINGW)(SOLUTIONED)
Moderator: Board moderators
Long long in windows whit scanf(and MINGW)(SOLUTIONED)
Last edited by gareve25 on Sun Feb 01, 2009 10:38 pm, edited 1 time in total.
Just beginning to make my brain more strong
Re: Long long in windows whit scanf(and MINGW)
Use %I64d instead of %lld while compiling on mingw. Blame Microsoft for that - the problem is with their implementation of printf and scanf in msvcrt.dll.
Re: Long long in windows whit scanf(and MINGW)
thanks for the data mf, 0.0000001% less ignorant
Just beginning to make my brain more strong