Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int N;
    cin >> N;
    std::vector<int> S(N);
    std::vector<int> J(3);
    J = {"AC","WA","TLE","RE"};
    vector<int> C(3);
    rep(i, N + 1){
	cin >> S(i);
	rep(m, 4){
	    if(S(i) == J(m)){
		C(m) += 1;
	    }
	}
    }
    rep(i, 4){
	cout << J(i) + "*" + C(i) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     J = {"AC","WA","TLE","RE"};
      |          ^~~~
      |          |
      |          const char*
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   initializing argument 1 of 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:10:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     J = {"AC","WA","TLE","RE"};
      |               ^~~~
      |               |
      |               const char*
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   initializing argument 1 of 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:10:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     J = {"AC","WA","TLE","RE"};
      |                    ^~~~~
      |                    |
      |                    const char*
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   initializing argument 1 of 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:10:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     J = {"AC","WA","TLE","RE"};
      |                          ^~~~
      |                          |
      |                          const char*
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   initializing argument 1 of 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:13:17: error: no match for call to '(std::vector<int>) (int&)'
   13 |         cin >> S(i);
      |                ~^~~
a.cc:15:17: error: no match for call to '(std::vector<int>) (int&)'
   15 |             if(S(i) == J(m)){
      |                ~^~~
a.cc:15:25: error: no match for call to '(std::vector<int>) (int&)'
   15 |             if(S(i) == J(m)){
      |                        ~^~~
a.cc:16:18: error: no match for call to '(std::vector<int>) (int&)'
   16 |                 C(m) += 1;
      |                 ~^~~
a.cc:21:18: error: no match for call to '(std::vector<int>) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                 ~^~~
a.cc:21:31: error: no match for call to '(std::vector<int>) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                              ~^~~