Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:35: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds]
    8 |         cout<<a[n][0]<<' '<<a[n][2];
      |                                   ^
foo.cc:4:5: note: while referencing 'a'
    4 | int a[41][2]={{0,0},{0,1},{1,2},{2,4},{4,7},{7,12},{12,20},{20,33},{33,54},{54,88},{88,143},{143,232},{232,376},{376,609},{609,986},{986,1596},{1596,2583},{2583,4180},{4180,6764},{6764,10945},{10945,17710},{17710,28656},{28656,46367},{46367,75024},{75024,121392},{121392,196417},{196417,317810},{317810,514228},{514228,832039},{832039,1346268},{1346268,2178308},{2178308,3524577},{3524577,5702886},{5702886,9227464},{9227464,14930351},{14930351,24157816},{24157816,39088168},{39088168,63245985},{63245985,102334154},{102334154,165580140},{165580140,267914295}};
      |     ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 1. 4ms 332.0 KiB
#2 Wrong Answer Read 24157816, expect 14930352. 3ms 412.0 KiB
#3 Wrong Answer Read 0, expect 1. 4ms 412.0 KiB
#4 Wrong Answer Read 7, expect 5. 4ms 412.0 KiB
#5 Wrong Answer Read 88, expect 55. 3ms 412.0 KiB
#6 Wrong Answer Read 17710, expect 10946. 3ms 412.0 KiB
#7 Wrong Answer Read 102334154, expect 63245986. 3ms 412.0 KiB
#8 Wrong Answer Read 3524577, expect 2178309. 3ms 412.0 KiB
#9 Wrong Answer Read 63245985, expect 39088169. 3ms 412.0 KiB
#10 Wrong Answer Read 514228, expect 317811. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1911 斐波那契之函数调用
语言
C++
递交时间
2023-07-16 20:02:48
评测时间
2023-07-16 20:02:48
评测机
分数
0
总耗时
39ms
峰值内存
412.0 KiB