func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, a[51][51], ans[51];   bool check(int j, int x) {     for (int i = 1; i <= n; i++)       if (a[j][i] > x || a[i][j] > x) return false;     ans[j] = x;     return true;   }   int main() {     scanf( %d , &n);     for (int i = 1; i <= n; i++)       for (int j = 1; j <= n; j++) scanf( %d , &a[i][j]);     for (int i = 1; i <= n; i++) {       int j = 1;       while (ans[j] || !check(j, i)) j++;     }     for (int i = 1; i <= n; i++) printf( %d  , ans[i]);     return 0;   }   