Функция next_permutation вычисляет полное расположение

NoSuchKey

рекомендация

отblog.csdn.net/qq_43341057/article/details/106059587