fixed bench

This commit is contained in:
Maoake Teriierooiterai
2026-01-17 16:06:12 +01:00
parent e2cbea4df9
commit ae1a91c7c9
2 changed files with 768 additions and 0 deletions

3
main.c
View File

@@ -29,6 +29,9 @@ static int push_swap(char **tab, int len, int mod)
indexer(stacks);
if (check_order(stacks->a))
{
flags(0, pos_bench(tab, mod), tab, stacks);
if (stacks->bench == 1)
print_bench(stacks);
free_all(stacks);
return (0);
}