Code related problem

in both the case ,output is same,why i am getting error

Hey @officialharshit1996
Yes both the statements are equivalent

I checked ur code in ur last raised doubt
Correction is in canweplace function

	for(int row=i;row<i+rn;row++)
	{
		for(int col=j;col<j+rn;col++)
		{
			if(su[row][col]==k)   //Here updated this statement
			return false;
		}
	}

If your doubt is resolved then please mark it so :slight_smile: