Код: Выделить всё
std::set combinations = {{{0, 0}, {0, 1}, {0, 2}}, {{1, 0}, {1, 1}, {1, 2}},
{{2, 0}, {2, 1}, {2, 2}}, {{0, 0}, {1, 0}, {2, 0}},
{{0, 1}, {1, 1}, {2, 1}}, {{0, 2}, {1, 2}, {2, 2}},
{{0, 0}, {1, 1}, {2, 2}}, {{0, 2}, {1, 1}, {2, 0}}};
< /code>
И есть еще один набор пар: < /p>
std::set set_of_pairs = {{0, 0}, {0, 1}, {1, 1}, {2, 1}, {2, 2}};
Подробнее здесь: https://stackoverflow.com/questions/797 ... t-of-pairs