chessboard.cpp: In function 'void Ans2(int, int)':
chessboard.cpp:43:14: error: 'x' was not declared in this scope; did you mean 'x2'?
43 | cnt[(x+y)%2]++;
| ^
| x2
chessboard.cpp:43:16: error: 'y' was not declared in this scope; did you mean 'y2'?
43 | cnt[(x+y)%2]++;
| ^
| y2
chessboard.cpp:42:14: warning: unused variable 'Num' [-Wunused-variable]
42 | bool Num = Get(y2, x2);
| ^~~
chessboard.cpp:45:31: error: 'Cnt' was not declared in this scope; did you mean 'cnt'?
45 | cout << min((N * N) / 2 - Cnt[1] + Cnt[0], (N * N) / 2 + 1 - Cnt[0] + Cnt[1]);
| ^~~
| cnt