A similar problem happened to me today. It ended up that I accidentally unistalled MSYS, so I had to reinstall and reconfigure it. I followed this tutorial: https://youtu.be/DMWD7wfhgNY?si=tarom74lTTKXEkvY here is the link to the site: https://code.visualstudio.com/docs/cpp/config-mingw