Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main()
{
   int N;
   string str;
   map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
   map<string, int>::iterator itr1;
   cin>>N;
   while(N--) {
       cin>>str;
       itr1 = mp1.find(str);
       itr1->second ++;
   }
   for(itr1 = mp1.begin(); itr1!=mp1.end(); ++itr1) {
       cout<<itr1->first<<" X "<<itr1->second<<endl;
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'map' was not declared in this scope
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |    ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <vector>
  +++ |+#include <map>
    3 | #include <string>
a.cc:10:14: error: expected primary-expression before ',' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |              ^
a.cc:10:16: error: expected primary-expression before 'int'
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                ^~~
a.cc:10:33: error: expected primary-expression before ',' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                 ^
a.cc:10:34: error: expected primary-expression before '{' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                  ^
a.cc:10:42: error: expected primary-expression before ',' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                          ^
a.cc:10:43: error: expected primary-expression before '{' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                           ^
a.cc:10:52: error: expected primary-expression before ',' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                                    ^
a.cc:10:53: error: expected primary-expression before '{' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                                     ^
a.cc:10:61: error: expected primary-expression before ')' token
   10 |    map<string, int> mp1({"AC",0},{"WA",0},{"TLE",0},{"RE",0});
      |                                                             ^
a.cc:11:14: error: expected primary-expression before ',' token
   11 |    map<string, int>::iterator itr1;
      |              ^
a.cc:11:16: error: expected primary-expression before 'int'
   11 |    map<string, int>::iterator itr1;
      |                ^~~
a.cc:15:8: error: 'itr1' was not declared in this scope
   15 |        itr1 = mp1.find(str);
      |        ^~~~
a.cc:15:15: error: 'mp1' was not declared in this scope
   15 |        itr1 = mp1.find(str);
      |               ^~~
a.cc:18:8: error: 'itr1' was not declared in this scope
   18 |    for(itr1 = mp1.begin(); itr1!=mp1.end(); ++itr1) {
      |        ^~~~
a.cc:18:15: error: 'mp1' was not declared in this scope
   18 |    for(itr1 = mp1.begin(); itr1!=mp1.end(); ++itr1) {
      |               ^~~