Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:10: warning: 'i' is used uninitialized in this function [-Wuninitialized]
  a[i]=a[i-1]+a[i-2];
         ~^~
foo.cc:9:12: warning: 'a[<unknown>]' is used uninitialized in this function [-Wuninitialized]
  a[i]=a[i-1]+a[i-2];
       ~~~~~^
foo.cc:9:19: warning: 'a[<unknown>]' is used uninitialized in this function [-Wuninitialized]
  a[i]=a[i-1]+a[i-2];
              ~~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 348.0 KiB

信息

递交者
类型
递交
题目
P1061 数组--斐波那契
语言
C++
递交时间
2021-07-21 10:15:46
评测时间
2021-07-21 10:15:46
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB