Simply look for the lines that is shows in the compile errors. Read the error and it generally tells you exactly what is wrong. In the case of the one you posted, that variable is not defined you either need to define it or determine if it's spelled wrong.