I see there are several problems. One is timer3 and timer4 are already defined. Probably, you don't need to create them.
Other errors are about, probably, changed API and macroses (e.g. BOARD_BUTTON_PIN) which are not defined (or you have to define yourself, I dunno).
I'd advise to learn C/C++ first and read errors and warning more carefully as these error are very common and it's essential to understand them to make any progress in writing own firmware.