大神帮忙看看,哪错了
#include <stdio.h>
int hs1()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int zf;int pjf;
for(N=0;N<10;N++)
{
zf+=score[N];
}
pjf=zf/10;
printf("总分是:%d\n平均分是:%d\n",zf,pjf);
int hs2()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int zgf=score[0];int t;
for(N=0;N<10;N++)
{
if(score[N]<score[N+1])
{
t=score[N];
score[N]=score[N+1];
score[N+1]=t;
}
}
printf("最高分是:%d\n",zgf);
}
int hs3()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int zdf=score[0];int t;
for(N=0;N<10;N++)
{
if(score[N]>score[N+1])
{
t=score[N];
score[N]=score[N+1];
score[N+1]=t;
}
}
printf("最低分是:%d\n",zdf);
}
hs4()
{
int score[N]={67,98,75,63,82,79,81,91,66,84};
int t;int pass;
for(pass=1;ppass<10;pass++)
{
for(N=0;N<10;N++)
{
if(score[N]>score[N+1])
{
t=score[N];
score[N]=score[N+1];
score[N+1]=t;
}
}
}
printf("成绩降序排列:%d\n",score[N]);
}
int main()
{
hs1();
hs2();
hs3();
hs4();
return 0;
}