i tried to fix it but i am stuck. pls help

Code:

#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
#define SIZE 5
//prototype
int isValid(input);
int isUnique(input);
main(){
int values [SIZE]={0};
int count;
int i;
int valid;
int result;
int validSoFar;
int unique;
int uniqueSoFar;
int number;
count=0;
result=0;
i=0;
validSoFar=0;
uniqueSoFar=0;
for (i=0; i<SIZE; i++){
printf("Enter an integer (50-100):\n");
scanf("%i",&values[i]);
number=values[i];
valid =isValid(values,number);
unique=isUnique(values[i]);
//if (valid ==FALSE){
// i--;}
validSoFar+=valid;
uniqueSoFar+=unique;
printf("so far valid %i\n",validSoFar);
printf("Unique so far %i\n",uniqueSoFar);
}
system("pause");
}
int isValid(int input){
int result;
int i;
if (input>=50 && input <=100)
result= TRUE;
else
result= FALSE;
return result;
}
int isUnique (int values[], int number){
int result;
int i;
for(i=0; i<10;i++){
if (number==values[i])
result=FALSE;
else
result=TRUE;}
return result;
}