There are a number of online C compilers.
I don't know what requirements you need. But these seem to be okay for basics.
VS Code is first and foremost an editor, and relies on command-line tools to do much of the development workflow. There is a C/C++ extension but it does not include a C++ compiler. or debugger. If those that we recommened are IDEs at least they are able to compile.