Language: C++

#include <bits/stdc++.h>
#include <string>
//#include <boost/multiprecision/cpp_int.hpp>
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL);
#define llu  long long 
#define fp cout<<fixed<<setprecision(9);
#define ifor(j,n) for(int i=j ;i<n;i++)
#define jfor(k,n) for(ll j=k ;j<n;j++)
#define pb push_back
#define mod 1000000007
using namespace std;
//using namespace boost::multiprecision;

//Compiler version g++ 6.3.0
int search (vector <long long> v,long long m,int n) 
{ 

    int start = 0;
    int ans = -1; 
    while (start <=n) 
    { 
     int mid = (start + n) / 2;
     if (v[mid] <= m) 
         start = mid + 1;
     else
   { 
   ans = mid; 
   n = mid - 1; 

       } 

    } 
    return ans; 
} 

int main()
{
 FAST 

   int t;
   cin>>t;
	string s[t];
  	int a=0,w=0,t=0,r=0;
  ifor(0,n)
    	cin>>s[i];
  a=count(s.begin(),s.end(),"AC");
  w=count(s.begin(),s.end(),"WA");
  t=count(s.begin(),s.end(),"TLE");
  r=count(s.begin(),s.end(),"RE");
  cout<<"AC x "<<a<<endl;
    cout<<"WA x "<<w<<endl;
    cout<<"TLE x "<<t<<endl;
    cout<<"RE x "<<r<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:21: error: redeclaration of 'int t'
   43 |         int a=0,w=0,t=0,r=0;
      |                     ^
a.cc:40:8: note: 'int t' previously declared here
   40 |    int t;
      |        ^
a.cc:44:10: error: 'n' was not declared in this scope
   44 |   ifor(0,n)
      |          ^
a.cc:7:34: note: in definition of macro 'ifor'
    7 | #define ifor(j,n) for(int i=j ;i<n;i++)
      |                                  ^
a.cc:46:13: error: request for member 'begin' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   46 |   a=count(s.begin(),s.end(),"AC");
      |             ^~~~~
a.cc:46:23: error: request for member 'end' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   46 |   a=count(s.begin(),s.end(),"AC");
      |                       ^~~
a.cc:47:13: error: request for member 'begin' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   47 |   w=count(s.begin(),s.end(),"WA");
      |             ^~~~~
a.cc:47:23: error: request for member 'end' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   47 |   w=count(s.begin(),s.end(),"WA");
      |                       ^~~
a.cc:48:13: error: request for member 'begin' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   48 |   t=count(s.begin(),s.end(),"TLE");
      |             ^~~~~
a.cc:48:23: error: request for member 'end' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   48 |   t=count(s.begin(),s.end(),"TLE");
      |                       ^~~
a.cc:49:13: error: request for member 'begin' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   49 |   r=count(s.begin(),s.end(),"RE");
      |             ^~~~~
a.cc:49:23: error: request for member 'end' in 's', which is of non-class type 'std::string [t]' {aka 'std::__cxx11::basic_string<char> [t]'}
   49 |   r=count(s.begin(),s.end(),"RE");
      |                       ^~~