C++ map 为什么无法输出

输入后没有输出。

图片说明

#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;
}
    for (int i = 0; i < n; i++)
    {
        pair<int, int> P;
        cin >> P.first;
        cin >> P.second;
        enter.insert(P); //加上
    }