Hacker News new | ask | show | jobs
by kees99 4 days ago
Uh... is this supposed to be valid standalone C?

GCC says there are a bunch of undefined symbols, first one being "R" right in the beginning:

  typedef  unsigned  char u;
  u w,X,T,D[1<<16],t[]=R,U=255;
2 comments

That's defined in Makefile
That is correct. It is cheating, but the judges let a small amount of it slide, especially if you come up with an amusing enough justification. I could not get it to fit otherwise!
I'm not a judge or a competitor, but I feel like a little bit of cheating on the rules is within the spirit of the game. Especially if it a) it makes it more obfuscated and b) it wouldn't have fit otherwise.
"The best kind of correct." -No. 1.0, How Hermes Got his Groove Back, Futurama
Considering that one historical entry (winner maybe?) consisted of a source file that simply contained the character ‘c’, plus a makefile, I’d say it’s in the ball park.