/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'Num mult2(Num, int)':
/in/foo.cc:36:12: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
   if (s.s[i]>=10) 
       ~~~~~^
/in/foo.cc:35:15: note: within this loop
  for(int i=1;i<=1005;i++) 
              ~^~~~~~
/in/foo.cc:34:18: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
   s.s[i]+=a.s[i]*b; 
                  ^
/in/foo.cc:33:15: note: within this loop
  for(int i=1;i<=1005;i++) 
              ~^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 5ms 356.0 KiB
#2 Accepted 4ms 356.0 KiB
#3 Wrong Answer 4ms 384.0 KiB
#4 Wrong Answer 4ms 264.0 KiB
#5 Wrong Answer 4ms 360.0 KiB
#6 Wrong Answer 6ms 356.0 KiB
#7 Wrong Answer 7ms 256.0 KiB
#8 Wrong Answer 4ms 256.0 KiB
#9 Wrong Answer 4ms 352.0 KiB
#10 Wrong Answer 3ms 344.0 KiB

信息

递交者
类型
递交
题目
P1032 循环
语言
C++
递交时间
2017-12-14 17:52:07
评测时间
2017-12-14 17:52:07
评测机
分数
10
总耗时
52ms
峰值内存
384.0 KiB