When I run check50 on pset1 it does not validate my solution, even if it says that the expected output is the same as the correct output.
Does anyone know what the problem is?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this communityWhen I run check50 on pset1 it does not validate my solution, even if it says that the expected output is the same as the correct output.
Does anyone know what the problem is?
Be sure you have put a new line at the end of your answer, so it matches the staff version exactly. As it says in the spec:
"Incidentally, so that we can automate some tests of your code, we ask that your program’s last line of output be only the minimum number of coins possible: an integer followed by
\n
. "
%i \n
, while it was supposed to be %i\n
.
Aug 14, 2014 at 8:12