Тест · Контейнеры и итераторы · урок 4 из 11
Тест — operator[] у map
Что выведет программа?
#include <iostream>
#include <map>
#include <string>
int main() {
std::map<std::string, int> m{{"a", 1}};
int b = m["b"];
std::cout << b << ' ' << m.size() << '\n';
}