Wrong Answer
foo.cc: In function 'int main()': foo.cc:10:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 10 | scanf("%d%d",&a,&b); | ~~~~~^~~~~~~~~~~~~~ foo.cc:16:13: warning: iteration 1000004 invokes undefined behavior [-Waggressive-loop-optimizations] 16 | d[i]+=d[i-1]; | ~~~~^~~~~~~~ foo.cc:14:18: note: within this loop 14 | for(int i=1;i<=1000005;i++) | ~^~~~~~~~~
Found 10 testcases. [Hydro](https://hydro.ac)提供评测服务