I can't compile first code in C++ in Visual Studio!

Yes and the result is the same : it doesn’t compile !