Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:44: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i = 1; i <= 1000; i++)a[i+1] = a[i] + 2;
                                         ~~~^
/in/foo.cc:9:19: note: within this loop
  for(int i = 1; i <= 1000; i++)a[i+1] = a[i] + 2;
                 ~~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Accepted 1ms 400.0 KiB
#3 Accepted 1ms 372.0 KiB
#4 Wrong Answer 1ms 356.0 KiB
#5 Wrong Answer 1ms 356.0 KiB

信息

递交者
类型
递交
题目
P1265 3-2 编程题
语言
C++
递交时间
2024-06-15 14:33:09
评测时间
2024-06-15 14:33:09
评测机
分数
60
总耗时
7ms
峰值内存
400.0 KiB