fushar / regrader

ICPC-style programming contest system
MIT License
34 stars 25 forks source link

RTE in simple problem #42

Closed dipsankarb closed 10 years ago

dipsankarb commented 10 years ago

Hi.

Thanks for the amazing software. I am using it to teach a programming course.

I recently set up regrader and am trying to test a sample contest. I have set up the language compilation. A simple C program to add a couple of integers is constantly throwing a RTE error. The run_grader.sh terminal shows a runtime error. I am not able to figure out where I might be going wrong.

Your help is highly appreciated. Thanks.

dipsankarb commented 10 years ago

Also there is a warning message which is as follows :

A PHP Error was encountered

Severity: Warning

Message: unlink(secret-825454bbc5aa444a94caadb1fb57d641/13/judging/2/error): No such file or directory

Filename: controllers/grader.php

Line Number: 341

A PHP Error was encountered

Severity: Warning

Message: unlink(secret-825454bbc5aa444a94caadb1fb57d641/13/judging/2/op2): No such file or directory

Filename: controllers/grader.php

Line Number: 343

[2014-10-10 15:54:52] Final verdict : Runtime Error
fushar commented 10 years ago

Hi, sorry for late reply. What was the solution (since you have closed this issue)?

dipsankarb commented 10 years ago

Yes the problem is solved. The input and output test case files which you upload for each problem needs to have a .in or .out extension which I did not put. I simply created docs in linux without any extension. Maybe other extensions will also work (I have not tried). You can include this point in the "Got any weird errors?" sections of Regrader.

Also, the other PHP warning which I pointed out happens only for RTE. Its fine for AC, WA or CE.

Thanks

fushar commented 10 years ago

Whoa, to be honest I don't know why test files with no extensions give errors :P

Anyway I will update the readme. Thanks for this bug report and the fix :)