For this Question: An element of the matrix is called strange if its corresponding row and column contains all 1's. Given a boolean matrix of size N*M, your task is to find the number of strange elements.The first line of input contains two space-separated integers N and M. Next N lines of input contain M space-separated integers depicting the values of the matrix.

<b>Constraints:-</b>
3 &le;  N, M &le; 50
0 &le;  Matrix[][] &le; 1Print the number of strange elementsSample Input:-
3 2
1 1
0 1
1 1

Sample Output:-
2

Sample Input:-
4 4
1 0 1 1
0 1 1 1
1 1 1 1 
0 1 1 1

Sample Output:-
2

<b>Explanation 1:-</b>
(0, 1) and (2, 1), I have written this Solution Code: 
#include <bits/stdc++.h>


using namespace std;

#define MEM(a, b) memset(a, (b), sizeof(a))

#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)

#define IN(A, B, C) assert( B <= A && A <= C)

#define MP make_pair
#define FOR(i,a) for(int i=0;i<a;i++)

#define FOR1(i,j,a) for(int i=j;i<a;i++)

#define EB emplace_back

#define INF (int)1e9

#define EPS 1e-9

#define PI 3.1415926535897932384626433832795
#define max1 1000001
#define MOD 1000000007

#define read(type) readInt<type>()

#define out(x) cout<<x<<'\n'
#define out1(x) cout<<x<<" "
#define END cout<<'\n'
#define int long long
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
void fast(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}

signed main(){
   int n,m;
   cin>>n>>m;
   int a[n][m];
   FOR(i,n){
   FOR(j,m){
   cin>>a[i][j];}}
bool b[n];
bool c[m];
FOR(i,n){
b[i]=false;}
FOR(i,m){
c[i]=false;}
bool win;
for(int i=0;i<n;i++){
        win=true;
    for(int j=0;j<m;j++){
        if(a[i][j]==0){win=false;}
    }
    b[i]=win;
}

for(int i=0;i<m;i++){
        win=true;
    for(int j=0;j<n;j++){
        if(a[j][i]==0){win=false;}
    }
    c[i]=win;
}

int cnt=0;
for(int i=0;i<n;i++){
        win=true;
    for(int j=0;j<m;j++){
     if(b[i] && c[j]){cnt++;}
     //   if(a[j][i]==0){win=false;}
    }
}
out(cnt);
}

, In this Programming Language: C++, Now tell me if this Code is compilable or not?