Download the installer from msys2.org . Follow the installation wizard.
Save as error.cpp . Run:
Explore clang-tidy for static analysis, clang-format to auto-beautify your code, or clangd for language server magic in VS Code. install clang windows