错误 C2661 “std::pair<const std::string,int>::pair”: 没有重载函数接受 2 个参数 c++
#include
#include
using namespace std;
int main()
{
string key = "123";
int value = 4;
unordered_map <string, int>my;
my.emplace(key, value);
my.emplace(1, "jia");
cout << my["jia"];
cout << endl;
}

没有重载函数接受 2 个参数
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-