#include <string>
#include <map>
#include <algorithm>
#include <iostream>

int main() {
    std::map<int, std::string> m {
        { 1, "one" },
        { 2, "two" },
        { 3, "three" },
        { 4, "four" },
        { 5, "five" },
        { 6, "six" },
        { 7, "seven" },
        { 8, "eight" },
        { 9, "nine" },
        { 10, "ten" },
    };

    auto from = m.end();
    // откатываемся назад на 5 элементов (возможно есть способ покрасивее)
    for (int i = 0; i < 5; i++) {
    	from--;
    }

    std::for_each(from, m.end(), [](auto&& pair) {
        std::cout << pair.first << ": " << pair.second << std::endl;
    });
}
