Language: C++

using namespace std;
int main()
{
 int n;
  cin>>n;
  string s1="AC",s2="WA",s3="TLE",s4="RE";
  string s[n];
  int i,c1=0,c2=0,c3=0,c4=0;
  for(i=0;i<n;i++)
  {
  
      cin>>s[i];
      if(s[i]==s1)
        c1++;
      else if(s[i]==s2)
        c2++;
      else if(s[i]==s3)
        c3++;
      else if(s[i]==s4)
        c4++;       
  
  }
  cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
  endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s1="AC",s2="WA",s3="TLE",s4="RE";
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:7:9: error: expected ';' before 's'
    7 |   string s[n];
      |         ^~
      |         ;
a.cc:12:12: error: 's' was not declared in this scope
   12 |       cin>>s[i];
      |            ^
a.cc:13:16: error: 's1' was not declared in this scope; did you mean 'c1'?
   13 |       if(s[i]==s1)
      |                ^~
      |                c1
a.cc:15:21: error: 's2' was not declared in this scope; did you mean 'c2'?
   15 |       else if(s[i]==s2)
      |                     ^~
      |                     c2
a.cc:17:21: error: 's3' was not declared in this scope; did you mean 'c3'?
   17 |       else if(s[i]==s3)
      |                     ^~
      |                     c3
a.cc:19:21: error: 's4' was not declared in this scope; did you mean 'c4'?
   19 |       else if(s[i]==s4)
      |                     ^~
      |                     c4
a.cc:23:3: error: 'cout' was not declared in this scope
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |   ^~~~
a.cc:23:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:9: error: 's1' was not declared in this scope; did you mean 'c1'?
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |         ^~
      |         c1
a.cc:23:27: error: 'endl' was not declared in this scope
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:23:33: error: 's2' was not declared in this scope; did you mean 'c2'?
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |                                 ^~
      |                                 c2
a.cc:23:57: error: 's3' was not declared in this scope; did you mean 'c3'?
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |                                                         ^~
      |                                                         c3
a.cc:23:81: error: 's4' was not declared in this scope; did you mean 'c4'?
   23 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |                                                                                 ^~
      |                                                                                 c4
a.cc:24:8: error: expected '}' at end of input
   24 |   endl;
      |        ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^