Language: C++

int main() {
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;

int main() {
  int N, M;
  cin >> N >> M;
  vector<pair<int,string>> submit(M);
  for (int i=0; i<M; i++) {
    int t1;
    string t2;
    cin >> t1 >> t2;
    submit.at(i) = make_pair(t1,t2);
  }
  
  int AC = 0;
  int WA = 0;
  vector<int> check(N,0);
  
  for (int i=0; i<M; i++) {
    if (check.at(submit.at(i).first - 1) == 0) {
      if (submit.at(i).second == "AC") {
        check.at(submit.at(i).first - 1) = 1;
        AC++;
      }
      else if (submit.at(i).second == "WA") {
        WA++;
      }
      
      else if (check.at(submit.at(i).first - 1) == 1) {
        continue;
      }
    }
  }
  
  cout << AC << " " << WA << endl;
}

Compiler output:
In file included from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:2:
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h: In function 'int main()':
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:308:1: error: 'namespace' definition is not allowed here
  308 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:341:1: error: 'namespace' definition is not allowed here
  341 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:345:1: error: 'namespace' definition is not allowed here
  345 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:534:1: error: 'namespace' definition is not allowed here
  534 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:573:1: error: 'namespace' definition is not allowed here
  573 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:604:1: error: 'namespace' definition is not allowed here
  604 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:828:1: error: 'namespace' definition is not allowed here
  828 | namespace __gnu_cxx
      | ^~~~~~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683:
/usr/include/assert.h:66:1: error: expected unqualified-id before string constant
   66 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/ctype.h:28:1: error: expected unqualified-id before string constant
   28 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/c++/14/cctype:62:1: error: 'namespace' definition is not allowed here
   62 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/cctype:85:1: error: 'namespace' definition is not allowed here
   85 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h:23:1: error: expected unqualified-id before string constant
   23 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/setjmp.h:27:1: error: expected unqualified-id before string constant
   27 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:39:
/usr/include/c++/14/csetjmp:55:1: error: 'namespace' definition is not allowed here
   55 | namespace std
      | ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:40:
/usr/include/c++/14/cstdarg:53:1: error: 'namespace' definition is not allowed here
   53 | namespace std
      | ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:55:8: error: expected unqualified-id before string constant
   55 | extern "C++"
      |        ^~~~~
/usr/include/stdlib.h:34:1: error: expected unqualified-id before string constant
   34 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:81,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42:
/usr/include/c++/14/bits/std_abs.h:46:8: error: expected unqualified-id before string constant
   46 | extern "C++"
      |        ^~~~~
/usr/include/c++/14/cstdlib:125:8: error: expected unqualified-id before string constant
  125 | extern "C++"
      |        ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:45:
/usr/include/c++/14/cstdint:48:1: error: 'namespace' definition is not allowed here
   48 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/bits/functexcept.h:42:15: error: expected '=' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/functexcept.h:42:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_algobase.h:60,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/functexcept.h:42:14: error: expected ';' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/functexcept.h:43:1: error: expected primary-expression before '{' token
   43 | {
      | ^
In file included from /usr/include/c++/14/bits/stl_algobase.h:61:
/usr/include/c++/14/bits/cpp_type_traits.h:68:8: error: expected unqualified-id before string constant
   68 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62:
/usr/include/c++/14/ext/type_traits.h:37:8: error: expected unqualified-id before string constant
   37 | extern "C++" {
      |        ^~~~~
/usr/include/c++/14/ext/numeric_traits.h:37:21: error: expected '=' before '__attribute__'
   37 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ext/numeric_traits.h:37:21: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_algobase.h:63:
/usr/include/c++/14/ext/numeric_traits.h:37:20: error: expected ';' before '__attribute__'
   37 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/14/ext/numeric_traits.h:38:1: error: expected primary-expression before '{' token
   38 | {
      | ^
/usr/include/c++/14/type_traits:65:15: error: expected '=' before '__attribute__'
   65 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:65:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_pair.h:60,
                 from /usr/include/c++/14/bits/stl_algobase.h:64:
/usr/include/c++/14/type_traits:65:14: error: expected ';' before '__attribute__'
   65 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/type_traits:66:1: error: expected primary-expression before '{' token
   66 | {
      | ^
/usr/include/c++/14/bits/move.h:40:15: error: expected '=' before '__attribute__'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/move.h:40:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_pair.h:61:
/usr/include/c++/14/bits/move.h:40:14: error: expected ';' before '__attribute__'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/move.h:41:1: error: expected primary-expression before '{' token
   41 | {
      | ^
/usr/include/c++/14/bits/utility.h:43:15: error: expected '=' before '__attribute__'
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/utility.h:43:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_pair.h:62:
/usr/include/c++/14/bits/utility.h:43:14: error: expected ';' before '__attribute__'
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/utility.h:44:1: error: expected primary-expression before '{' token
   44 | {
      | ^
/usr/include/c++/14/bits/stl_pair.h:68:15: error: expected '=' before '__attribute__'
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:68:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/bits/stl_pair.h:68:14: error: expected ';' before '__attribute__'
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/stl_pair.h:69:1: error: expected primary-expression before '{' token
   69 | {
      | ^
/usr/include/c++/14/bits/stl_iterator_base_types.h:74:15: error: expected '=' before '__attribute__'
   74 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_types.h:74:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_algobase.h:65:
/usr/include/c++/14/bits/stl_iterator_base_types.h:74:14: error: expected ';' before '__attribute__'
   74 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/stl_iterator_base_types.h:75:1: error: expected primary-expression before '{' token
   75 | {
      | ^
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:68:15: error: expected '=' before '__attribute__'
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:68:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_algobase.h:66:
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:68:14: error: expected ';' before '__attribute__'
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/stl_iterator_base_funcs.h:69:1: error: expected primary-expression before '{' token
   69 | {
      | ^
/usr/include/c++/14/bits/ptr_traits.h:42:15: error: expected '=' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ptr_traits.h:42:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/stl_iterator.h:67,
                 from /usr/include/c++/14/bits/stl_algobase.h:67:
/usr/include/c++/14/bits/ptr_traits.h:42:14: error: expected ';' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/ptr_traits.h:43:1: error: expected primary-expression before '{' token
   43 | {
      | ^
/usr/include/c++/14/bits/stl_iterator.