Skip to content

Commit 1ab5e4e

Browse files
feat: Replace "\n" -> std::endl (TheAlgorithms#1530)
Co-authored-by: David Leal <halfpacho@gmail.com>
1 parent 34556ad commit 1ab5e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backtracking/graph_coloring.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ namespace backtracking {
3030
*/
3131
template <size_t V>
3232
void printSolution(const std::array <int, V>& color) {
33-
std::cout << "Following are the assigned colors\n";
33+
std::cout << "Following are the assigned colors" << std::endl;
3434
for (auto &col : color) {
3535
std::cout << col;
3636
}
37-
std::cout << "\n";
37+
std::cout << std::endl;
3838
}
3939

4040
/** A utility function to check if the current color assignment is safe for

0 commit comments

Comments
 (0)