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:说一个导致oj判断错误的案例。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator