帮忙看看在dev c写的提示错误说if(a[j] > a[j+1])这错

#include
#include

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
//冒泡排序
void bubble_up(int s[],int n);

int main(int argc, char *argv[]) {
int i,a[11];
printf("请输入10个数:\n");
for(i=1; i scanf("%d",&a[i]);
bubble_up(a,10);
printf("排序后:\n");
for(i=1; i printf("%5d\t",a[i]);
return 0;
}
void bubble_up(int s[],int n)
{
int i,j,t;
for(i=1; i for(j=1; j if(a[j] > a[j+1])
{
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}

你这里面三个for语句全部改写,没见过for后面圆括号里用什么scanf和printf的,都是在哪里学的不良风格,学生娃就是这么没用。代码要具有很好的可读性!