/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:39:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<strlen(st);i++)
               ~^~~~~~~~~~~
/in/foo.cc: In function 'void multiplication(int)':
/in/foo.cc:8:36: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
  for (int i=1;i<=100000;i++) ans[i]*=k;
                              ~~~~~~^~~
/in/foo.cc:8:16: note: within this loop
  for (int i=1;i<=100000;i++) ans[i]*=k;
               ~^~~~~~~~
/in/foo.cc:11:11: warning: iteration 10003 invokes undefined behavior [-Waggressive-loop-optimizations]
   ans[i+1]+=ans[i]/mods;
           ^
/in/foo.cc:9:16: note: within this loop
  for (int i=1;i<=100000;i++)
               ~^~~~~~~~
/in/foo.cc: In function 'void power(int)':
/in/foo.cc:26:36: warning: iteration 10004 invokes undefined behavior [-Waggressive-loop-optimizations]
  for (int i=1;i<=100000;i++) sum[i]*=k;
                              ~~~~~~^~~
/in/foo.cc:26:16: note: within this loop
  for (int i=1;i<=100000;i++) sum[i]*=k;
               ~^~~~~~~~
/in/foo.cc:29:11: warning: iteration 10003 invokes undefined behavior [-Waggressive-loop-optimizations]
   sum[i+1]+=sum[i]/mods;
           ^
/in/foo.cc:27:16: note: within this loop
  for (int i=1;i<=100000;i++)
               ~^~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 308.0 KiB
#2 Runtime Error 1ms 452.0 KiB
#3 Runtime Error 2ms 432.0 KiB
#4 Runtime Error 1ms 444.0 KiB
#5 Runtime Error 1ms 324.0 KiB
#6 Runtime Error 1ms 444.0 KiB
#7 Runtime Error 1ms 428.0 KiB
#8 Runtime Error 1ms 452.0 KiB
#9 Runtime Error 1ms 312.0 KiB
#10 Runtime Error 1ms 444.0 KiB

信息

递交者
类型
递交
题目
P1522 堆
语言
C++
递交时间
2017-10-03 16:15:43
评测时间
2017-10-03 16:15:59
评测机
分数
0
总耗时
17ms
峰值内存
452.0 KiB