From 3e6a82f63b1e726c3cac5f2f8a764ba1d72ae1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Tue, 16 Apr 2024 01:05:20 +0200 Subject: [PATCH] =?UTF-8?q?Int=C3=A9gration=20du=20Logger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/algorithm.c | 2 +- src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithm.c b/src/algorithm.c index 6480762..8b169cf 100644 --- a/src/algorithm.c +++ b/src/algorithm.c @@ -1129,7 +1129,7 @@ void aux_2(creneau* edt, int len_edt, colleur* chads, int len_chads, int n_group info("Interrupting early due to a perfect score achieved"); } else { info("100%% Completed, best score is %d/%d (without skip penalty) with %d skipped colle(s)", max_score+global_skipped*30, 100*n_groups, global_skipped); - info("Most screwed group is %d with a score of %d/100\n", screwed_group, global_min); + info("Most screwed group is %d with a score of %d/100", screwed_group, global_min); info("Stats for all groups are :"); for(int i = 0; i < n_groups; i++) { info("Group %d : %d/100", i+1, group_stats[i]); diff --git a/src/main.c b/src/main.c index 208ea9f..e85cc0d 100644 --- a/src/main.c +++ b/src/main.c @@ -45,9 +45,9 @@ int main(int argc, char **argv) { int n_groups = str_to_int(argv[6]); char* path_output = argv[7]; - trace("%d %d %d %d\n", n_creneaux, n_colleurs, n_weeks, n_groups); + trace("%d %d %d %d", n_creneaux, n_colleurs, n_weeks, n_groups); - info("Starting\n"); + info("Starting"); srand(time(NULL)); //creneau* edt = import_creneaux("file.txt", 76);