def check(n) s = "*"*n f = open("test.cpp","w") f.puts <<EOS #include <cstdio> int main(){ (#{s}printf)("Hello World\\n"); } EOS f.close() return system("clang++ test.cpp") end check(ARGV[0].to_i) $ ruby check.rb 10000 clang: error: unable to execute command: Illegal instruction: 4 clang: error: clang frontend command failed due to signal (use -v to see invocation) Apple LLVM version 10.0.1 (clang
éç°ç¯¤å¸ @madnoda åé¡ç¹ãè¨ãæãã代æ¿æ¡ãä¸ç·ã«åºããªãã§ãåé¡ç¹ã ãè¨ããªãã¨è¨ã人ãå± ããããããªäºã¯ãªã ã»åé¡ç¹ãçºè¦ããå¾ã代æ¿æ¡ãèãç¡ãã¨å ±åã§ããªããªãããã®éé ããçãã ã»åé¡ç¹ãè¦ã¤ããæè½ã¨ã代æ¿æ¡ãè¦ã¤ããæè½ã¯å¥ãªã®ã§ãå¥ã®äººããã£ãæ¹ãéãï¼ç¶ã
ä»äºã§ä¸æ¥ä¸ã¢ãã¿ã¼ãçºãã æéã空ãã°ã¹ããã§èªæ¸ããã¤ãã¿ã¼ã 家ã«å¸°ãã°ã²ã¼ã ãæ ç»ã å ¨é¨ãç®ã«è² æ ãããããã¨ã ã¨æãã¾ãããï¼ï¼ï¼ ãããªç¾ç¶ãæç ´ãã¹ããåã¯ç®ãé ·ä½¿ããªã趣å³ãæ¢ãæ ã«ä¹ãåºãã®ã§ãã£ãã ãªããããï¼ ãã£ã±ãéåã§ãããï¼ç¡çã§ããã
身å å ¬è¡¨ã§ç³ãå ¥ãï¼äº¬ã¢ãäºä»¶ã§å ±éå社ï¼äº¬é½ 2019å¹´08æ20æ¥19æ00å 京é½ã¢ãã¡ã¼ã·ã§ã³ã®æ¾ç«æ®ºäººäºä»¶ã§ã京é½åºå ã®å ±éï¼ï¼ç¤¾ã§ã¤ããå¨æ´æ°èæ¾éç·¨é責任è ä¼è°ã¯ï¼ï¼æ¥ãç ç²ã«ãªã£ãï¼ï¼äººã®ãã¡ï¼ï¼äººã®èº«å ãçºè¡¨ãã¦ããªãåºè¦ã«å¯¾ããéãããªå ¬è¡¨ãæ±ããç³ãå ¥ãæ¸ãæåºããã ï¼é¢é£ãã¥ã¼ã¹ï¼ã京ã¢ããã¹ã¿ã¸ãªæ¾ç«äºä»¶ ç³ãå ¥ãæ¸ã¯æ¤ç°ç§äººã»åºè¦æ¬é¨é·å®ã¦ãçºçï¼ã«æ以ä¸ãã£ã¦ãçºè¡¨ããªããã¨ã«è§¦ãããäºä»¶ã®å ¨ä½åãæ£ç¢ºã«ä¼ãããªããã¨æ¸å¿µãä¼ããä¸ã§ããéå»ã®äºä»¶ã«æ¯ã¹ã¦ã極ãã¦ç°ä¾ãã¨ãã¦éãããªå®åå ¬è¡¨ãæ±ãããã¾ããä»åãå ä¾ã¨ããªãããè¦è«ããã æ°åã³ããææ°æ å ± ç¸æ¨¡åæ®ºå· ç¥æ¸æå¡éããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}