Home > Back-end > Big trouble to help me see where is wrong, thank you very much.
Big trouble to help me see where is wrong, thank you very much.
Time:05-22
# include & lt; stdio.h>
int n; Int Max (int row, int a [] [n], int n); Int min (int column, int a [] [n], int n);
Int main (void) { The scanf (" % d ", & amp; N); Int I, j, a, [n] [n].
For (I=0; I & lt; n; I++) { For (j=0; J & lt; n; J++) { The scanf (" % d ", & amp; A [I] [j]); //if (j!=n - 1) //the scanf (" "); } //the scanf (" \ n "); }
For (I=0; I & lt; n; I++) { If (I==min (Max (I, a, n), a, n)) { Printf (" % d % d ", I, Max (I, a, n)); goto end; } } Printf (" NO ");
End: return 0; }
Int Max (int row, int a [] [n], int n) { Int I, column=0; for (i=1; I & lt; n; I++) { If (a [row] [I] & gt; A/the row/column) The column=I; } Return the column; }
Int min (int column, int a [] [n], int n) { Int I, a row=0; for (i=1; I & lt; n; I++) { If (a [I] [column] The row=I; } Return the row. }
CodePudding user response:
Old compiler doesn't support dynamic size variable n as an array subscript statement,