This error is shown while compiling(error is pointed to the last closing bracket of won function)-
error: control may reach end of non-void function [-Werror,-Wreturn-type].
here is my code for won()-
bool won(void)
{
// TODO
int i,j,c=1,k=0;
for(i=0;i<d;i++)
{
for(j=0;j<d;j++)
{
if(board[i][j]==c)
{
k++;
c++;
continue;
}
else
{
return false;
}
}
}
if(k==((d*d)-1))
{
return true;
}
}