ERROR!!!

As I just said in another thread, look at the first error, fix it and recompile. Rinse and repeat. Your first few errors appear to be that you haven't declared variables. This:

x = 0

pushButton = 0;

Should likely be this:

int x = 0;
int pushButton = 0;

Similarly, the next couple of issues are items not declared in loop. But please, for the love of the FSM, sort those semi-colons out.