Visual Studio C++: including header results in thousands of errors

I’m using Visual Studio 2017 and my program is a Visual C++ console app. I have no idea why but when I include vector the compiler generates literally thousands of errors, syntax errors, incompatible declarations etc. When I comment out this line, everything goes back to normal and the program compiles and executes but the only downside is I can’t use vectors of course. Does anyone have any idea on what’s going on? I’ve searched the web all over the place and was unsuccessful. One thing to mention I changed the platform toolset to Visual Studio 2017 – Windows XP (v141_xp) for compatibility reasons but I suppose it should still be compatible.

#include
#include
#include

int main()
{
//CODE HERE...
}

screenshot1
screenshot2

Tried searching the web, no answers, I have no clue what to do

Read more here: Source link