[问题] UVA 621 RUNTIME ERROR

楼主: Diastima (Diastima)   2021-08-07 23:28:49
UVA 621一直出现runtime error
https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&pag
能否有神人能够解惑,是出在哪个步骤
感谢
int main(void)
{
char str[10000];
int n;
cin>>n;
while(n
作者: nh60211as   2021-08-07 23:37:00
这错字也太多了把==
楼主: Diastima (Diastima)   2021-08-07 23:41:00
再贴码的时候跑掉,重新贴,sorry
作者: NciscalA   2021-08-08 00:00:00
会不会是 stoi overflow?
作者: nh60211as   2021-08-08 00:02:00
感觉是,光是他udebug给的input就一堆会出问题了
作者: tomsawyer (安安)   2021-08-08 20:57:00
写这种东西 我都用stod或stoll
作者: LPH66 (-6.2598534e+18f)   2021-08-08 22:15:00
这题我印象中转数字一定爆...不管转整数或转浮点数都一样

Links booklink

Contact Us: admin [ a t ] ucptt.com