I don't know where to fix : sooo my code is supposed to find the row where all elements are even, but it keeps showing it a bit wrong, can't really figure out where the problem is and how optimize my code.

    #include <iostream>
    using namespace std;
    int main ()
    {
    	int n;
    	cout<<"Kvadrat matriciin irembiig oruulnuu:"<<endl;
    	cin>>n;
    	int M[n][n];
    	for (int i=1; i<n+1; i++)
    	{
    		for (int j=1; j<n+1; j++)
    		{
    			cout<<"["<<i<<"]"<<"["<<j<<"]"<<" Bairshiltai Toog oruulnuu"<<endl;
    			cin>>M[i][j];
    		}
    	}
    	for (int i=1; i<n+1; i++)
    	{
    		bool Buh_Too_Tegsh=true;
    		for (int j=1; j<n+1; j++)
    		{
    			Buh_Too_Tegsh=M[i][j]%2==0;
    		}
    		if (Buh_Too_Tegsh)
    		{
    			cout<<"["<<i<<"]"<<" Mornii Toonuud tegsh"<<endl;
    		}
    
    	}
    }