From 22d6b6632e5f16355b8fdc8b7432573e740d1c8d Mon Sep 17 00:00:00 2001 From: Sandipsinh Rathod Date: Fri, 11 Oct 2024 13:32:08 -0400 Subject: [PATCH] fix warns --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d36e003..e4841a2 100644 --- a/main.cpp +++ b/main.cpp @@ -247,7 +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 (ans[i + 2][j + 2].size() > length) { + if ((int)ans[i + 2][j + 2].size() > length) { length = ans[i + 2][j + 2].size(); } }