func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int m, n, count = 0, count1 = 0, x = 0;     cin >> m >> n;     int a[m][n], b[m][n];     for (int i = 0; i < m; i++) {       for (int j = 0; j < n; j++) {         cin >> b[i][j];         a[i][j] = 1;       }     }     for (int i = 0; i < m; i++) {       for (int j = 0; j < n; j++) {         if (b[i][j] == 0) {           for (int k = 0; k < n; k++) {             if (a[i][k] == 1) {               a[i][k] = 0;               count++;               if (count == n * m) break;             }           }           for (int k = 0; k < m; k++) {             if (a[k][j] == 1) {               a[k][j] = 0;               count++;               if (count == n * m) break;             }           }         }         if (count == n * m) break;       }       if (count == n * m) break;     }     if (count == n * m) {       for (int i = 0; i < m; i++) {         for (int j = 0; j < n; j++) {           if (b[i][j] == 1) {             cout <<  NO ;             count = 0;             break;           }         }         if (count == 0) break;       }       if (count != 0) {         cout <<  YES  << endl;         for (int i = 0; i < m; i++) {           for (int j = 0; j < n; j++) cout << a[i][j] <<    ;           cout << endl;         }       }     } else {       for (int i = 0; i < m; i++) {         for (int j = 0; j < n; j++) {           x = 0;           if (b[i][j] == 1) {             for (int k = 0; k < m; k++) x = x || a[k][j];             for (int k = 0; k < n; k++) x = x || a[i][k];             if (x != 1) {               cout <<  NO ;               count1++;               break;             }           }         }         if (count1 > 0) break;       }       if (count1 == 0) {         cout <<  YES  << endl;         for (int i = 0; i < m; i++) {           for (int j = 0; j < n; j++) {             cout << a[i][j] <<    ;           }           cout << endl;         }       }     }   }   