Language: C++

#include<iostream>
using namespace std;
int main(){
    
    int c1=0,c2=0,c3=0,c4=0,n;
    int n;
    cin>>n;
    string ch;
    for(int i=0; i<n; i++)
    {
        cin>>ch;
        if(ch=="AC")
          c1++;
        else if(ch=="WA")
          c2++;
        else if(ch=="TLE")
          c3++;
        else if(ch=="RE")
          c4++;
    }
    cout<<"AC x "<<c1<<endl;
    cout<<"WA x "<<c2<<endl;
    cout<<"TLE x "<<c3<<endl;
    cout<<"RE x "<<c4<<endl;
    return 0;

Compiler output:
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |    
      | ^
a.cc:4:3: error: extended character   is not valid in an identifier
    4 |    
      |   ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |     int c1=0,c2=0,c3=0,c4=0,n;
      | ^
a.cc:5:3: error: extended character   is not valid in an identifier
    5 |     int c1=0,c2=0,c3=0,c4=0,n;
      |   ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |     int n;
      | ^
a.cc:6:3: error: extended character   is not valid in an identifier
    6 |     int n;
      |   ^
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |     cin>>n;
      | ^
a.cc:7:3: error: extended character   is not valid in an identifier
    7 |     cin>>n;
      |   ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |     string ch;
      | ^
a.cc:8:3: error: extended character   is not valid in an identifier
    8 |     string ch;
      |   ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |     for(int i=0; i<n; i++)
      | ^
a.cc:9:3: error: extended character   is not valid in an identifier
    9 |     for(int i=0; i<n; i++)
      |   ^
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |         cin>>ch;
      | ^
a.cc:11:3: error: extended character   is not valid in an identifier
   11 |         cin>>ch;
      |   ^
a.cc:11:5: error: extended character   is not valid in an identifier
   11 |         cin>>ch;
      |     ^
a.cc:11:7: error: extended character   is not valid in an identifier
   11 |         cin>>ch;
      |       ^
a.cc:12:1: error: extended character   is not valid in an identifier
   12 |         if(ch=="AC")
      | ^
a.cc:12:3: error: extended character   is not valid in an identifier
   12 |         if(ch=="AC")
      |   ^
a.cc:12:5: error: extended character   is not valid in an identifier
   12 |         if(ch=="AC")
      |     ^
a.cc:12:7: error: extended character   is not valid in an identifier
   12 |         if(ch=="AC")
      |       ^
a.cc:13:1: error: extended character   is not valid in an identifier
   13 |           c1++;
      | ^
a.cc:13:3: error: extended character   is not valid in an identifier
   13 |           c1++;
      |   ^
a.cc:13:5: error: extended character   is not valid in an identifier
   13 |           c1++;
      |     ^
a.cc:13:7: error: extended character   is not valid in an identifier
   13 |           c1++;
      |       ^
a.cc:14:1: error: extended character   is not valid in an identifier
   14 |         else if(ch=="WA")
      | ^
a.cc:14:3: error: extended character   is not valid in an identifier
   14 |         else if(ch=="WA")
      |   ^
a.cc:14:5: error: extended character   is not valid in an identifier
   14 |         else if(ch=="WA")
      |     ^
a.cc:14:7: error: extended character   is not valid in an identifier
   14 |         else if(ch=="WA")
      |       ^
a.cc:15:1: error: extended character   is not valid in an identifier
   15 |           c2++;
      | ^
a.cc:15:3: error: extended character   is not valid in an identifier
   15 |           c2++;
      |   ^
a.cc:15:5: error: extended character   is not valid in an identifier
   15 |           c2++;
      |     ^
a.cc:15:7: error: extended character   is not valid in an identifier
   15 |           c2++;
      |       ^
a.cc:16:1: error: extended character   is not valid in an identifier
   16 |         else if(ch=="TLE")
      | ^
a.cc:16:3: error: extended character   is not valid in an identifier
   16 |         else if(ch=="TLE")
      |   ^
a.cc:16:5: error: extended character   is not valid in an identifier
   16 |         else if(ch=="TLE")
      |     ^
a.cc:16:7: error: extended character   is not valid in an identifier
   16 |         else if(ch=="TLE")
      |       ^
a.cc:17:1: error: extended character   is not valid in an identifier
   17 |           c3++;
      | ^
a.cc:17:3: error: extended character   is not valid in an identifier
   17 |           c3++;
      |   ^
a.cc:17:5: error: extended character   is not valid in an identifier
   17 |           c3++;
      |     ^
a.cc:17:7: error: extended character   is not valid in an identifier
   17 |           c3++;
      |       ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |         else if(ch=="RE")
      | ^
a.cc:18:3: error: extended character   is not valid in an identifier
   18 |         else if(ch=="RE")
      |   ^
a.cc:18:5: error: extended character   is not valid in an identifier
   18 |         else if(ch=="RE")
      |     ^
a.cc:18:7: error: extended character   is not valid in an identifier
   18 |         else if(ch=="RE")
      |       ^
a.cc:19:1: error: extended character   is not valid in an identifier
   19 |           c4++;
      | ^
a.cc:19:3: error: extended character   is not valid in an identifier
   19 |           c4++;
      |   ^
a.cc:19:5: error: extended character   is not valid in an identifier
   19 |           c4++;
      |     ^
a.cc:19:7: error: extended character   is not valid in an identifier
   19 |           c4++;
      |       ^
a.cc:20:1: error: extended character   is not valid in an identifier
   20 |     }
      | ^
a.cc:20:3: error: extended character   is not valid in an identifier
   20 |     }
      |   ^
a.cc:21:1: error: extended character   is not valid in an identifier
   21 |     cout<<"AC x "<<c1<<endl;
      | ^
a.cc:21:3: error: extended character   is not valid in an identifier
   21 |     cout<<"AC x "<<c1<<endl;
      |   ^
a.cc:22:1: error: extended character   is not valid in an identifier
   22 |     cout<<"WA x "<<c2<<endl;
      | ^
a.cc:22:3: error: extended character   is not valid in an identifier
   22 |     cout<<"WA x "<<c2<<endl;
      |   ^
a.cc:23:1: error: extended character   is not valid in an identifier
   23 |     cout<<"TLE x "<<c3<<endl;
      | ^
a.cc:23:3: error: extended character   is not valid in an identifier
   23 |     cout<<"TLE x "<<c3<<endl;
      |   ^
a.cc:24:1: error: extended character   is not valid in an identifier
   24 |     cout<<"RE x "<<c4<<endl;
      | ^
a.cc:24:3: error: extended character   is not valid in an identifier
   24 |     cout<<"RE x "<<c4<<endl;
      |   ^
a.cc:25:1: error: extended character   is not valid in an identifier
   25 |     return 0;
      | ^
a.cc:25:3: error: extended character   is not valid in an identifier
   25 |     return 0;
      |   ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U000000a0' was not declared in this scope
    4 |    
      | ^
a.cc:6:2: error: expected ';' before '\U000000a0'
    6 |     int n;
      |  ^~
      |  ;
a.cc:7:2: error: expected ';' before '\U000000a0'
    7 |     cin>>n;
      |  ^~
      |  ;
a.cc:8:2: error: expected ';' before '\U000000a0'
    8 |     string ch;
      |  ^~
      |  ;
a.cc:9:2: error: expected ';' before '\U000000a0'
    9 |     for(int i=0; i<n; i++)
      |  ^~
      |  ;
a.cc:9:18: error: 'i' was not declared in this scope
    9 |     for(int i=0; i<n; i++)
      |                  ^
a.cc:9:20: error: 'n' was not declared in this scope
    9 |     for(int i=0; i<n; i++)
      |                    ^
a.cc:21:2: error: expected ';' before '\U000000a0'
   21 |     cout<<"AC x "<<c1<<endl;
      |  ^~
      |  ;
a.cc:22:2: error: expected ';' before '\U000000a0'
   22 |     cout<<"WA x "<<c2<<endl;
      |  ^~
      |  ;
a.cc:23:2: error: expected ';' before '\U000000a0'
   23 |     cout<<"TLE x "<<c3<<endl;
      |  ^~
      |  ;
a.cc:24:2: error: expected ';' before '\U000000a0'
   24 |     cout<<"RE x "<<c4<<endl;
      |  ^~
      |  ;
a.cc:25:2: error: expected ';' before '\U000000a0'
   25 |     return 0;
      |  ^~
      |  ;
a.cc:25:14: error: expected '}' at end of input
   25 |     return 0;
      |              ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^