求助各位好心人帮改改这个程序~~~~头脑有点混乱了
#include <stdio.h>main()
{int NUM;
printf("Enter the total number of player: ");
scanf("%d",&NUM);
int a[NUM+1],i;
a[0]=0;
printf("Enter the score of the player: ");
for(i=1;i<=NUM;i++)
scanf("%d",&a[i]);
int m[NUM+1],l[NUM+1];
int min,num,k,j;
num=1;
for(i=1;i<=NUM;i++)
if(m[i]==0)
{
min=a[i];
k=1;
l[k]=i;
for(j=j+1;j<=NUM;j++)
if(m[j]==0)
if(a[j]<min)
{
min=a[j];
k=0;
l[++k]=j;
}
else if(a[j]==min)
l[++k]=j;
for(j=1;j<=k;j++)
m[l[j]]>=num;
num++;
i=0;
}
printf("Player-No score Rank\n");
for(j=1;j<=NUM;j++)
printf("%3d %4d %4d\n",j,a[j],m[j]);
}
到处都是declaration syntax error