Please read the new rule regarding the restriction on the use of AI tools. ×

c++ program gives Error 193: %1 is not a valid Win32 application

Revision en2, by LogitechSellout, 2019-06-10 03:16:20

Problem Statement: http://www.usaco.org/index.php?page=viewproblem2&cpid=741 Program: https://pastebin.com/mFpMZJYx

For some reason I've been getting this error every time I try to run this program, I can always build it, but every time I try to run/debug it says some variation of "Create Process error 193: %1 is not a valid Win32 application". This happens with no other project and its very confusing to me why it only happens with this. I can't check if the code even works correctly since I can't run it.

Things I've tried: — Reinstalling MinGW — Making sure my project directory contains no spaces (stackoverflow recommended this) — Testing on multiple IDEs such as clion, code blocks, emacs

I suspect that something might be wrong with the code but im very new to c++.

Tags c++, c++ error, error, usaco, #beginner

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English LogitechSellout 2019-06-10 03:16:20 1 Tiny change: 's build it but every' -> 's build it, but every'
en1 English LogitechSellout 2019-06-10 03:14:22 885 Initial revision (published)