Error push button

As posted your code is hard to follow. Read the forum guidelines to see how to properly post code and some good information on making a good post.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Please go back and fix your original post.

With those 6mm tactile switches it is better to wire to diagonal terminals to avoid a short.

As shown the switch is wired to ground and to an input set to pinMode INPUT_PULLUP. This is the accepted way to wire a switch.

Please post photos of your wiring.