I'm taking a gaming class on Unreal Engine 4, however, when I try to compile the C++ code, it gives me errors

I’m using Visual Studio in order to do the C++ coding. I’ve typed everything in, just the way the instructor put it up, however, it’s still giving me error codes. Below is an image of the error codes and the visual studio page.

You have syntax errors on your tick function and setup player input component. Your opening and closing currly braces are messed up. Make sure everything inside of each function is wrapped inside currly braces. Also just as a tip, when you share error messages it would help to actually show the part that describes the errors, from your screen shot all I can see is the first error file link and “syntax e”, so i know it says something about syntax error but looking at your code it easy to see the mistake.

To be more specific your tick is missing the opening brace, and your setup player input is missing the end closing brace.

There may be more issues but we wont know till you get the syntax errors fixed.