INSTRUCTING ARDUINO TO RECALL A PREVIOUSLY GIVEN VALUE

Post the whole sketch. From what you have posted, we can't see if you have defined 'n' anywhere else. The compiler is telling you that you haven't defined it in a way that something that you want to see it can.