/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In member function 'bign bign::mi()':
/in/foo.cc:37:20: warning: iteration 499 invokes undefined behavior [-Waggressive-loop-optimizations]
   37 |             c.a[i+1]+=c.a[i]/10;
      |             ~~~~~~~^
/in/foo.cc:35:22: note: within this loop
   35 |         for(int i=1;i<=500;i++)
      |                     ~^~~~~
/in/foo.cc: In member function 'bign bign::pf()':
/in/foo.cc:49:20: warning: iteration 499 invokes undefined behavior [-Waggressive-loop-optimizations]
   49 |             c.a[i+1]+=c.a[i]/10;
      |             ~~~~~~~^
/in/foo.cc:47:22: note: within this loop
   47 |         for(int i=1;i<=500;i++)
      |                     ~^~~~~
# 状态 耗时 内存占用
#1 Runtime Error 3ms 572.0 KiB
#2 Runtime Error 3ms 580.0 KiB
#3 Runtime Error 3ms 532.0 KiB
#4 Runtime Error 3ms 532.0 KiB
#5 Runtime Error 3ms 564.0 KiB
#6 Runtime Error 3ms 532.0 KiB
#7 Accepted 3ms 532.0 KiB
#8 Accepted 3ms 532.0 KiB
#9 Runtime Error 3ms 572.0 KiB
#10 Runtime Error 3ms 576.0 KiB

信息

递交者
类型
递交
题目
P1223 麦森数
语言
C++
递交时间
2026-02-13 19:09:29
评测时间
2026-02-13 19:09:29
评测机
分数
20
总耗时
35ms
峰值内存
580.0 KiB