Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n; cin>>n;
  unordered_map<int,int> mp;
  for(int i=0;i<n;i++){
    string s;cin>>s;
    mp[s]++;
  }
  cout<<"AC x "<<mp["AC"]<<endl;
  cout<<"WA x "<<mp["WA"]<<endl;
  cout<<"TLE x "<<mp["TLE"]<<endl;
  cout<<"RE x "<<mp["RE"]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: no match for 'operator[]' (operand types are 'std::unordered_map<int, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    8 |     mp[s]++;
      |       ^
In file included from /usr/include/c++/14/unordered_map:41,
                 from /usr/include/c++/14/functional:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/unordered_map.h:987:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]'
  987 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:987:34: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const std::unordered_map<int, int>::key_type&' {aka 'const int&'}
  987 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/unordered_map.h:991:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]'
  991 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:991:29: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::unordered_map<int, int>::key_type&&' {aka 'int&&'}
  991 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
a.cc:10:20: error: ambiguous overload for 'operator[]' (operand types are 'std::unordered_map<int, int>' and 'const char [3]')
   10 |   cout<<"AC x "<<mp["AC"]<<endl;
      |                    ^
/usr/include/c++/14/bits/unordered_map.h:987:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  987 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:987:7: note:   conversion of argument 1 would be ill-formed:
a.cc:10:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   10 |   cout<<"AC x "<<mp["AC"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*
/usr/include/c++/14/bits/unordered_map.h:991:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  991 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:991:7: note:   conversion of argument 1 would be ill-formed:
a.cc:10:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   10 |   cout<<"AC x "<<mp["AC"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*
a.cc:11:20: error: ambiguous overload for 'operator[]' (operand types are 'std::unordered_map<int, int>' and 'const char [3]')
   11 |   cout<<"WA x "<<mp["WA"]<<endl;
      |                    ^
/usr/include/c++/14/bits/unordered_map.h:987:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  987 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:987:7: note:   conversion of argument 1 would be ill-formed:
a.cc:11:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   11 |   cout<<"WA x "<<mp["WA"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*
/usr/include/c++/14/bits/unordered_map.h:991:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  991 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:991:7: note:   conversion of argument 1 would be ill-formed:
a.cc:11:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   11 |   cout<<"WA x "<<mp["WA"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*
a.cc:12:21: error: ambiguous overload for 'operator[]' (operand types are 'std::unordered_map<int, int>' and 'const char [4]')
   12 |   cout<<"TLE x "<<mp["TLE"]<<endl;
      |                     ^
/usr/include/c++/14/bits/unordered_map.h:987:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  987 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:987:7: note:   conversion of argument 1 would be ill-formed:
a.cc:12:22: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   12 |   cout<<"TLE x "<<mp["TLE"]<<endl;
      |                      ^~~~~
      |                      |
      |                      const char*
/usr/include/c++/14/bits/unordered_map.h:991:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  991 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:991:7: note:   conversion of argument 1 would be ill-formed:
a.cc:12:22: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   12 |   cout<<"TLE x "<<mp["TLE"]<<endl;
      |                      ^~~~~
      |                      |
      |                      const char*
a.cc:13:20: error: ambiguous overload for 'operator[]' (operand types are 'std::unordered_map<int, int>' and 'const char [3]')
   13 |   cout<<"RE x "<<mp["RE"]<<endl;
      |                    ^
/usr/include/c++/14/bits/unordered_map.h:987:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](const key_type&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  987 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:987:7: note:   conversion of argument 1 would be ill-formed:
a.cc:13:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   13 |   cout<<"RE x "<<mp["RE"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*
/usr/include/c++/14/bits/unordered_map.h:991:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::mapped_type& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator[](key_type&&) [with _Key = int; _Tp = int; _Hash = std::hash<int>; _Pred = std::equal_to<int>; _Alloc = std::allocator<std::pair<const int, int> >; mapped_type = int; key_type = int]' (near match)
  991 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/unordered_map.h:991:7: note:   conversion of argument 1 would be ill-formed:
a.cc:13:21: error: invalid conversion from 'const char*' to 'std::unordered_map<int, int>::key_type' {aka 'int'} [-fpermissive]
   13 |   cout<<"RE x "<<mp["RE"]<<endl;
      |                     ^~~~
      |                     |
      |                     const char*