Recently I got a problem which I didn't have before. I used mingw-g++ to compile a cpp file, and got an executable, and when I ran it an error saying "it's not a valid win32 program" occured. I tried it on win11 and win7 and both gave the same thing. I used gdb to debug and got error 193 with command 'run'.
Everything was smooth on linux.
What should I do?