? what do you mean? vart?
? what do you mean? vart?
> Shouldn't you use I64d format instead of lld?
He means that %lld isn't standard yet, which means you have to know (or guess) which compiler the judge is using.
If it's really a Linux based gcc implementation, then it's probably %lld
If it's some microsoft compiler, or a windows port of gcc like MinGW or dev-c++, then use %I64d
> scanf("%lld", &x);
It might help if you check the return result, and issue an error message if the conversion failed (which might also help if you specify an unknown conversion).
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
oh!!!!!!!!!!!! you're right! I complie the code based on Linux gcc implementation. I think the online judge is based on Microsoft system. The code is pass. Thank everyone to help me.
I just remember that in the JUDGE's FAQ was some note about using I64d format for long long numbers... I think you should read carefully the all information available about the assignment, not only what is posted in the task description itself
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler