免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3270 | 回复: 2
打印 上一主题 下一主题

大家谁有sun studio 11, 帮忙编译一下下面这段代码(来自temple of sun) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-17 01:42 |只看该作者 |倒序浏览
  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十分感谢。。。

论坛徽章:
0
2 [报告]
发表于 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#

论坛徽章:
0
3 [报告]
发表于 2007-04-17 10:43 |只看该作者
我哭了。。。每次那字串都不一样。。。难道真的要自己装sun studio...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP