uRGENT on ARRAY

I am trying to use an array to stored some values and allow the user to guess the number between 1 and rand_max and make the user know if the number is too high or too low. or if the number entered by the user was already entered thats where i have a problem with. i need assistance with the c code