Adding C++ Code Error on Launch

So I added a character and a game mode code to my project. After that i added some code following the C++ FPS tutorial. I closed and built the solution, and then i tried to launch the project through my library.

And the i got this error:

X = my project name

Missing X Modules
The following modules are missing or build with a different engine version:


Would you like the rebuild them now?

I hit yes and it says: X could not be compiled. Try rebuilding from source manually.

I’ve tried adding code to my project multiple times and I always get this or random errors in my code (which are not supposed to be errors)

This is really slowing me down, please help me.

Solved: Right-Click on project > Properties > VC++ Directories > Click on the arrows on all listboxes and select inherit from default to project settings. > hit apply and ok.