criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
#include<map>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  unordered_map<string,int> m;
   unordered_map<string,int> :: iterator it;
  m.insert(make_pair("AC",0));
            m.insert(make_pair("WA",0));
                      m.insert(make_pair("TLE",0));
                                m.insert(make_pair("RE",0));
     while(n--)
                                       {
                                           cin>>s;
                                           m[s]++;
                                         }
                                       for(it=m.begin();it!=m.end();it++)
                                         cout<<it->first<<" "<<"x"<<" "<<it->second<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'unordered_map' was not declared in this scope
    9 |   unordered_map<string,int> m;
      |   ^~~~~~~~~~~~~
a.cc:3:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; this is probably fixable by adding '#include <unordered_map>'
    2 | #include<map>
  +++ |+#include <unordered_map>
    3 | using namespace std;
a.cc:9:23: error: expected primary-expression before ',' token
    9 |   unordered_map<string,int> m;
      |                       ^
a.cc:9:24: error: expected primary-expression before 'int'
    9 |   unordered_map<string,int> m;
      |                        ^~~
a.cc:10:24: error: expected primary-expression before ',' token
   10 |    unordered_map<string,int> :: iterator it;
      |                        ^
a.cc:10:25: error: expected primary-expression before 'int'
   10 |    unordered_map<string,int> :: iterator it;
      |                         ^~~
a.cc:11:3: error: 'm' was not declared in this scope
   11 |   m.insert(make_pair("AC",0));
      |   ^
a.cc:20:44: error: 'it' was not declared in this scope; did you mean 'int'?
   20 |                                        for(it=m.begin();it!=m.end();it++)
      |                                            ^~
      |                                            int
Language: C++

#include<iostream>
#include<unordered_map>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  unordered_map<string,int> m;
   unordered_map<string,int> :: iterator it;
  m.insert(make_pair("AC",0);
            m.insert(make_pair("WA",0);
                      m.insert(make_pair("TLE",0);
                                m.insert(make_pair("RE",0);
     while(n--)
                                       {
                                           cin>>s;
                                           m[s]++;
                                         }
                                       for(it=m.begin();it!=m.end();it++)
                                         cout<<it->first<<" "<<"x"<<" "<<it->second<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ')' before ';' token
   11 |   m.insert(make_pair("AC",0);
      |           ~                 ^
      |                             )
a.cc:12:39: error: expected ')' before ';' token
   12 |             m.insert(make_pair("WA",0);
      |                     ~                 ^
      |                                       )
a.cc:13:50: error: expected ')' before ';' token
   13 |                       m.insert(make_pair("TLE",0);
      |                               ~                  ^
      |                                                  )
a.cc:14:59: error: expected ')' before ';' token
   14 |                                 m.insert(make_pair("RE",0);
      |                                         ~                 ^
      |                                                           )
Language: C++

#include<iostream>
#include<map>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  unordered_map<string,int> m;
   unordered_map<string,int> :: iterator it;
  m.insert(make_pair("AC",0);
            m.insert(make_pair("WA",0);
                      m.insert(make_pair("TLE",0);
                                m.insert(make_pair("RE",0);
     while(n--)
                                       {
                                           cin>>s;
                                           m[s]++;
                                         }
                                       for(it=m.begin();it!=m.end();it++)
                                         cout<<it->first<<" "<<"x"<<" "<<it->second<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'unordered_map' was not declared in this scope
    9 |   unordered_map<string,int> m;
      |   ^~~~~~~~~~~~~
a.cc:3:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; this is probably fixable by adding '#include <unordered_map>'
    2 | #include<map>
  +++ |+#include <unordered_map>
    3 | using namespace std;
a.cc:9:23: error: expected primary-expression before ',' token
    9 |   unordered_map<string,int> m;
      |                       ^
a.cc:9:24: error: expected primary-expression before 'int'
    9 |   unordered_map<string,int> m;
      |                        ^~~
a.cc:10:24: error: expected primary-expression before ',' token
   10 |    unordered_map<string,int> :: iterator it;
      |                        ^
a.cc:10:25: error: expected primary-expression before 'int'
   10 |    unordered_map<string,int> :: iterator it;
      |                         ^~~
a.cc:11:3: error: 'm' was not declared in this scope
   11 |   m.insert(make_pair("AC",0);
      |   ^
a.cc:11:29: error: expected ')' before ';' token
   11 |   m.insert(make_pair("AC",0);
      |           ~                 ^
      |                             )
a.cc:12:39: error: expected ')' before ';' token
   12 |             m.insert(make_pair("WA",0);
      |                     ~                 ^
      |                                       )
a.cc:13:50: error: expected ')' before ';' token
   13 |                       m.insert(make_pair("TLE",0);
      |                               ~                  ^
      |                                                  )
a.cc:14:59: error: expected ')' before ';' token
   14 |                                 m.insert(make_pair("RE",0);
      |                                         ~                 ^
      |                                                           )
a.cc:20:44: error: 'it' was not declared in this scope; did you mean 'int'?
   20 |                                        for(it=m.begin();it!=m.end();it++)
      |                                            ^~
      |                                            int
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define N 100005
#define m 1000000007
#define dd double
#define pb push_back
#define mp make_pair
#define clr(x) x.clear()
#define sz(x) ((int)(x).size())
#define F first
#define S second
int32_t main() 
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int n,i;
	cin>>n;
	string s;
	map<string,int>mp;
	mp["AC"]=0;
	mp["WA"]=0;
	mp["TLE"]=0;
	mp["RE"]=0;
	for(i=0;i<n;++i)
	{
		cin>>s;
		mp[s]++;
	}
	cout<<"AC x "mp["AC"]<<endl
		<<"WA x "mp["WA"]<<endl
		<<"TLE x "mp["TLE"]<<endl
		<<"RE x "mp["RE"];
}


Compiler output:
a.cc:30:15: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   30 |         cout<<"AC x "mp["AC"]<<endl
      |               ^
a.cc:31:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   31 |                 <<"WA x "mp["WA"]<<endl
      |                   ^
a.cc:32:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   32 |                 <<"TLE x "mp["TLE"]<<endl
      |                   ^
a.cc:33:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   33 |                 <<"RE x "mp["RE"];
      |                   ^
a.cc: In function 'int32_t main()':
a.cc:30:22: error: expected ';' before 'make_pair'
   30 |         cout<<"AC x "mp["AC"]<<endl
      |                      ^
      |                      ;
Language: C++

#include<iostream>
#inclide<map>
using namespace std;
int main()
{
  int n;
  cin>>n;
  string s;
  unordered_map<string,int> m;
   unordered_map<string,int> :: iterator it;
  m.insert(make_pair("AC",0);
            m.insert(make_pair("WA",0);
                      m.insert(make_pair("TLE",0);
                                m.insert(make_pair("RE",0);
     while(n--)
                                       {
                                           cin>>s;
                                           m[s]++;
                                         }
                                       for(it=m.begin();it!=m.end();it++)
                                         cout<<it->first<<" "<<"x"<<" "<<it->second<<endl;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inclide; did you mean #include?
    2 | #inclide<map>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:3: error: 'unordered_map' was not declared in this scope
    9 |   unordered_map<string,int> m;
      |   ^~~~~~~~~~~~~
a.cc:2:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; this is probably fixable by adding '#include <unordered_map>'
    1 | #include<iostream>
  +++ |+#include <unordered_map>
    2 | #inclide<map>
a.cc:9:23: error: expected primary-expression before ',' token
    9 |   unordered_map<string,int> m;
      |                       ^
a.cc:9:24: error: expected primary-expression before 'int'
    9 |   unordered_map<string,int> m;
      |                        ^~~
a.cc:10:24: error: expected primary-expression before ',' token
   10 |    unordered_map<string,int> :: iterator it;
      |                        ^
a.cc:10:25: error: expected primary-expression before 'int'
   10 |    unordered_map<string,int> :: iterator it;
      |                         ^~~
a.cc:11:3: error: 'm' was not declared in this scope
   11 |   m.insert(make_pair("AC",0);
      |   ^
a.cc:11:29: error: expected ')' before ';' token
   11 |   m.insert(make_pair("AC",0);
      |           ~                 ^
      |                             )
a.cc:12:39: error: expected ')' before ';' token
   12 |             m.insert(make_pair("WA",0);
      |                     ~                 ^
      |                                       )
a.cc:13:50: error: expected ')' before ';' token
   13 |                       m.insert(make_pair("TLE",0);
      |                               ~                  ^
      |                                                  )
a.cc:14:59: error: expected ')' before ';' token
   14 |                                 m.insert(make_pair("RE",0);
      |                                         ~                 ^
      |                                                           )
a.cc:20:44: error: 'it' was not declared in this scope; did you mean 'int'?
   20 |                                        for(it=m.begin();it!=m.end();it++)
      |                                            ^~
      |                                            int
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    string s;
    for(int i = 0;i < n; i++){
        cin >> s[i];
    }
    int count1 = 0;
    int count2 = 0;
    int count3 = 0;
    int count4 = 0;
    for(int i =0;i < n;i++){
        if(s[i].equals("AC"))
        count1++;
    }
    for(int i =0;i < n;i++){
        if(s[i].equals("WA"))
        count2++;
    }
    for(int i =0;i < n;i++){
        if(s[i].equals("TLE"))
        count3++;
    }
    for(int i =0;i < n;i++){
        if(s[i].equals("RE"))
        count4++;
    }
    cout << "AC x " << count1 << endl;
    cout << "WA x " << count2 << endl;
    cout << "TLE x " << count3 << endl;
    cout << "RE x " << count4 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: request for member 'equals' in 's.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   16 |         if(s[i].equals("AC"))
      |                 ^~~~~~
a.cc:20:17: error: request for member 'equals' in 's.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   20 |         if(s[i].equals("WA"))
      |                 ^~~~~~
a.cc:24:17: error: request for member 'equals' in 's.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   24 |         if(s[i].equals("TLE"))
      |                 ^~~~~~
a.cc:28:17: error: request for member 'equals' in 's.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   28 |         if(s[i].equals("RE"))
      |                 ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    long long int n,a=0,b=0,c=0,d=0;
    cin >> n;
    
    while(n--)
    {
        string s;
        cin >> s;
        
        if(s=="AC")
        {
            a++;
        }
        else if(s=="WA")
        {
            b++;
        }
         else if(s=="TLE")
        {
            c++;
        }
         else if(s=="RE")
        {
            d++;
        }
        
        cout << "AC x" << a << "\n";
         cout << "WA x" << b << "\n";
          cout << "TLE x" << c << "\n";
           cout << "RE x" << d << "\n";
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: expected '}' at end of input
   35 |     }
      |      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
    int n;
    cin>>n;
    int ac=0,wa=0,tle=0,re=0;
    string s;
    while(n--)
    {
        cin>>s;
        switch(s)
        {
        case("AC"):
            ac++;
        case("WA"):
            wa++;
        case("TLE"):
            tle++;
        case("RE"):
            re++;
        }
    }
    cout<<"AC x "<<ac;
    cout<<"\nWA x "<<wa;
    cout<<"\nTLE x "<<tle;
    cout<<"\nRE x "<<re<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: switch quantity not an integer
   13 |         switch(s)
      |                ^
Language: C++

#include <iostream>
using namespace std;
map<string,int> mm;
int main() {
	// your code goes here
	int n;
	scanf("%d",&n);
	for(int e=0;e<n;e++) {
		string r;
		cin >> r;
		mm[r]++;
	}
	printf("AC x %d\n",mm["AC"]);
	printf("WA x %d\n",mm["WA"]);
	printf("TLE x %d\n",mm["TLE"]);
	printf("RE x %d\n",mm["RE"]);
	return 0;
}

Compiler output:
a.cc:3:1: error: 'map' does not name a type
    3 | map<string,int> mm;
      | ^~~
a.cc: In function 'int main()':
a.cc:11:17: error: 'mm' was not declared in this scope; did you mean 'tm'?
   11 |                 mm[r]++;
      |                 ^~
      |                 tm
a.cc:13:28: error: 'mm' was not declared in this scope; did you mean 'tm'?
   13 |         printf("AC x %d\n",mm["AC"]);
      |                            ^~
      |                            tm
Language: C

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <numeric>
#include <utility>
#include <limits>
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
using namespace std;
#define all(arr) arr.begin(),arr.end()
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#ifdef ONLINE_JUDGE
#define cerr if (false) cerr
#endif 
#define unique(a)       sort((a).begin(), a.end()), (a).erase(unique((a).begin(), (a).end()),(a).end())
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>void __f(const char* name, Arg1&& arg1){cout<<name<<" : "<<arg1<<"\n";}
template <typename Arg1, typename... Args>void __f(const char* names, Arg1&& arg1, Args&&... args){const char* comma=strchr(names+1,',');cout.write(names,comma-names)<<" : "<<arg1<<" , ";__f(comma+1, args...);}
const int MOD = 1000000007;
using PII = pair<int, int>;
using LL = long long int;

template <typename T>
void input(vector<T> &arr,LL n) {
	T temp;
	for(LL i=0;i<n;i++) cin>>temp, arr.push_back(temp);
}

template <typename T>
void output(vector<T> arr) {
	T temp;
	for(auto x:arr) cout<<x<<" ";
	cout<<endl;
}


template <typename T>
void input_set(set<T> &arr,LL n) {
	T temp;
	for(LL i=0;i<n;i++) cin>>temp, arr.insert(temp);
}


LL power(LL num,LL base) {
	if(base==0)
		return 1;

	if(base%2)
		return (num%MOD*power(num,base-1)%MOD)%MOD;
	else {
		LL x=power(num,base/2);
		x=(x*x)%MOD;
		return x;
	}
}
int cnt[4];
int main() {

	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	memset(cnt, 0, sizeof cnt);
	int cases;
	cin>>cases;
	while(cases--) {
		string st;
		cin>>st;
		if (st == "AC") {
				cnt[0]++;
		} else if (st == "WA") {
				cnt[1]++;
		} else if (st == "TLE") {
				cnt[2]++;
		} else {
				cnt[3]++;
		}
	}
	cout<<"AC x "<<cnt[0]<<endl;
	cout<<"WA x "<<cnt[1]<<endl;
	cout<<"TLE x "<<cnt[2]<<endl;
	cout<<"RE x "<<cnt[3]<<endl;
}

//things to remember:
//1. int array must be memsetted before use



Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <numeric>
#include <utility>
#include <limits>
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
using namespace std;
#define all(arr) arr.begin(),arr.end()
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
#ifdef ONLINE_JUDGE
#define cerr if (false) cerr
#endif 
#define unique(a)       sort((a).begin(), a.end()), (a).erase(unique((a).begin(), (a).end()),(a).end())
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>void __f(const char* name, Arg1&& arg1){cout<<name<<" : "<<arg1<<"\n";}
template <typename Arg1, typename... Args>void __f(const char* names, Arg1&& arg1, Args&&... args){const char* comma=strchr(names+1,',');cout.write(names,comma-names)<<" : "<<arg1<<" , ";__f(comma+1, args...);}
const int MOD = 1000000007;
using PII = pair<int, int>;
using LL = long long int;

template <typename T>
void input(vector<T> &arr,LL n) {
	T temp;
	for(LL i=0;i<n;i++) cin>>temp, arr.push_back(temp);
}

template <typename T>
void output(vector<T> arr) {
	T temp;
	for(auto x:arr) cout<<x<<" ";
	cout<<endl;
}


template <typename T>
void input_set(set<T> &arr,LL n) {
	T temp;
	for(LL i=0;i<n;i++) cin>>temp, arr.insert(temp);
}


LL power(LL num,LL base) {
	if(base==0)
		return 1;

	if(base%2)
		return (num%MOD*power(num,base-1)%MOD)%MOD;
	else {
		LL x=power(num,base/2);
		x=(x*x)%MOD;
		return x;
	}
}
int cnt[4];
int main() {

	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	memset(cnt, 0, sizeof cnt);
	int cases;
	cin>>cases;
	while(cases--) {
		string st;
		cin>>st;
		if (st == "AC") {
				cnt[0]++;
		} else if (st == "WA") {
				cnt[1]++;
		} else if (st == "TLE") {
				cnt[2]++;
		} else {
				cnt[3]++;
		}
	}
	cout<<"AC x "<<cnt[0]<<endl;
	cout<<"WA x "<<cnt[1]<<endl;
	cout<<"TLE x "<<cnt[2]<<endl;
	cout<<"RE x "<<cnt[3]<<endl;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

template <class T>
void printArray(vector<T> arr) {
	for (T a: arr) cout << a << " ";
	cout << '\n';
}

void printVerdict(bool verdict) {
	cout << (verdict ? "YES": "NO") << '\n';
}

int main() {
	std::ios_base::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	map<string, int> count;
	
	count["AC"] = 0;
	count["WA"] = 0;
	count["TLE"] = 0;
	count["RE"] = 0;
	
	for (int i = 0; i<n; i++) {
		string temp; cin >> temp;
		count[temp]++;
	}
	cout << "AC x " << count[AC] << '\n';
	cout << "WA x " << count[AC] << '\n';
	cout << "TLE x " << count[AC] << '\n';
	cout << "RE x " << count[AC] << '\n'; 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:32:34: error: 'AC' was not declared in this scope
   32 |         cout << "AC x " << count[AC] << '\n';
      |                                  ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  string x;
  int ACs = 0, WAs = 0, TLEs = 0, REs = 0;
  while(n--){
    cin >> x;
    if x=='AC'
      ACs++;
    else if x=='WA'
      WAs++;
    else if x=='TLE'
      TLEs++;
    else
      REs++;
  }
  cout << "AC x " << ACs << endl;
  cout << "WA x " << WAs << endl;
  cout << "TLE x " << TLEs << endl;
  cout << "RE x " << REs << endl;
}

Compiler output:
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     if x=='AC'
      |           ^~~~
a.cc:13:16: warning: multi-character character constant [-Wmultichar]
   13 |     else if x=='WA'
      |                ^~~~
a.cc:15:16: warning: multi-character character constant [-Wmultichar]
   15 |     else if x=='TLE'
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'x'
   11 |     if x=='AC'
      |        ^
      |        (
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if x=='WA'
      |     ^~~~
a.cc:13:13: error: expected '(' before 'x'
   13 |     else if x=='WA'
      |             ^
      |             (
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if x=='TLE'
      |     ^~~~
a.cc:15:13: error: expected '(' before 'x'
   15 |     else if x=='TLE'
      |             ^
      |             (
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else
      |     ^~~~
Language: Java

public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int n;
    n=in.nextInt();
    int ac=0,wa=0,tle=0,re=0;
    for(int i=1;i<=n;i++)
    {
      String s=in.next();
      if(s.compareTo("AC")==0)
      {
        ac++;
      }
      else if(s.compareTo("TLE")==0)
      {
        tle++;
      }
      else if(s.compareTo("WA")==0)
      {
        wa++;
      }
      else
      {
        re++;
      }
    }
      System.out.println("AC X "+ac);
      System.out.println("WA X "+wa);
      System.out.println("TLE X "+tle);
      System.out.println("RE X "+re);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner in=new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
    Scanner in=new Scanner(System.in);
                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
	Scanner scn = new Scanner(System.in);
	String n = scn.next();
      int ac = 0;
      int wa = 0;
      int tle = 0;
      int re = 0;
      String[] a = new String[n];
      for(i=0; i<a.length; ++i){
        a[i] = scn.next();
      }
      for(i=0; i<a.length; ++i){
        if(a[i]=="AC"){
          ac = ac+1;
        }if(a[i]=="WA"){
          wa = wa+1;
        }if(a[i]=="TLE"){
          tle = tle+1;
        }if(a[i]=="RE"){
          re = re+1;
        }
      }
      System.out.println("AC × "+ac);
      System.out.println("WA × "+wa);
      System.out.println("TLE × "+tle);
      System.out.println("RE × "+re);
	}
}


Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to int
      String[] a = new String[n];
                              ^
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
          ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
                             ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
        a[i] = scn.next();
          ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
          ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
               ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
                             ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
        if(a[i]=="AC"){
             ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        }if(a[i]=="WA"){
              ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
        }if(a[i]=="TLE"){
              ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
        }if(a[i]=="RE"){
              ^
  symbol:   variable i
  location: class Main
12 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int ac = 0;
      int wa = 0;
      int tle = 0;
      int re = 0;
      String[] a = new String[n];
      for(int i=0; i<a.length; ++i){
        a[i] = sc.next();
      }
      for(int i=0; i<a.length; ++i){
        if(a[i]==AC){
          ac = ac+1;
        }if(a[i]==WA){
          wa = wa+1;
        }if(a[i]==TLE){
          tle = tle+1;
        }if(a[i]==RE){
          re = re+1;
        }
      }
      System.out.println("AC × "+ac);
      System.out.println("WA × "+wa);
      System.out.println("TLE × "+tle);
      System.out.println("RE × "+re);
	}
}


Compiler output:
Main.java:13: error: cannot find symbol
        a[i] = sc.next();
               ^
  symbol:   variable sc
  location: class Main
Main.java:16: error: cannot find symbol
        if(a[i]==AC){
                 ^
  symbol:   variable AC
  location: class Main
Main.java:18: error: cannot find symbol
        }if(a[i]==WA){
                  ^
  symbol:   variable WA
  location: class Main
Main.java:20: error: cannot find symbol
        }if(a[i]==TLE){
                  ^
  symbol:   variable TLE
  location: class Main
Main.java:22: error: cannot find symbol
        }if(a[i]==RE){
                  ^
  symbol:   variable RE
  location: class Main
5 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
	Scanner scn = new Scanner(System.in);
	String n = scn.next();
      int ac = 0;
      int wa = 0;
      int tle = 0;
      int re = 0;
      String[] a = new String[n];
      for(i=0; i<a.length; ++i){
        a[i] = sc.next();
      }
      for(i=0; i<a.length; ++i){
        if(a[i]==AC){
          ac = ac+1;
        }if(a[i]==WA){
          wa = wa+1;
        }if(a[i]==TLE){
          tle = tle+1;
        }if(a[i]==RE){
          re = re+1;
        }
      }
      System.out.println("AC × "+ac);
      System.out.println("WA × "+wa);
      System.out.println("TLE × "+tle);
      System.out.println("RE × "+re);
	}
}

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to int
      String[] a = new String[n];
                              ^
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
          ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      for(i=0; i<a.length; ++i){
                             ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
        a[i] = sc.next();
          ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
        a[i] = sc.next();
               ^
  symbol:   variable sc
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
          ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
               ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
      for(i=0; i<a.length; ++i){
                             ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
        if(a[i]==AC){
             ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
        if(a[i]==AC){
                 ^
  symbol:   variable AC
  location: class Main
Main.java:18: error: cannot find symbol
        }if(a[i]==WA){
              ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        }if(a[i]==WA){
                  ^
  symbol:   variable WA
  location: class Main
Main.java:20: error: cannot find symbol
        }if(a[i]==TLE){
              ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
        }if(a[i]==TLE){
                  ^
  symbol:   variable TLE
  location: class Main
Main.java:22: error: cannot find symbol
        }if(a[i]==RE){
              ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
        }if(a[i]==RE){
                  ^
  symbol:   variable RE
  location: class Main
17 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define srep(i,s,t) for(int i = s; i < t; ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
#define yn {puts("Yes");}else{puts("No");}
#define MAX_N 200005

int main() {
    int n;
    cin >> n;
    map<string> mp;
    rep(i,n){
        string s;
        cin >> s;
        mp[s]++;
    }
    cout << "AC x " << mp["AC"] << endl;
    cout << "WA x " << mp["WA"] << endl;
    cout << "TLE x " << mp["TLE"] << endl;
    cout << "RE x " << mp["RE"] << endl;
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: wrong number of template arguments (1, should be at least 2)
   14 |     map<string> mp;
      |               ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:18:11: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   18 |         mp[s]++;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t,w=0,t=0,r=0,a=0;
    cin>>t;
    while(t--)
    {
        string s;
        cin>>s;
        if(s[0]=='A')
        a++;
        else if(s[0]=='R')
        r++;
        else if(s[0]=='T')
        t++;
        else
        w++;
    }
    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:5:15: error: redeclaration of 'int t'
    5 |     int t,w=0,t=0,r=0,a=0;
      |               ^
a.cc:5:9: note: 'int t' previously declared here
    5 |     int t,w=0,t=0,r=0,a=0;
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main()
{
  int n;
  map<string,int>m;
  m["AC"]=0;
  m["WA"]=0;
  m["TLE"]=0;
  m["RE"]=0;
  while(n--){
    cin>>s;
    m[s]++;
  }
  cout<<"AC x "<<m["AC"]<<'\n';
  cout<<"WA x "<<m["WA"]<<'\n';
  cout<<"TLE x "<<m["TLE"]<<'\n';
  cout<<"RE x "<<m["RE"]<<'\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 's' was not declared in this scope
   13 |     cin>>s;
      |          ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string>
using namespace std;
int ac, wa, tle, re;
int main()
{
	int t;
	cin>>t;
	while(t--)
{
	cin>>s;
	if(s=="AC") ac++;
	else if(s=="WA") wa++;
	else if(s=="TLE") tle++'
	else re++;'
}
	cout<<"AC x "<<ac<<endl;
	cout<<"WA x "<<wa<<endl;
	cout<<"TLE x "<<tle<<endl;
	cout<<"RE x "<<re<<endl;
}

Compiler output:
a.cc:16:32: warning: missing terminating ' character
   16 |         else if(s=="TLE") tle++'
      |                                ^
a.cc:16:32: error: missing terminating ' character
a.cc:17:19: warning: missing terminating ' character
   17 |         else re++;'
      |                   ^
a.cc:17:19: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:13:14: error: 's' was not declared in this scope
   13 |         cin>>s;
      |              ^
a.cc:16:32: error: expected ';' before 'else'
   16 |         else if(s=="TLE") tle++'
      |                                ^
      |                                ;
   17 |         else re++;'
      |         ~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string>
using namespace std;
int ac, wa, tle, re;
int main()
{
	int t;
	while(t--)
{
	cin>>s;
	if(s=="AC") ac++;
	else if(s=="WA") wa++;
	else if(s=="TLE") tle++'
	else re++;'
}
	cout<<"AC x "<<ac<<endl;
	cout<<"WA x "<<wa<<endl;
	cout<<"TLE x "<<tle<<endl;
	cout<<"RE x "<<re<<endl;
}

Compiler output:
a.cc:15:32: warning: missing terminating ' character
   15 |         else if(s=="TLE") tle++'
      |                                ^
a.cc:15:32: error: missing terminating ' character
a.cc:16:19: warning: missing terminating ' character
   16 |         else re++;'
      |                   ^
a.cc:16:19: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:12:14: error: 's' was not declared in this scope
   12 |         cin>>s;
      |              ^
a.cc:15:32: error: expected ';' before 'else'
   15 |         else if(s=="TLE") tle++'
      |                                ^
      |                                ;
   16 |         else re++;'
      |         ~~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int i,n,a=0,b=0,c=0,d=0;
  char s[10];
  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf("%s", &s);
    if(strcmp(s,"AC")==0){
      a++;
    }
    else if(strcmp(s,"WA")==0){
      b++;
    }
    else if(strcmp(s,"TLE")==0){
      c++;
    }
    else(strcmp(s,"RE")==0){
      d++;
    }
  }
  printf("AC x %d\n", a);
  printf("WA x %d\n", b);
  printf("TLE x %d\n", c);
  printf("RE x %d\n", d);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:28: error: expected ';' before '{' token
   18 |     else(strcmp(s,"RE")==0){
      |                            ^
      |                            ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
  	int n; cin >> n;
  	map<string,int> freq;
 	freq["AC"] = 0;
  	freq["WA"] = 0;
  	freq["TLE"] = 0;
  	freq["RE"] = 0;
  	for (int i = 0; i < n; i++)
    {
    	string s;
      	cin >> s;
      	freq[s]++;
    }
  	for (auto i = freq.begin(); i != freq.end(); i++)
    {
    	cout << i->fi << " x " << i->se << endl;
    }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'fi'
   20 |         cout << i->fi << " x " << i->se << endl;
      |                    ^~
a.cc:20:38: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'se'
   20 |         cout << i->fi << " x " << i->se << endl;
      |                                      ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
  	int n; cin >> n;
  	map<string,int> freq;
 	freq["AC"] = 0;
  	freq["WA"] = 0;
  	freq["TLE"] = 0;
  	freq["RE"] = 0;
  	for (int = 0; i < n; i++)
    {
    	string s;
      	cin >> s;
      	freq[s]++;
    }
  	for (auto i = freq.begin(); i != freq.end(); i++)
    {
    	cout << i->fi << " x " << i->se << endl;
    }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected unqualified-id before '=' token
   12 |         for (int = 0; i < n; i++)
      |                  ^
a.cc:12:17: error: expected ';' before '=' token
   12 |         for (int = 0; i < n; i++)
      |                 ^~
      |                 ;
a.cc:12:18: error: expected primary-expression before '=' token
   12 |         for (int = 0; i < n; i++)
      |                  ^
a.cc:12:23: error: 'i' was not declared in this scope
   12 |         for (int = 0; i < n; i++)
      |                       ^
a.cc:12:28: error: expected ')' before ';' token
   12 |         for (int = 0; i < n; i++)
      |             ~              ^
      |                            )
a.cc:12:30: error: 'i' was not declared in this scope
   12 |         for (int = 0; i < n; i++)
      |                              ^
a.cc:20:20: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'fi'
   20 |         cout << i->fi << " x " << i->se << endl;
      |                    ^~
a.cc:20:38: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'se'
   20 |         cout << i->fi << " x " << i->se << endl;
      |                                      ^~
Language: C

#include<stdio.h>
int main(void){
  int N;
  scanf("%d",&N);
  int i,j;
  char s[4};
   int C0,C1,C2,C3;
  C0=0;
  C1=0;C2=0;C3=0;
  for(j=0;j<N;j++){{scanf("%s",&s);}for(i=0;i<10000;i++)if(s[i]=='\0'){break;}
 if(s[0]=='A'&&s[1]=='C'){C0=C0+1;}
  else if(s[0]=='W'&&s[1]=='A'){C1=C1+1;}
  else if(s[0]=='T'&&s[1]=='L'&&s[2]=='E'){C2=C2+1;}
  else if(s[0]=='R'&&s[1]=='E'){C3=C3+1;}}
    printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n",C0,C1,C2,C3);
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ']' before '}' token
    6 |   char s[4};
      |           ^
      |           ]
main.c:10:33: error: 's' undeclared (first use in this function)
   10 |   for(j=0;j<N;j++){{scanf("%s",&s);}for(i=0;i<10000;i++)if(s[i]=='\0'){break;}
      |                                 ^
main.c:10:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
  	int n; cin >> n;
  	map<string,int> freq;
  	for (int i = 0; i < n; i++)
    {
    	string s;
      	cin >> s;
      	freq[s]++;
    }
  	for (map<string,int>::iterator i = freq.begin(); i != freq.end(); i++)
    {
    	cout << i->fi << " x " << i->se << endl;
    }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'fi'
   16 |         cout << i->fi << " x " << i->se << endl;
      |                    ^~
a.cc:16:38: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'se'
   16 |         cout << i->fi << " x " << i->se << endl;
      |                                      ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
  	int n; cin >> n;
  	map<string,int> freq;
  	for (int = 0; i < n; i++)
    {
    	string s;
      	cin >> s;
      	freq[s]++;
    }
  	for (auto i = freq.begin(); i != freq.end(); i++)
    {
    	cout << i->fi << " x " << i->se << endl;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected unqualified-id before '=' token
    8 |         for (int = 0; i < n; i++)
      |                  ^
a.cc:8:17: error: expected ';' before '=' token
    8 |         for (int = 0; i < n; i++)
      |                 ^~
      |                 ;
a.cc:8:18: error: expected primary-expression before '=' token
    8 |         for (int = 0; i < n; i++)
      |                  ^
a.cc:8:23: error: 'i' was not declared in this scope
    8 |         for (int = 0; i < n; i++)
      |                       ^
a.cc:8:28: error: expected ')' before ';' token
    8 |         for (int = 0; i < n; i++)
      |             ~              ^
      |                            )
a.cc:8:30: error: 'i' was not declared in this scope
    8 |         for (int = 0; i < n; i++)
      |                              ^
a.cc:16:20: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'fi'
   16 |         cout << i->fi << " x " << i->se << endl;
      |                    ^~
a.cc:16:38: error: 'struct std::pair<const std::__cxx11::basic_string<char>, int>' has no member named 'se'
   16 |         cout << i->fi << " x " << i->se << endl;
      |                                      ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c,ac=0,wa=0,tl=0,re=0;
  string x;
  vector<string> v;
  cin>>a;
  b=a;
  while(b--)
  {
    cin>>x;
    v.push_back(x);
  }
  for(int i=0;i<a;i++)
  {
    if(v[i]=="AC") ac++;
     if(v[i]=="WA") wa++;
     if(v[i]=="TLE") tl++;
     if(v[i]=="RE") re++;
  }
  cout<<"AC x "<<ac<<endl;
  cout<<"WA x "<<wa<<endl;
  cout<<"TLE x "<<tl<<endl;
  cout<<"RE x "<<re<<endl;
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected '}' at end of input
   26 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c,ac=0,wa=0,tl=0,re=0;
  string x,y;
  vector<string> v;
  cin>>a;
  b=a;
  while(b--)
  {
    cin>>x;
    v.push_back(x);
  }
  for(int i=0;i<a;i++)
  {
    if(v[i]=="AC") ac++;
     if(v[i]=="WA") wa++;
     if(v[i]=="TLE") tl++;
     if(v[i]=="RE") re++;
  }
  cout<<"AC x "<<ac<<endl;
  cout<<"WA x "<<wa<<endl;
  cout<<"TLE x "<<tl<<endl;
  cout<<"RE x "<<re<<endl;
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected '}' at end of input
   26 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int i,n,a=0,b=0,c=0,d=0;
  char s[100001];
  scanf("%d", &n);
  for(i=0;i<n;i++){
    scanf("%s", &s[i]);
    if(strcmp(s[i],"AC")==0){
      a++;
    }
    else if(strcmp(s[i],"WA")==0){
      b++;
    }
    else if(strcmp(s[i],"TLE")==0){
      c++;
    }
    else(strcmp(s[i],"RE")==0){
      d++;
    }
  }
  printf("AC * %d", a);
  printf("WA * %d", b);
  printf("TLE * %d", c);
  printf("RE * %d", d);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |     if(strcmp(s[i],"AC")==0){
      |               ~^~~
      |                |
      |                char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:12:21: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |     else if(strcmp(s[i],"WA")==0){
      |                    ~^~~
      |                     |
      |                     char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:15:21: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   15 |     else if(strcmp(s[i],"TLE")==0){
      |                    ~^~~
      |                     |
      |                     char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:18:18: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   18 |     else(strcmp(s[i],"RE")==0){
      |                 ~^~~
      |                  |
      |                  char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:18:31: error: expected ';' before '{' token
   18 |     else(strcmp(s[i],"RE")==0){
      |                               ^
      |                               ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c,ac=0,wa=0,tl=0,re=0;
  string x,y;
  vector<string> v;
  cin>>a;
  b=a;
  while(b--)
  {cin>>x;
   v.push_back(x);
  }
  for(auto i:v)
  {
    if(i=="AC") ac++;
     if(i=="WA") wa++;
     if(i=="TLE") tl++;
     if(i=="RE") re++;
  }
  cout<<"AC x "<<ac<<endl;
  cout<<"WA x "<<wa<<endl;
  cout<<"TLE x "<<tl<<endl;
  cout<<"RE x "<<re<<endl;
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: expected '}' at end of input
   25 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define MOD 1000000007
#define ll long long int
#define pair <ll, ll> pi
#define vector <ll> vi
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define SQ(a) (a) * (a)
#define ordered_set tree<ll, null_type, greater_equal<ll>, rb_tree_tag, tree_order_statistics_node_update> //greater_equal<ll> or less<ll>
// find_by_key()   order_of_key()
//#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
/*bool comp(string a, string b) {
if (a.size() != b.size()) return a.size() < b.size();
return a < b;
}*/

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    //freopen('input.txt', 'r', stdin);
    //freopen('output.txt', 'w', stdout);
    ll i, j, k, n, m, b, d, ans = 0,a,x,y;
    string s[4]={0};
    cin>>n;
    string t;
    while(n--){
        cin>>t;
        if(t=="AC"){
            s[0]++;
        }
        if(t=="WA"){
            s[1]++;
        }
        if(t=="TLE"){
            s[2]++;
        }
        if(t=="RE"){
            s[3]++;
        }
    }
    cout<<"AC "<<"x "<<s[0]<<endl;
    cout<<"WA "<<"x "<<s[0]<<endl;
    cout<<"TLE "<<"x "<<s[0]<<endl;
    cout<<"RE "<<"x "<<s[0]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   37 |             s[0]++;
      |             ~~~~^~
a.cc:40:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   40 |             s[1]++;
      |             ~~~~^~
a.cc:43:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   43 |             s[2]++;
      |             ~~~~^~
a.cc:46:17: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   46 |             s[3]++;
      |             ~~~~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;


int main() {
    int N;
    string a[100000];
    cin >> N;
    rep(i, N) cin >> a[i];

    int res[4];
    rep(i, N) {
        if(a[i] == "AC") {
            res[0]++;
        } else if(a[i] == "WA") {
            res[1]++;
        } else if(a[i] == "TLE") {
            res[2]++;
        } else if(a[i] == "RE") {
            res[3]++;
        }
    }
    cout << "AC x " << res[0] << endl; 
    cout << "WA x " << res[1] << endl;
    cout << "TLE x " << res[2] << endl;
    cout << "RE x " << res[3] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     rep(i, N) cin >> a[i];
      |         ^
a.cc:9:5: error: 'rep' was not declared in this scope
    9 |     rep(i, N) cin >> a[i];
      |     ^~~