I'm getting a " expected unqualified-id before numeric constant" error too. However, I'm using the same code snippet from another program and getting ZERO error messages.. (Line 10.1)
Note, I did copy and paste the snippet below from another program. I deleted it and typed it in by hand to make sure no NPC were in the mix.
8 //The relays connect to
9 int potPin= A0; //Assign potPin A0
10 int readValue; // Read value var
cooler_02_sim.ino:10:1: error: expected unqualified-id before numeric constant