写代码总出这一个问题,求解决一下,谢谢
# include <stdio.h># include <math.h>
main()
{
int a[10],i,sum=0;
for (i=1;i<10;i++)
{
printf(" 请输入10个数");
scanf(" %d",a[i]);
}
for(i=1;i<10;i++)
{
sum=sum+a[i];
}
printf(" %d",sum);
}
错误 INK : fatal error LNK1104: cannot open file "Debug/bvzs.exe"