Can't compile any code on any project

Ok I had a problem while doing the Battery Collector Tutorial and the compiler would give me these errors:

Error MSB3073 The command ““C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat” BatteryCollectorEditor Win64 Development “C:\Users\Desktop\UnrealEngineTutorials\BatteryCollector\BatteryCollector.uproject” -rocket -waitmutex -2015” exited with code -1.
BatteryCollector
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37

Error code OtherCompilationError (5)
BatteryCollector
C:\Users\Desktop\UnrealEngineTutorials\BatteryCollector\Intermediate\ProjectFiles\Error 1

and I couldn’t get it to fix so I put the given .cpp and .h files in the project which only produced more errors so I created a new project. This time I got it straight away. Then I went on a completely different projects and found that I get this error on EVERY project I have when I try to build. What do I do?

I have also uninstalled and reinstalled Unreal Engine 4 and the Launcher to no avail.