#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
int a[3][3];
int b[3][3]={0};
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
cin>>a[i][j];
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
b[i-1][j]+=a[i][j];
b[i+1][j]+=a[i][j];
b[i][j+1]+=a[i][j];
b[i][j]+=a[i][j];
b[i][j-1]+=a[i][j];
}
}
for(int i=0;i<3;i++)
{
for(int j=0;j<3;j++)
{
if(b[i][j]%2==0)
{
cout<<"1";
}else{
cout<<"0";
}
}
cout<<"\n";
}
}
only the sample case 1 is running can u tell me the problem with my code please?