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 |
Re:G++ 与 C++ 的问题?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator