Skip to main content
1 of 5

I am facing problem in init function. It shows up same error everytime that incorrect length 26, should be 18. I am using latest version of cs50

void init(void)
{ int fulld = 1;
for (int i = 0; i < d; i++)
{ for (int j = 0; j < d; j++)
{ board[i][j] = dd- fulld;
fulld ++;
} }
board[d-1][d-1] = 0;
if(d
d)%2 == 0)
{ board[d-1][d-2] = 2;
board[d-1][d-3] = 1;
} }