Chinaunix

标题: 大家谁有sun studio 11, 帮忙编译一下下面这段代码(来自temple of sun) [打印本页]

作者: nully    时间: 2007-04-17 01:42
标题: 大家谁有sun studio 11, 帮忙编译一下下面这段代码(来自temple of sun)
  1. \r\n#define _(x) #x\r\nnew;main(a,d,c)char*d;{struct{enum\r\n{A=-1}a:1;}s={A};return !--a?main(\r\n-19, _(0:\\\r\n3F05152C0:200G2K2I3>3B1J2<173B\\\r\n060N1B3I230N192G0?05260F2H111;\\\r\n0K03283>0N3H1G2C), 0):\r\n(putchar((((0[d]-48)<<5)|(s.a\r\n[d]-48))^(\r\nc-16?(\r\nc-4?(c-7?(c-17?(c-11?(c-3?(c-15?(\r\nc-12?(c-10?(c-8?(c-5?(c-13?(c-14?(\r\nc-0?(c-1?(c-18?(c-2?(c-9?(c-6?(\r\nunix[\r\n_(We told you to use Sun Studio!)\r\n]):96):43):119):21):19\r\n):89):104):57):99):54):64):104\r\n):33):66):82):89):48):54):83\r\n)),(2[d])?main(a,d+2,(c+1)%-++a):\r\n0);}\r\n
复制代码
\r\n看来只有sun studio才能出答案。。。\r\n十分感谢。。。
作者: wuqing    时间: 2007-04-17 08:45
bash-3.00# uname -sr         \r\nSunOS 5.10                                                      \r\nbash-3.00# cc -o test2 test2.c                     \r\n\"test2.c\", line 2: warning: old-style declaration or incorrect type for: new\r\n\"test2.c\", line 2: warning: old-style declaration or incorrect type for: main\r\n\"test2.c\", line 2: warning: no explicit type given for parameter: a\r\n\"test2.c\", line 2: warning: no explicit type given for parameter: c\r\n\"test2.c\", line 3: warning: initializer does not fit or is out of range: -1\r\n\"test2.c\", line 8: warning: implicit function declaration: putchar\r\nbash-3.00# ./test2                                   \r\nSergei \'mr. RuOSUG\' Pikalev says: OM!\"\r\nbash-3.00#
作者: nully    时间: 2007-04-17 10:43
我哭了。。。每次那字串都不一样。。。难道真的要自己装sun studio...




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2