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:说一个导致oj判断错误的案例。

Posted by hlsing at 2014-05-04 20:57:56 on Problem 1003
In Reply To:说一个导致oj判断错误的案例。 Posted by:hlsing at 2014-05-04 20:53:56
> 这种水题,提交之后,各种wa,我就纳闷了,后来把代码中以下几行代码注释了就好了:
> FILE *fp;
> fp=open("G:/in.txt","r");
> fclose(fp);
> 
> 猜测可能fp命名和oj冲突,oj也是用文件输入的,注释之后ac了。


后来又对这三个语句一一注释来测试发现是这个语句导致wa了
fclose(fp);

oj太坑了。。


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