fix warns

This commit is contained in:
Sandipsinh Rathod 2024-10-11 13:32:32 -04:00
parent 22d6b6632e
commit 57aa6a7300
No known key found for this signature in database

@ -247,9 +247,7 @@ void printBoard(char **board, int x, int y) {
for (int i = 0; i < x; ++i) {
int length = 2 + (i >= 10 ? 2 : 1);
for(int j = 0; j < y; ++j) {
if ((int)ans[i + 2][j + 2].size() > length) {
length = ans[i + 2][j + 2].size();
}
length = max(length, (int)ans[i + 2][j + 2].size());
}
maxLength = max(maxLength, length);
}