Задачи на типы в C++. Часть 5
Дан следующий вектор:
auto xxx = std::vector<std::vector<std::vector<int>>>{
{{1, 2}, {3, 4}},
{{5, 6}, {7, 8}}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::map<std::string, std::vector<int>>{
{"first", {1, 2, 3}},
{"second", {4, 5, 6}}
};Явно укажите тип переменной.
Дана следующая строка:
auto xxx = std::map<int, std::string>{
{1, "apple"},
{2, "banana"},
{3, "orange"}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::map<std::string, std::vector<std::vector<int>>>{
{"matrix", {{1, 2}, {3, 4}}}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::map<std::string, std::vector<std::map<std::string, int>>>{
{"users", {{{"name", "alice"}, {"age", 25}}, {{"name", "bob"}, {"age", 30}}}}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::vector<std::vector<std::vector<bool>>>{
{{true, false}, {false, true}},
{{true, true}, {false, false}}
};Явно укажите тип переменной.
Дана следующая строка:
auto xxx = std::map<std::string, std::map<std::string, std::string>>{
{"settings", {{"theme", "dark"}, {"language", "russian"}}}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::vector<std::map<std::string, std::vector<std::vector<double>>>>{
{{"coordinates", {{1.0, 2.0}, {3.0, 4.0}}}}
};Явно укажите тип переменной.
Дан следующий вектор:
auto xxx = std::map<std::string, std::vector<std::vector<std::vector<char>>>>{
{"data", {{{'a', 'b'}, {'c', 'd'}}}}
};Явно укажите тип переменной.
Дана следующая строка:
auto xxx = std::map<int, std::set<std::string>>{
{1, {"a", "b", "c"}},
{2, {"d", "e", "f"}}
};Явно укажите тип переменной.