The Washer That Appeared

What does this print?

std::map<std::string, int> inventory{{"bolt", 12}, {"nut", 40}};

int total = 0;
for (const std::string &part : {"bolt", "washer", "nut"}) {
    if (inventory[part] > 0) total += inventory[part];
}
std::cout << total << " " << inventory.size() << "\n";
A

It does not compile, because operator[] cannot be used in a read-only comparison

B

52 3

C

52 2

D

52 4