#define SIZE 3
void arr(int former[],int n,int now[],int a)
{
int m,t;
int i=0;
while(a>former[i])
i++;
if(a<former[i])
a=now[i+1];
t=n+1;
for(m=n;m>i+1;m--,t--)
former[n-1]=now[n];
}
void main()
{
int a,i;
int former[SIZE];
int now[SIZE+1];
scanf("%d",&a);
for(i=0;i<SIZE;i++)
scanf("%d",&former[i]);
arr(former,SIZE,now,a);
for(i=0;i<=SIZE;i++)
printf("%d",now[i]);
}
希望帮我找一下错误。谢谢!