"Return" Code Not Working
It has nothing to do with the retun statements. You have to close each { with a }. you are missing one.  

   {
int index;

pinMode(10, INPUT); //button input

int checkInput();

if (digitalRead(10) == 0) {

return 1;}
else{

return 0;
 }
}