有什么错误吗
#include <stdio.h>
void getHaha(int score[])
{
for(i = 0;i<9;i++)
{
for(j=i+1;j<10;j++)
{
if(score[j]<score[i])
{
min = score[j];
score[i]=score[j];
score[j]=min;
}
}
}
return min,scare;
}
void getScore(int score[])
{
for(i = 0;i<9;i++)
{
for(j=i+1;j<10;j++)
{
if(score[j]>score[i])
{
max = score[j];
score[i]=score[j];
score[j]=max;
}
}
}
return max;
}
int main()
{
int score[10]={67,98,75,63,82,79,81,91,66,84};
int sum;
int i,j,temp;
int aver;
for(i=0;i<10;i++)
{
sum += score[i];
}
aver == sum/10;
printf("%d,%d\n",sum,aver);
getScore(int score[]);
printf("%d\n",max);
for(i = 0;i<9;i++)
{
printf("%d\n",score[i]);
}
getHaha(int score[]);
printf("%d\n",min);
}
return 0;