以下C++代码的输出结果是什么?
#include #include
void func(int key, std::map& m) {
m[key] = "found";}
int main() {
std::map m = {{1, "one"}, {2, "two"}};
func(3, m);
for (const auto& p : m) {
std::cout << p.first << ' ' << p.second << ' ';
}
return 0;}