Here's the prompt immediately before that, writing the code to a file. (Which I'm now realizing wasn't quite formatted right, but it worked anyway.)
Interestingly, it didn't like so I had to manually add the declaration for printf.
Here's the prompt immediately before that, writing the code to a file. (Which I'm now realizing wasn't quite formatted right, but it worked anyway.)
Interestingly, it didn't like so I had to manually add the declaration for printf.
Did it again with the gcc version, got this:
file: flags.c, line: 11; c++: 201402L | date: Feb 6 2023 v8.4.0
A different C++ version this time, idk if the gcc version matches.
201103L
and201402L
are both real. interestingIt shouldn't print the
L
. In 8.4.0, the the __cplusplus version is:c++: 201402
But it also should be done in just raw dawg
c
mode so__cplusplus
shouldn't be set and should fail to compile.