A variable declaration is something like 'int varA;' - you're telling the program to make space in memory for a variable named varA
If a variable is undeclared it means you didn't do that.
Change 'int yourAnswer;' to 'char yourAnswer;'
Change if(yourAnswer == A) to if(yourAnswer == 'A') and similar for the other two ifs.