Page 1 of 1

where are the details of runtime errors?

Posted: Sat Nov 25, 2006 11:09 pm
by jeffrey
In the "How to understand the Online Judge answers" how-to it says
Crash - Runtime Error (RE): Your program failed during the execution (segmentation fault, floating point exception...). The exact cause is reported to the user.
My code for challenge 101 compiles and runs fine with the following with gcc 4 on mac os x and gcc 3.4 on cygwin.

c++ -o 101 101.cpp
cat input | ./101

The judge system gives me a runtime error. I would like to know why, but I am unclear as to where the exact cause is reported. I've looked at my author information page, judge status page, email, and wherever else I could think to look but could not find it. Could how to find the cause be included in the how-to?

I can also PM my code if you like.

Thanks,
Jeff

Posted: Sun Nov 26, 2006 4:05 am
by Carlos
Actually, the cause why your program crashed was shown in old status page. Since we don't use it anymore, and there's no plave for RE type in new system's database, you won't find it anywhere.

If you got RE, try to check the limits on your matrices, be sure you never use a negative index, divide by 0 or anything like this. If you want to you can mail me your code, but I don't think I'll find anything there. I absolutelly cannot give you the datasets we use.

Sorry, that's all I can do for you. Maybe if you post your code in the forum someone can look for the error.