1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
void DuyetCacPhanTuTamGiacDuoiDuongCheoChinh(int a[][MAX], int n) { /*for(int i = 1; i < n; i++) { for(int j = 0; j < i; j++) { printf("%4d",a[i][j]); } }*/ for(int i = 1; i < n; i++) { for(int j = i - 1; j >= 0; j--) { printf("%4d",a[i][j]); } } }
1 2 3 4
Line 1: error: 'MAX' undeclared here (not in a function) In function 'DuyetCacPhanTuTamGiacDuoiDuongCheoChinh': Line 10: error: 'for' loop initial declaration used outside C99 mode Line 12: error: 'for' loop initial declaration used outside C99 mode