程序运行时出错,求解
程序运行时出错,求解#include
main()
{
int scores[6]={45,66,95,89,76};
int i,j,temp;
printf("原成绩表:\n");
for(i=0;i<=4;i++)
printf("%4d",scores[i]);
printf("\n********************************\n");
printf("输入需要插入的成绩:");
scanf("%d",&scores[i]);
for(i=0;i<=5;i++)
for(j=0;j<=5-i;j++)
if(scores[j]<SCORES[J+1])
{
temp=scores[j];
scores[j]=scores[j+1];
scores[j+1]=temp;
}
printf("新成绩表:\n");
for(i=0;i<=5;i++)
printf("%4d",scores[i]);
printf("\n");
return 0;
}