#include<string>
//获取一行字符串的输出,
//如果输入中有空格,那么cin>>s,无法读取空格后的字符
string s;
getline(cin,s);
cout>>s;
//string -> int
string a = "-123";
int b = stoi(a);
//vector注意事项
vector<int> res;
//在res最后添加数字123
res.push_back(123);
//res的遍历
for(int i = 0;i<res.size();i++)
cout<<res[i];
//一维的vector反转
//利用reverse函数
reverse(temp.begin(), temp.end())
unordered_map<string,vector<string>> map;
for(string& str : strs){
string key = str;
sort(key.begin(),key.end());
map[key].emplace_back(str);
}
vector<vector<string>> res;
for(auto it = map.begin(); it != map.end(); it++){
res.emplace_back(it->second);
}
return res;