Can't input during execution. What's the problem.

CSDN Q & A 2021-12-30 09:15:19 阅读数:476

input execution. execution problem. problem

#include"stdio.h"
int main()
{
int a[1000000]={0};
int n,i;
scanf("%d",&n);
a[0]=1,a[1]=1;
for(i=2;i<n;i++)
{
a[i]=a[i-1]+a[i-2];
}
printf("%d",a[n-1]%1007);
return 0;
}




Refer to the answer 1:

a The array is too large




Refer to the answer 2:
版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2021/12/202112300915177118.html