I keep getting:

:( helpers.c compiles
expected exit code 0, not 1 

running clang -std=c11 -o is_rest is_rest.c wav.c helpers.c -lcs50 -lm... 
checking that program exited with status 0...

It compiles correctly locally. I have done all the tests. Can't see what is wrong. Any help is appreciated, thanks!

  • This happens from time to time. One cause in the past was using "index" as a variable name, but I thought that was fixed.. Certain other key words used in the cs50 library have been known to cause this too. Also, make sure that you're current by running update50. If this doesn't resolve it, please post the code for testing. – Cliff B Aug 17 '18 at 9:39
  • 2
    Also, make sure to not change any code outside helpers.c (and maybe helpers.h, not sure about that). Especially, do not change function signatures of the three pre-defined functions, though this mistake is more common with pset5 speller. – Blauelf Aug 17 '18 at 10:31

I added a struct and a function definition to helpers.h and I guess this was not being uploaded along with helpers.c, so I moved all my additions from helpers.h to helpers.c and that fixed the issue.

I think having the full output of the compile error would be very helpful to figure similar issues out.

Thank you Cliff B

You must log in to answer this question.

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