/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:8: warning: iteration 200004 invokes undefined behavior [-Waggressive-loop-optimizations]
  if(b[i]>0 && c[i]==1) ge++;
     ~~~^
/in/foo.cc:16:15: note: within this loop
  for(int i=1;i<=200005;i++)
              ~^~~~~~~~
/in/foo.cc:17:28: warning: 'ge' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(b[i]>0 && c[i]==1) ge++;
                            ^
# 状态 耗时 内存占用
#1 Accepted 2ms 488.0 KiB
#2 Accepted 2ms 504.0 KiB
#3 Accepted 2ms 544.0 KiB
#4 Accepted 2ms 504.0 KiB
#5 Accepted 2ms 504.0 KiB
#6 Accepted 2ms 468.0 KiB
#7 Accepted 2ms 508.0 KiB
#8 Accepted 2ms 468.0 KiB
#9 Accepted 2ms 488.0 KiB
#10 Accepted 2ms 492.0 KiB

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C++
递交时间
2021-12-04 13:18:34
评测时间
2021-12-04 13:18:34
评测机
分数
100
总耗时
25ms
峰值内存
544.0 KiB