About MIME Type practice timeouts bug

Hello, the MIME Type code practice Test Case 5, which is impossible to past, I was using C++ and there is no way to optimize the code as I had been trying to remove all the code with only the input statements and the output statements(which output the input) left and it was still telling me “Process has timed out. This may mean that your solution is not optimized enough to handle some cases.”, it seems that when I’m trying to output a value from a variable in test case 5, CodinGame will tell me “Process has timed out…”

#include <iostream>
#include <map>

using namespace std;

/**
 * Auto-generated code below aims at helping you parse
 * the standard input according to the problem statement.
 **/
int main()
{
int N; // Number of elements which make up the association table.
cin >> N; cin.ignore();
int Q; // Number Q of file names to be analyzed.
cin >> Q; cin.ignore();
map<string, string> mimeType;
for (int i = 0; i < N; i++) {
    string EXT; // file extension
    string MT; // MIME type.
    cin >> EXT >> MT; cin.ignore();
}
for (int i = 0; i < Q; i++) {
    string FNAME = ""; // One file name per line.
    getline(cin, FNAME);
    cout << FNAME << endl;
    
}

}

I can conform this. My old accepted code timeout the testcase 5 too.
But submitting it can get 100% score