fushar / regrader

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

Error when compile, No such file or directory #50

Closed syamcode closed 9 years ago

syamcode commented 9 years ago

Hi @fushar , when i compiling the code, why this error always appear captuare here is the full of error message, [2015-03-25 16:22:20] Grader started. [2015-03-25 16:22:20] Waiting for new submission... [2015-03-25 16:25:00] Found new submission! Submission : 13 User : syamcode (Muhamad Hisyam) Contest : 1 (Tes Coding Competition) Problem : TL (Tulis Lagi) Language : C [2015-03-25 16:25:02] Compile status : 0

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(secret-8f4b3123e46ddd5b85b0e57b49e598d4/13/judging/2/result): failed to open stream: No such file or directory

Filename: controllers/grader.php

Line Number: 276

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(secret-8f4b3123e46ddd5b85b0e57b49e598d4/13/judging/2/checker_op): failed to open stream: No such file or directory

Filename: controllers/grader.php

Line Number: 310

A PHP Error was encountered

Severity: Warning

Message: unlink(secret-8f4b3123e46ddd5b85b0e57b49e598d4/13/judging/2/checker_op): No such file or directory

Filename: controllers/grader.php

Line Number: 318

A PHP Error was encountered

Severity: Notice

Message: Undefined index: time-wall

Filename: controllers/grader.php

Line Number: 333

A PHP Error was encountered

Severity: Notice

Message: Undefined index: mem

Filename: controllers/grader.php

Line Number: 334

[2015-03-25 16:25:02] TC 2 verdict : Wrong Answer (0 ms, 0 KB)

A PHP Error was encountered

Severity: Warning

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

Filename: controllers/grader.php

Line Number: 342

A PHP Error was encountered

Severity: Warning

Message: unlink(secret-8f4b3123e46ddd5b85b0e57b49e598d4/13/judging/2/result): No such file or directory

Filename: controllers/grader.php

Line Number: 343

A PHP Error was encountered

Severity: Warning

Message: unlink(secret-8f4b3123e46ddd5b85b0e57b49e598d4/13/judging/2/2.out): No such file or directory

Filename: controllers/grader.php

Line Number: 344

[2015-03-25 16:25:02] Final verdict : Wrong Answer [2015-03-25 16:25:02] Waiting for new submission... thanks for your attention,
fushar commented 9 years ago

Hey @syamcode,

Does this file exist and executable: moe/obj/box/box?

syamcode commented 9 years ago

did you mean moe/box ? yes, its exist and executable

fushar commented 9 years ago

No, you must have moe/obj/box/box. If not, then Moe was not built correctly.

Try rebuilding it. Inside moe directory, run

./configure

and then

make

syamcode commented 9 years ago

thanks @fushar , now the error message is not shown, but when i try to submit a submission, the verdict is always Runtime Error.. i try to make a simple problem, this is my code

include

int main(void) { int n; scanf("%d",&n); printf("%d\n",n); return 0; }

input : 100 output : 100\n i have upload my test case with .in and .out extension.

fushar commented 9 years ago

Have you set up the correct compiler path etc in Manage->Languages?

syamcode commented 9 years ago

i use default compiler path, and i think my compiler path is correct because when i upload a submission the compiler result is shown, and this is the compile result : source.c: In function ‘main’: source.c:5:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^

syamcode commented 9 years ago

Solved, i have wrong permission in the moe directory thanks for your help @fushar