0

:) helpers.c exists
:( helpers.c compiles
\ expected an exit code of 0, not standard error of "helpers.c:32:18: error: implicit declar..."
:| finds 42 in {42,43,44}
\ can't check until a frown turns upside down
:| finds 42 in {41,42,43}
\ can't check until a frown turns upside down
:| finds 42 in {40,41,42}
\ can't check until a frown turns upside down
:| finds 42 in {41,42,43,44}
\ can't check until a frown turns upside down
:| finds 42 in {40,41,42,43}
\ can't check until a frown turns upside down
:| finds 42 in {39,40,41,42}
\ can't check until a frown turns upside down
:| doesn't find 42 in {39,40,41}
\ can't check until a frown turns upside down
:| doesn't find 42 in {39,40,41,43}
\ can't check until a frown turns upside down
https://sandbox.cs50.net/checks/e2b8a29beab140cbb1c73187825bf999

6
  • I tried compiling the program by giving the command "check50 2014.fall.pset3.find helpers.c" but it shows the following error.What does an exit code of "0" mean in this program? Mar 26 '15 at 12:21
  • your program doesn't compile successfully. Navigate to the directory of your source code and execute make find to see the compilation errors.
    – kzidane
    Mar 26 '15 at 12:29
  • I called a "binsearch" fucntion inside the search function at line 32...int result=binsearch(low,int n,value,values[]); Mar 26 '15 at 12:29
  • I did not get any errors when i run the command "make find". Everything goes perfect.It is only when i use the check50 that i get these errors Mar 26 '15 at 12:32
  • Are you declaring your functions in helpers.h? If so, you need to declare them in helpers.c instead.
    – kzidane
    Mar 26 '15 at 12:57
0

The answer, of course, is to declare any additional functions in helpers.c rather than helpers.h because the grader uses its own version of helpers.h which is no different from helpers.h in the distribution code.

You must log in to answer this question.

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