[問題] UVa 300 一直Runtime Error

作者: Brothre23 (哈姆妍)   2016-11-27 20:24:38
開發平台(Platform): (Ex: Win10, Linux, ...)
Sublime Text 3
問題(Question):
uDebug上的測資都測過正確了
丟上UVa就一直Runtime Error = =
程式碼(Code):(請善用置底文網頁, 記得排版)
http://luckycat.kshs.kh.edu.tw/homework/q300.htm 題目 (中)
https://goo.gl/ZXVdZ3 題目 (英)
http://pastebin.com/1Vz4irg0 程式碼
補充說明(Supplement):
Runtime Error好像通常是陣列或指標出問題?
可是我看了半天找不出這種錯誤啊QQ
作者: pttworld (批踢踢世界)   2016-11-27 20:29:00
cday的測資有. 不曉得會否影響,這是format
作者: firejox (Tangent)   2016-11-27 22:37:00
在全域宣告?
作者: kyfish (fish)   2016-11-28 03:51:00
沒仔細看其他是否有錯 不過應該不用對n宣告陣列吧?n筆測資可以分開執行 需要的變數重複使用就好了
作者: Brothre23 (哈姆妍)   2016-11-28 10:01:00
三樓說的我同學有跟我說過只是我懶得改XD 我會試試看也謝謝二樓的建議~

Links booklink

Contact Us: admin [ a t ] ucptt.com