diff --git a/backtracking/minimax.cpp b/backtracking/minimax.cpp index 1e5a2ae91..5de9838d3 100644 --- a/backtracking/minimax.cpp +++ b/backtracking/minimax.cpp @@ -17,7 +17,7 @@ * @param scores saved numbers in vector * @return if maximum or not */ -int minimax(int depth, int node_index, bool is_max, std::vector* &scores, +int minimax(int depth, int node_index, bool is_max, const std::vector &scores, int height) { if (depth == height) { return scores[node_index];