C++ compile error on 1 computer but same project on other computer compile works

So I have a project one one computer that for some reason fails to compile c++ code but when I sent the project to another computer it worked! This is also happening for every project created on my main computer it for some reason fails every time but the other computer has no problem.
Dose anyone have any idea as to what could be the problem

What is the error?