http://robert.martin-legene.dk/files/impossible.c
It's pretty amazing. But I'm curious why I can compile this fine with gcc, but when I try with clang:
I've tried every language standard I know of but it won't compile! What gives?
Here's the errors with -std=gnu99 (although it doesn't seem to make a difference which -std is used)
It's pretty amazing. But I'm curious why I can compile this fine with gcc, but when I try with clang:
Code:
clang -std=c99 -o impossible impossible.c
I've tried every language standard I know of but it won't compile! What gives?
Here's the errors with -std=gnu99 (although it doesn't seem to make a difference which -std is used)
Code:
impossible.c:16:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(t,_,a)
^~~~
impossible.c:16:1: error: second parameter of 'main' (argument array) must be of type 'char **'
impossible.c:16:1: error: third parameter of 'main' (environment) must be of type 'char **'
impossible.c:75:6: error: expected ':'
,a+1);}
^
:
impossible.c:24:4: note: to match this '?'
t<3?
^
impossible.c:75:6: error: expected expression
,a+1);}
^
impossible.c:75:6: error: expected ':'
,a+1);}
^
:
impossible.c:23:4: note: to match this '?'
0<t?
^
impossible.c:75:6: error: expected expression
,a+1);}
^
1 warning and 6 errors generated.