It seams that the issue may belong form the .cpp-extension's associated program.
Check if the .cpp-extension is associated to 'ggc1plus' executable instead of Visual Studio Code:
in Windows 10 open Settings and search "Chose default app by file type" the associated app should be "Visual Studio Code".
in Windows 7 the quick way to change an association is the following:
About this solution you can find more information on Stack Overflow here , or you can also associate the file extension (in Windows 7) as explained from Microsoft Learn going here.
Check if you have installed the "C/C++ extension for VS Code" You can find more information about this clicking here.