Language: C++

include <bits/stdc++.h>
using namespace std;

#define ll long long
#define ar array

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;

template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;

#define all(c) (c).begin(), (c).end()
#define sz(x) (int)(x).size()

#define F_OR(i, a, b, s) for (int i = (a); ((s) > 0 ? i < (b) : i > (b)); i += (s))
#define F_OR1(e) F_OR(i, 0, e, 1)
#define F_OR2(i, e) F_OR(i, 0, e, 1)
#define F_OR3(i, b, e) F_OR(i, b, e, 1)
#define F_OR4(i, b, e, s) F_OR(i, b, e, s)
#define GET5(a, b, c, d, e, ...) e
#define F_ORC(...) GET5(__VA_ARGS__, F_OR4, F_OR3, F_OR2, F_OR1)
#define FOR(...) F_ORC(__VA_ARGS__)(__VA_ARGS__)

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int n;
    cin >> n;
    string s[n];
    int ac = 0;
    int wa = 0;
    int tle = 0;
    int re = 0;
    for(int i=0; i<n; ++i){
        cin >> s[i];
        if(s[i] == 'AC')
            ac++;
        else if(s[i] == 'WA')
            wa++;
        else if(s[i] == 'TLE')
            tle++;
        else if(s[i] == 'RE')
            re++;
    }

    cout << "AC x " << ac << "\n";
    cout << "WA x " << wa << "\n";
    cout << "TLE x " << tle << "\n";
    cout << "RE x " << re << "\n";

}


Compiler output:
a.cc:38:20: warning: multi-character character constant [-Wmultichar]
   38 |         if(s[i] == 'AC')
      |                    ^~~~
a.cc:40:25: warning: multi-character character constant [-Wmultichar]
   40 |         else if(s[i] == 'WA')
      |                         ^~~~
a.cc:42:25: warning: multi-character character constant [-Wmultichar]
   42 |         else if(s[i] == 'TLE')
      |                         ^~~~~
a.cc:44:25: warning: multi-character character constant [-Wmultichar]
   44 |         else if(s[i] == 'RE')
      |                         ^~~~
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:11:55: error: 'less' was not declared in this scope; did you mean 'std::less'?
   11 | template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
      |                                                       ^~~~
      |                                                       std::less
In file included from /usr/include/c++/14/bits/unique_ptr.h:38,
                 from /usr/include/c++/14/memory:78,
                 from /usr/include/c++/14/ext/pb_ds/detail/standard_policies.hpp:44,
                 from /usr/include/c++/14/ext/pb_ds/assoc_container.hpp:47,
                 from a.cc:7:
/usr/include/c++/14/bits/stl_function.h:356:12: note: 'std::less' declared here
  356 |     struct less;
      |            ^~~~
a.cc:11:61: error: template argument 3 is invalid
   11 | template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
      |                                                             ^
a.cc: In function 'int main()':
a.cc:26:9: error: 'ios' has not been declared
   26 |         ios::sync_with_stdio(0);
      |         ^~~
a.cc:27:9: error: 'cin' was not declared in this scope; did you mean 'sin'?
   27 |         cin.tie(0);
      |         ^~~
      |         sin
a.cc:31:5: error: 'string' was not declared in this scope
   31 |     string s[n];
      |     ^~~~~~
a.cc:31:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/bits/shared_ptr.h:52,
                 from /usr/include/c++/14/memory:80:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/stdexcept:39,
                 from /usr/include/c++/14/ext/pb_ds/exception.hpp:45,
                 from /usr/include/c++/14/ext/pb_ds/hash_policy.hpp:48,
                 from /usr/include/c++/14/ext/pb_ds/detail/standard_policies.hpp:45:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:37:16: error: 's' was not declared in this scope
   37 |         cin >> s[i];
      |                ^
a.cc:48:5: error: 'cout' was not declared in this scope
   48 |     cout << "AC x " << ac << "\n";
      |     ^~~~