nonstandard extension used : 'keyword' keyword only supported in C++, not C
The compiler compiled your source code as C rather than C++, and you used a keyword that is only valid in C++. The compiler will compile your source file as C if the extension of the source file is .c or you use the /Tc command-line option (see /Tc, /Tp).