I get the following error when I check50 helpers.c:
\ expected an exit code of 0, not standard error of "helpers.c:24:17: error: implicit declar..."
Here is the source code of helpers.c:
bool search(int value, int values[], int n)
{
// some things before it
int index = binarySearch(value, values, 0, n);
return index != -1;
}
int binarySearch(int value, int values[], int min, int max)
{
// some things
}
More detailed error message from sandbox:
... but received the following on standard error instead — helpers.c:24:17: error: implicit declaration of function 'binarySearch' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int index = binarySearch(value, values, 0, n);
^
1 error generated.
make: *** [find] Error 1
binarySearch()
and the function declaration, and definition forbinarySearch()
itself should be sufficient.check50 2014/x/pset3/helpers.c helpers.c
instead of usingcheck50 2014/x/pset3/helpers.c helpers.c helpers.h