[問題] ACM 118 Runtime error(已解決)
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
vc++ 2010
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
不知道為什麼會Runtime error
餵入的資料(Input):
附在程式碼
預期的正確結果(Expected Output):
附在程式碼
錯誤結果(Wrong Output):
UVa的信回說程式Runtime error
程式碼(Code):(請善用置底文網頁, 記得排版)
http://ideone.com/6VvSa
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.166.75
→
03/27 16:12, , 1F
03/27 16:12, 1F
推
03/27 17:11, , 2F
03/27 17:11, 2F
謝謝 是陣列那邊超出範圍了
不過VC2010 和 貼程式碼網站的Complier都給過 = =
→
03/27 21:53, , 3F
03/27 21:53, 3F
忽然想到 因為是Runtime error 應該和Compiler無關
所以可能是OS的問題吧
※ 編輯: skyevolution 來自: 140.113.64.104 (03/27 22:55)