PLEASE HELP noob

You are using code written for an old version (< 3.0) of the IRremote library. You can either change your code to work with the new version of the library, following the instructions that in the github page here or you can delete the new version of the IRremote library from your sketchbook/libraries folder and install an older version (2.x.x) and keep the code the way that it is. The older versions are available for install from the IDE library manager.

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

If you use the autoformat tool you will see where you have misplaced curly brackets ({}) and trying to define a function inside of a function.

The code that you posted is not the code that caused the errors that are included.