You probably need to install the GCC or G++ (C or C++), the second link has good instructions
https://www.codewithharry.com/blogpost/solved-gcc-not-recognized-error-windows/
https://www.codewithharry.com/blogpost/how-to-install-gnu-gcc-compiler-on-windows/