This is just a compilation of code use by mosh to teach beginner cpp on youtube Mosh C++ Beginner: https://www.youtube.com/watch?v=ZzaPdXTrSb8
From my understanding vsc doesn't have a compiler so you need to install MingW first then install vsc plugins respectively.
MingW Installation: https://www.youtube.com/watch?v=0HD0pqVtsmw&t=0s
CPP on Visual Studio Code: https://www.youtube.com/watch?v=77v-Poud_io