Gcc is not working in my pc

I installed mingw as teacher instructed to install it. But it show "this version of c:\MinGW\bin\gcc.exe is not compatible with the version of windows you’re running. Check your computer’s systm information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.