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

Re:G++ 与 C++ 的问题?

Posted by BMIS at 2008-08-14 16:30:59 on Problem 1324 and last updated at 2008-08-14 16:40:06
In Reply To:G++ 与 C++ 的问题? Posted by:changzhiwin at 2008-08-14 16:02:56
Q: My program gets WA/TLE/RE when compiled by GCC/G++ (C/C++), but it's AC when compiled by C/C++ (GCC/G++)!

A: It's probably caused by some minor bugs hiding in your AC code which
 have not lead to visible effects due to compiler factors. It is 
recommended that you revise your code to fix the bugs in this case. 
Another possible cause is the fact that different compilers generally use
 different methods, libraries and settings to generate executable files.
 Therefore it is possible for the executable files generated by different
 compilers to have different efficiency or even different behaviors in 
some special cases. For example, the stack size of programs compiled by
 MS-VC++ is larger than that of those compiled by GCC/G++. A program 
relying on extremely deep recursion may possibly fail if compiled by 
GCC/G++. If you strongly believe (with sufficient evidence) what you have
 encountered is caused by bugs of the compilers, please let us know.


 

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