ERROR USING SWICH ();

I have the next error in my program

exit status 1
‘boton11’ does not name a type

this is my full program.

_3_displays.ino (10.5 KB)

Lines 221 to 284 are not inside a function. Neither are lines 390 to 450

Really,Thank you, but how Can I fix it using ''switch''?

The error has nothing to do with the switch. try moving those lines into the loop. Or better yet, rewrite your code to use arrays and functions and cut the whole things down by about two thirds.