| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
long long 使用"%I64d"而不是"%lld"并不是mingw-gcc的问题mingw-gcc使用MSVCRT.dll作为C运行库,MSVC并不支持C99,因此不支持"%lld",但是它有__int64,对应于"%I64d",printf属于运行库,因此就算gcc支持long long,但是printf是MSVC的,所以还是要按MSVC的格式来。 BTW:害得我WA了一次才想起来看FAQ。不过编译器那一栏应该注明mingw-gcc而不是gcc。我在linux上的gcc好好的。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator