哪位大佬帮忙看看哪里错了
#include <stdio.h>
#define N 10
int totalscore(int score[])
{
for(int i=0;i<10;i++)
{
int total=0;
total=total+score[i];
}
return total;
}
int maxscore(int score[])
{
int max=score[0];
for(int i=0;i<9;i++)
{
if(score[i]>max)
{
max=score[i];
}
}
return max;
}
int minscore(int score[])
{
int min=score[0];
for(int i=0;i<9;i++)
{
if(score[i]<min)
{
min=score[i];
}
}
return min;
}
int averagescore(int score[])
{
int average;
average=(totalscore(score))/10;
return average;
}
void orderscore(int score[],N)
{
for(int i=N-1;i>=0;i--)
{
for(int j=0;j<=i;j++)
{
if(score[j]<score[j+1])
{
int temp=score[j];
score[j]=score[j+1];
score[j+1]=score[j];
}
}
}
for(int i=0;i<10;i++)
{
printf("成绩降序排列为:",score[i]);
}
}
int main()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int Total=totalscore(score);
int Max=maxscore(score);
int Min=minscore(score);
int Average=averagescore(score);
printf("总分为:%d",Total);
printf("最高分为:%d",Max);
printf("最低分为:%d",Min);
printf("平均分为:%d",Average);
order(score);
return 0;
}