R
Richard Heathfield
Eric Sosman said:
Ah, you cooked it. Well done.
#include <stdio.h>
int main(void) {
fputs ("The correct answer is\n", stdout);
fflush (stdout);
if (freopen(NULL, "w", stdin) == NULL) {
fputs ("indeterminate.\n", stderr);
fflush (stderr);
}
else {
fputs ("d: all of the above!\n", stdin);
fflush (stdin); /* 100% legal! */
}
return 0;
}
Ah, you cooked it. Well done.