Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcj_submit_solution should return a success result #15

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 6 comments
Open

gcj_submit_solution should return a success result #15

GoogleCodeExporter opened this issue Mar 26, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

exactumundo

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I second this

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

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: OpSys-All, Type-Enhancement, Usability
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant