可以看下这个程序哪里错了吗

#include <stdio.h>void Sort(long a[], int n);#define SIZE 20int main(){ int n, i; int a[SIZE]; printf("Input total number:"); scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d", &a[i]); } Sort(a, n); for(i = 0; i < n; i++) { printf("%d\n", a[i]); } return 0;}void Sort(long a[], int n){ int i, j; long temp; for(i = 0; i < n - 1; i++) { for(j = i + 1; j < n; j++) { if(a[j] > a[i]) { temp = a[j]; a[j] = a[i]; a[i] = temp; } } } printf("排序后:"); return 0;}

#include <stdio.h>
#define SIZE 100

void Sort(long a[], int n);

int main(){
int n, i;
long a[SIZE];
printf("Input total number:");
scanf_s("%d", &n);
for(i = 0; i < n; i++)
{
scanf_s("%d", &a[i]);
}
Sort(a, n);
for(i = 0; i < n; i++)
{
printf("%d\n", a[i]);
}
return 0;
}
void Sort(long a[], int n)
{
int i, j;
long temp;
for(i = 0; i < n - 1; i++)
{
for(j = 0; j < n-1; j++)
{
if(a[j] > a[j+1])
{
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}
printf("排序后:");
//return 0;
}

想你这种没有格式的代码,没人愿意去读,排版好了再发出来,或者发排版好的图片

我这里是可以运行的,从大到小排序