the find and generate functions both compile and produce correct output. But when it comes to check50, I get this message:

enter image description here

I go and check the URL provided that shows which commands were being run when it failed, and this showed:

enter image description here

There is no mention of a sort.c file in the problem set description, and it isn't necessary as the sorting is done in the helpers.c file. I am not sure what the exit code 0 and 1 is referring to in this case.

Any ideas as to why this would otherwise be occurring and how it can be fixed?

  • For some reason, check50 is unable to compile find using your helpers.c file. Exactly what commands are you running? Did you make find or did you add a main to helpers.c? What files have you altered? helpers.c? Any others?
    – Cliff B
    Dec 22, 2017 at 9:26
  • @CliffB The only functions in there are the ones referred to in helpers.h There are two provided functions and I have added another two for the sorting algorithm. The .h file only contains the function prototypes. I make find and make generate, but not make helpers. I use make or make all.
    – Mike
    Dec 22, 2017 at 11:39
  • Can you please restate your question and add code to it? Also, state a list of every file that you've changed. I can't analyze the problem with the data provided. If you've altered any file other than helpers.c, it will fail. check50 only uploads helpers.c. None of the others are uploaded, so if you've changed helpers.h or any others, it's a problem, in spite of the instructions suggesting that you can change helpers.h.
    – Cliff B
    Dec 23, 2017 at 5:22
  • Oh ok, that might be where I am going wrong because I have added in some function headers into helpers.h
    – Mike
    Dec 23, 2017 at 5:27

1 Answer 1


Nope, can't change helpers.h. It doesn't get uploaded to check50. Just move the prototypes from .h to .c

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

  • Thanks Cliff, this has solved the problem!
    – Mike
    Dec 23, 2017 at 5:41

You must log in to answer this question.

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