Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

long long 使用"%I64d"而不是"%lld"并不是mingw-gcc的问题

Posted by brianchon at 2006-01-25 16:32:11
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator