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