Language: C++

#include <iostream>
#include <vector>
#include <stdio.h>
#include <string>
using namespace std;

int main() {
  int N;

  cin >> N;
  vector<string> str(N);
  for (int i = 0; i < N; i++) {
    cin >> str.at(i);
  }

  string stdString(str.begin(), str.end());

  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0;
  for (int i = 0; i < N; i++) {
    if (str.at(i) == "AC") {
      AC += 1;
    }
    else if (str.at(i) == "WA") {
      WA += 1;
    }
    else if (str.at(i) == "TLE") {
      TLE += 1;
    }
    else {
      RE += 1;
    }
  }

  cout << "AC × " << AC << endl;
  cout << "WA × " << WA << endl;
  cout << "TLE × " << TLE << endl;
  cout << "RE × " << RE << endl;
}

Compiler output:
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h: In instantiation of 'static void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars(_CharT*, _Iterator, _Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]':
/usr/include/c++/14/bits/basic_string.tcc:247:21:   required from 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator, std::forward_iterator_tag) [with _FwdIterator = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  247 |         this->_S_copy_chars(_M_data(), __beg, __end);
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:770:16:   required from 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >; <template-parameter-2-2> = void; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  770 |           _M_construct(__beg, __end, std::__iterator_category(__beg));
      |           ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:16:42:   required from here
   16 |   string stdString(str.begin(), str.end());
      |                                          ^
/usr/include/c++/14/bits/basic_string.h:466:32: error: no matching function for call to 'std::char_traits<char>::assign(char&, std::__cxx11::basic_string<char>&)'
  466 |             traits_type::assign(*__p, *__k1); // These types are off.
      |             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/ios:42:
/usr/include/c++/14/bits/char_traits.h:343:7: note: candidate: 'static constexpr void std::char_traits<char>::assign(char_type&, const char_type&)'
  343 |       assign(char_type& __c1, const char_type& __c2) _GLIBCXX_NOEXCEPT
      |       ^~~~~~
/usr/include/c++/14/bits/char_traits.h:343:48: note:   no known conversion for argument 2 from 'std::__cxx11::basic_string<char>' to 'const std::char_traits<char>::char_type&' {aka 'const char&'}
  343 |       assign(char_type& __c1, const char_type& __c2) _GLIBCXX_NOEXCEPT
      |                               ~~~~~~~~~~~~~~~~~^~~~
/usr/include/c++/14/bits/char_traits.h:431:7: note: candidate: 'static std::char_traits<char>::char_type* std::char_traits<char>::assign(char_type*, std::size_t, char_type)'
  431 |       assign(char_type* __s, size_t __n, char_type __a)
      |       ^~~~~~
/usr/include/c++/14/bits/char_traits.h:431:7: note:   candidate expects 3 arguments, 2 provided