I dunno why doesn't run! I've tried many things and nothing. The compiler yells saying: «conflicting types for 'search'». Any help, please?

Here's my code:

#include <cs50.h>
#include <stdbool.h>
#include "helpers.h"

bool search(int value, int values[], int n)

for(n = 0; n < value; n++)
    if (values[n] == value)

return true;

return false;
  • you didn't change search's prototype in helpers.h by any chance, did you? – kzidane Nov 6 '15 at 19:41

Oops, sorry I was trying executing the code with "make helpers". I should execute this "./generate 1000 50 | ./find 127" (just the pset3 specs) Next time I should pay more attention...

You must log in to answer this question.

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