diff --git a/backtracking/graph_coloring.cpp b/backtracking/graph_coloring.cpp index f2ac572c5..0f82a77bf 100644 --- a/backtracking/graph_coloring.cpp +++ b/backtracking/graph_coloring.cpp @@ -30,11 +30,11 @@ namespace backtracking { */ template void printSolution(const std::array & color) { - std::cout << "Following are the assigned colors\n"; + std::cout << "Following are the assigned colors" << std::endl; for (auto &col : color) { std::cout << col; } - std::cout << "\n"; + std::cout << std::endl; } /** A utility function to check if the current color assignment is safe for