Diashow code not working, full with errors

You have one setup function and one loop function.
No more, no less.
You can have other functions but you must have these two.
Code other than variable declarations and definitions must be in a function.