Intégration du Logger

This commit is contained in:
Valentin Moguérou 2024-04-16 01:05:20 +02:00
parent 9f7f22f8a8
commit 3e6a82f63b
2 changed files with 3 additions and 3 deletions

View File

@ -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]);

View File

@ -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);