谁能帮我看看代码有什么问题
#include <stdio.h>
int main()
{
int score[10]={67,98,75,63,82,79,81,91,66,84};
int sum;
int max;
int min;
float ave;
printf("Total score : %d\n",sum);
printf("Max score : %d\n",max);
printf("Min Score : %d\n",min);
printf("Average score : %f\n",ave);
return 0;
}
int i;
int sum=0;
for(i=0;i<10;i++)
{
sum+=score[i];
}
return sum;
int j;
int temp;
for(j=0;j<10; j++)
{
if(score[j]<score[j+1])
{
temp=score[j];
score[j]=score[j+1];
score[j+1]=temp;
}
}
max=score[0];
min=score[9];
printf("Decending order : %d\n",score);
return max,min;
ave=sum/10;