foo.c: In function 'main':
foo.c:8:7: warning: iteration 16 invokes undefined behavior [-Waggressive-loop-optimizations]
8 | a[i]=a[i-2]+a[i-1],i++;
| ~~~~^~~~~~~~~~~~~~
foo.c:7:10: note: within this loop
7 | while (i<=19)
| ~^~~~
foo.c:10:19: warning: iteration 18 invokes undefined behavior [-Waggressive-loop-optimizations]
10 | sum=sum+1.0000/a[i];
| ~^~~
foo.c:9:11: note: within this loop
9 | for(i=1;i<=19;i++)
| ~^~~~
foo.c:10:10: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
10 | sum=sum+1.0000/a[i];
| ~~~^~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务