大神们错在哪里
#include <stdio.h>
int main()
{
int score[i]={67,98,75,63,82,79,81,91,66,84};
int i;
int sum=0;
for(i=0;i<10;i++)
{
sum += score[i];
}
int average=sum/i;
printf("班级总分:%d\n",sum);
printf("班级平均分:%d\n",average);
int j;
for(j=9;j>0;j--)
{
for(i=0;i<j;i++)
{
if(score[i]<sorce[i+1])
{
int temp;
temp=score[i];
score[i]=score[i+1];
score[i+1]=temp;
}
}
printf("考试成绩排序:%d\n",score[i]);
return 0;
}