0

I just found that my caesar.c program has been graded as 0. I tested it again with the examples in the grade book in edx but my code seems working. As I used the framework in caesar and applied again to vignette.c and vignette has been graded and worked well...

could anybody shed some light on how to work this out?

Thanks! HM :)

2 Answers 2

1

Did you submit both caesar.c and vigenere.c as one submission? If you submit them separately, only the latest submission is graded.

Alternatively, did you use check50 to test your caesar.c? Did it pass?

7
  • Thanks, I just use check50....the errors saying "expected an exit code of 0, not 1"....what does this mean?
    – Hang Man
    Nov 1, 2014 at 7:42
  • Can you paste the sandbox URL here so I can see the actual errors?
    – curiouskiwi
    Nov 1, 2014 at 7:43
  • :( encrypts "a" as "b" using 1 as key \ expected an exit code of 0, not 1 :( encrypts "barfoo" as "yxocll" using 23 as key \ expected an exit code of 0, not 1 :( encrypts "BARFOO" as "EDUIRR" using 3 as key \ expected an exit code of 0, not 1 :( encrypts "BaRFoo" as "FeVJss" using 4 as key \ expected an exit code of 0, not 1 :( encrypts "barfoo" as "onesbb" using 65 as key \ expected an exit code of 0, not 1 :( encrypts "world, say hello!" as "iadxp, emk tqxxa!"
    – Hang Man
    Nov 1, 2014 at 8:26
  • do you ever return 1; in your code. this is saying that you are doing that every time rather than printing the ciphered text.
    – curiouskiwi
    Nov 1, 2014 at 9:03
  • no, whenever i enter the cipher and cipher text, the ciphered text came out....everything runs correctly on the surface of this.
    – Hang Man
    Nov 1, 2014 at 9:27
0

"encrypts "a" as "b" using 1 as key \ expected an exit code of 0, not 1 "

This line here should actually tell you what is wrong. Main should return 0 when it runs correctly and a non-zero number (1) when it runs incorrectly. Your program ran correctly, but returned 1 indicating an error. So check the error handling and make sure that you are only returning 1 if there is an error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .