哪位大神帮我看一看这段程序为何在 DEVC++ 上运行错误,而在 C-FREE 上运行正常呢
#include "stdio.h"int main(void)
{
int i, j, n, sum;
int repeat, ri;
int a[6][6];
scanf("%d", &repeat);
for(ri = 1; ri <= repeat; ri++){
scanf("%d", &n);
for(i = 0; i < n; i++)
for(j = 0; j < n; j++)
scanf("%d", &a[i][j]);
/*---------*/
sum=0;
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(i+j==n-1) continue;
if(i==n-1) continue;
if(j==n-1) continue;
sum+=a[i][j];
}
}
printf("sum = %d\n", sum);
}
return 0;
}
求解答啊,