This commit is contained in:
Aelita4 2022-05-16 15:36:41 +02:00
parent 5a3531337e
commit e658b49225
1 changed files with 1 additions and 0 deletions

View File

@ -95,5 +95,6 @@ void createSortedList(list<int>& lista, int tab[], int n) {
break;
}
}
if (it == lista.end()) lista.push_back(tab[i]);
}
}