Hi,
Please refer the following link to get more information on the possible reasons for the error, and how to troubleshoot them:
Once the error is resolved, please try installing the compiler again. You can refer the following link to get information on how to install MinGW: