Code Choser for ROBOTC

My student has used the sample program to help create a competition program, but he keeps getting this error message: “Error: Undefined variable ‘count’. ‘short’ assumed.” Any ideas on how to fix this?

It looks like the declaration of the count integer was removed from the program at some point. You may need to manually re-enter it using the line of code below (it should be inside of task main(), near the top of the code).

task main()
{
	//Declare count variable to keep track of our choice
	int count = 0;