ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1223. Chernobyl’ Eagle on a Roof

Don't ever submit with freopen!
Posted by LSBG 25 Mar 2008 16:47
I just spent about 40 minutes trying to find an unexisting bug in my code(I got WA 1), while the only bug I actually had was that I submitted with freopen!
Re: Don't ever submit with freopen!
Posted by Chmel_Tolstiy 25 Mar 2008 23:45
just use something like this
#ifedf _DEBUG
freopen()
#endif

or

#ifndef ONLINE_JUDGE
freopen()
#endif