I keep on getting this from check50

:( input of 0.41 yields output of 4 \ expected output, but not "input of 0.41 yields output of 4"

For all the six values 0.01 , 0.15 , 1.6 , 23 , 4.2 in greedy.c of pset1

Guys where am i wrong? My answers are correct. I am just having these 6 errors.

  • Having the same issue. If my last statement is printf("%i\n", totalcoins);, then I get Unexpected end of input when I check it, and I get the same issue as you if I remove the \n.
    – dattebane
    Mar 18, 2016 at 23:18

1 Answer 1


Hard to tell from your question, but it's likely that something about your output is different from what is expected. check50 is very precise and expects exact output. That means that if there is a missing or extra comment or prompt, or space or line feed (\n), or anything else, then check50 will reject the output as incorrect. My best guess is that you are missing the line feed after you output your answer.

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

  • Yes this is likely.
    – Ian
    Sep 19, 2022 at 15:16

You must log in to answer this question.

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