Variables not declared in this scope

take a moment and read this: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum

It will help people help you. Your code and error codes need to be surrounded by code tags. It makes copy & paste much easier as well as avoiding odd formatting.