免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-17 01:42 |只看该作者 |倒序浏览

  1. #define _(x) #x
  2. new;main(a,d,c)char*d;{struct{enum
  3. {A=-1}a:1;}s={A};return !--a?main(
  4. -19, _(0:\
  5. 3F05152C0:200G2K2I3>3B1J2<173B\
  6. 060N1B3I230N192G0?05260F2H111;\
  7. 0K03283>0N3H1G2C), 0):
  8. (putchar((((0[d]-48)<<5)|(s.a
  9. [d]-48))^(
  10. c-16?(
  11. c-4?(c-7?(c-17?(c-11?(c-3?(c-15?(
  12. c-12?(c-10?(c-8?(c-5?(c-13?(c-14?(
  13. c-0?(c-1?(c-18?(c-2?(c-9?(c-6?(
  14. unix[
  15. _(We told you to use Sun Studio!)
  16. ]):96):43):119):21):19
  17. ):89):104):57):99):54):64):104
  18. ):33):66):82):89):48):54):83
  19. )),(2[d])?main(a,d+2,(c+1)%-++a):
  20. 0);}
复制代码

看来只有sun studio才能出答案。。。
十分感谢。。。

论坛徽章:
0
2 [报告]
发表于 2007-04-17 08:45 |只看该作者
bash-3.00# uname -sr         
SunOS 5.10                                                      
bash-3.00# cc -o test2 test2.c                     
"test2.c", line 2: warning: old-style declaration or incorrect type for: new
"test2.c", line 2: warning: old-style declaration or incorrect type for: main
"test2.c", line 2: warning: no explicit type given for parameter: a
"test2.c", line 2: warning: no explicit type given for parameter: c
"test2.c", line 3: warning: initializer does not fit or is out of range: -1
"test2.c", line 8: warning: implicit function declaration: putchar
bash-3.00# ./test2                                   
Sergei 'mr. RuOSUG' Pikalev says: OM!"
bash-3.00#

论坛徽章:
0
3 [报告]
发表于 2007-04-17 10:39 |只看该作者
谢谢~!

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP