Ravi1G / codejam-commandline

Automatically exported from code.google.com/p/codejam-commandline
Apache License 2.0
0 stars 0 forks source link

gcj_submit_solution should return a success result #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This would help in automating my submitting script

Original issue reported on code.google.com by veltzerd...@gmail.com on 6 Jun 2011 at 6:20

GoogleCodeExporter commented 9 years ago
Actually the tool exits with error code 1 if some error occurs, otherwise it 
just exits with error code 0. Do you mean changing the error code to 1 in case 
you get a wrong answer?

Original comment by jor...@google.com on 20 Jun 2011 at 7:09

GoogleCodeExporter commented 9 years ago
exactumundo

Original comment by veltzerd...@gmail.com on 21 Jun 2011 at 11:44

GoogleCodeExporter commented 9 years ago
Perhaps split in 4 error codes (or more) ?

Example
 - 0 : OK
 - 1 : Errors occurs (like current)
 - 2 : Incorrect
 - 3 : Rejected

Original comment by Isam...@gmail.com on 15 Apr 2012 at 12:45

GoogleCodeExporter commented 9 years ago
I second this

Original comment by veltzerd...@gmail.com on 15 Apr 2012 at 2:16

GoogleCodeExporter commented 9 years ago
I would like to preserve the exit code for the tool to indicate actual internal 
errors. What about and option to minimize the scripts' output to the minimum 
possible so it can be parsed easily by a wrapper?

In this silent mode the scripts will print the following to the stdout:

gcj_clear_contest: Nothing
gck_download_input: Nothing
gcj_get_status: Only the scoreboard
gcj_init_contest: Nothing
gcj_renew_login: Nothing
gcj_submit_solution: (Correct|Incorrect|Rejected: Reason)

What do you think about that?

Original comment by jor...@google.com on 9 Jun 2012 at 1:36

GoogleCodeExporter commented 9 years ago

Original comment by jor...@google.com on 9 Jun 2012 at 1:36