Not declared in scope

PaulS:
What kind of Arduino are you compiling for? I'm not aware of any Arduinos with 15 analog pins.

Indeed, the Mega has 16