/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:13:17: warning: iteration 2000004 invokes undefined behavior [-Waggressive-loop-optimizations]
   13 |         if(arr[i]=='W')
      |            ~~~~~^
foo.cc:12:18: note: within this loop
   12 |     for(int i=1;i<=len;i++){
      |                 ~^~~~~
foo.cc:34:17: warning: iteration 2000004 invokes undefined behavior [-Waggressive-loop-optimizations]
   34 |         if(arr[i]=='W')
      |            ~~~~~^
foo.cc:33:18: note: within this loop
   33 |     for(int i=1;i<=len;i++){
      |                 ~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 7ms 384.0 KiB
#2 Runtime Error Segmentation fault 8ms 384.0 KiB
#3 Runtime Error Segmentation fault 9ms 384.0 KiB
#4 Runtime Error Segmentation fault 10ms 384.0 KiB
#5 Runtime Error Segmentation fault 8ms 384.0 KiB
#6 Runtime Error Segmentation fault 15ms 504.0 KiB
#7 Runtime Error Segmentation fault 24ms 512.0 KiB
#8 Runtime Error Segmentation fault 7ms 384.0 KiB
#9 Runtime Error Segmentation fault 14ms 384.0 KiB
#10 Runtime Error Segmentation fault 7ms 384.0 KiB

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2022-10-04 16:31:50
评测时间
2022-10-04 16:31:50
评测机
分数
0
总耗时
114ms
峰值内存
512.0 KiB