Why is this program erroneously rejected by three C++ compilers?
stackoverflow.comJust a matter of time until C++ compiles get AI included and then they will happily compile the code.
Not that I am looking forward to that day…
Maybe this is the path to getting the fabled Sufficiently Smart Compiler[1]?
If you just toss the image at one of those newfangled AI thingamajigs (Copilot, Claude, whatever) and say "Compile this C++ program", does it work? Someone must have tried it by now – give us a report!
I finally got around to it myself. Worked just fine. (VS Code, Github Copilot, Claude Haiku 4.5).
I don't care who you are, that's damn funny right there.