From 1ab5e4e56466a3a9b06c330c4e52cc7bb06699c3 Mon Sep 17 00:00:00 2001 From: Jxtopher <39927513+Jxtopher@users.noreply.github.com> Date: Fri, 9 Jul 2021 21:00:34 +0200 Subject: [PATCH] feat: Replace "\n" -> std::endl (#1530) Co-authored-by: David Leal --- backtracking/graph_coloring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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