[求助]急!!!
int a,n,i=0,m,x=0,p[100],q=0;main ()
{
void pt(int a, int n,int m, int x);
void turn(int a,int q);
printf("please input two munber");
scanf("%d%d",&n,&m);
for(i=1;i<=n;i++)p[i]=i;a=1;
pt(a,n,m,x);
}
void pt(a,n,m,x)
{int k;k=x;for(;k>0;k--)printf(" ");
for(k=1;k<=n-x;k++,a++)printf("%d",a);printf("\n");
if(a<=m){x=n-1;pt(a,n,m,x);}
else {i=n-1;a=p[i];q=1;turn(a,q);};
}
void turn(a,q)
{if(a<=m-q-1){a=p[i]+1;for(;i<=n;i++)p[i]=p[i]+1;x=n-q-1;pt(a,n,m,x);}
else {--i;++q;a=p[i];if(q<n)turn(a,q);
}