I recently finished my greedy program and checked it out using different values and it appears to work except for large numbers (more than 6 digits) because of the float problem.
So, I checked it with check50
by executing
check50 2014/x/pset1/greedy greedy.c
I got several errors. For example, it said that my program output 7
for the value 1.6
.
However, when I tried it, 1.6
gave me 3
, which is correct.
Even stranger, I tried the program they wrote by executing
~cs50/pset1/greedy
And the answers were all incorrect.
I think I understand the pset specifications, so what am I doing wrong?