I successfully built my program and went on to check it using check50 only to discover this
:) helpers.c exists
:) helpers.c compiles
:) finds 42 in {42,43,44}
:) finds 42 in {41,42,43}
:) finds 42 in {40,41,42}
:( finds 42 in {41,42,43,44}
\ expected an exit code of 0, not 1
:) finds 42 in {40,41,42,43}
:) finds 42 in {39,40,41,42}
:) doesn't find 42 in {39,40,41}
:) doesn't find 42 in {39,40,41,43}
:) finds 42 in {42,40,39,41}
so my question is, what could be wrong in my code that it misbhaves and gives the wrong result, only for one specific find command? why does it give the right answer for all the other commands given by check50 ? help would be appreciated, thank you.
for (int z = i + i; 1 < n - 1; i++){
from your original sort?