HELP Joystick Type Error

Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

The posted code verifies with no warnings or errors when compiled for a Leonardo board (same atmega32u4 processor) on my system (Win 10, IDE version 1.8.12)