diff --git a/TP1/C-Cpp/src/mysok.cpp b/TP1/C-Cpp/src/mysok.cpp index 8b5c9df..65910f1 100644 --- a/TP1/C-Cpp/src/mysok.cpp +++ b/TP1/C-Cpp/src/mysok.cpp @@ -100,13 +100,13 @@ void sok_board_t::load(char *_file) { } bool is_in_history(Node current, std::vector history) { - for (int i = 0; i < history.size(); ++i) { + for (ulong i = 0; i < history.size(); ++i) { Node noeud = history[i]; int c = 0; for (int l = 0; l < NBL; ++l) { for (int m = 0; m < NBC; ++m) { - if (current.state.board[l][m] != current.state.board[l][m]) + if (current.state.board[l][m] != noeud.state.board[l][m]) c++; } }