'Can't run VSCode properly

I am a beginner at using VSCode and wanted to code a bit with C++&C. I discovered that I had to add on some extensions and add a compiler to make things work, so I followed this video: https://youtu.be/0HD0pqVtsmw. I followed it and everything was fine but even then when I started coding I still had bugs: https://i.stack.imgur.com/eDEqj.png. I kept searching youtube and I couldnt get any help, I tried to re-install and everything went smoothly too but this problem occured, https://i.stack.imgur.com/HZ5gW.png. Can anyone help me fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source