输入后没有输出。
#include <iostream>
#include <map>
using namespace std;
int main()
{
int n;
multimap<int, int> enter;
cin >> n;
for (int i = 0; i < n; i++)
{
pair<int, int> P;
cin >> P.first;
cin >> P.second;
}
for (auto it = enter.begin(); it != enter.end(); it++)
cout << (*it).first << ' ' << (*it).second << endl;
return 0;
}