in both the case ,output is same,why i am getting error
Code related problem
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