求大神帮我看看哪里出错了,非常感谢!
void Insert_Sort(int a[], int n){
int i, j, temp;
for (i = 1; i < n; i++)
{
temp = a[i];}
i=j-1;
for (j=i-1; j>0 && temp < a[j];j--)
a[j] = a[j-1];
}
#include <stdio.h>
int main()
{ int a[5]={1,56,78,5,9};
int i;
for(i=0;i<5;i++)
printf("3%d",a[i]);
Insert_Sort(a,5);
for(i=0;i<5;i++)
printf("%3d",a[i]);
return 0;
}