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

#include <iostream>
using namespace std;
int main(){
    int N;
6   int C=0,C1=0,C2=,C3=0;
    cin>>N;
7   for(int i = 0; i < N;i++){
8       cin>>st;
9       if(st=="AC"){
            C++;
        }
10      else if(st=="WA"){
            C1++;
        }
11      else if(st=="TLE") {
            C2++;
            }
1       else {
            C3++;
        }
13 }
14  cout<<"AC x "<<C;
15  cout<<"WA x "<<C1;
16  cout<<"TLE x "<<C2;
17  cout<<"RE x "<<C3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: expected ';' before 'int'
    5 | 6   int C=0,C1=0,C2=,C3=0;
      |  ^  ~~~
      |  ;
a.cc:7:2: error: expected ';' before 'for'
    7 | 7   for(int i = 0; i < N;i++){
      |  ^  ~~~
      |  ;
a.cc:7:20: error: 'i' was not declared in this scope
    7 | 7   for(int i = 0; i < N;i++){
      |                    ^
a.cc:22:3: error: expected ';' before 'cout'
   22 | 14  cout<<"AC x "<<C;
      |   ^ ~~~~
      |   ;
a.cc:23:3: error: expected ';' before 'cout'
   23 | 15  cout<<"WA x "<<C1;
      |   ^ ~~~~
      |   ;
a.cc:24:3: error: expected ';' before 'cout'
   24 | 16  cout<<"TLE x "<<C2;
      |   ^ ~~~~
      |   ;
a.cc:25:3: error: expected ';' before 'cout'
   25 | 17  cout<<"RE x "<<C3;
      |   ^ ~~~~
      |   ;
Language: C++

#include <iostream>
using namespace std;
int main(){
    int N;
6   int C=0,C1=0,C2=,C3=0;
7   for(int i = 0; i < N;i++){
8       cin>>st;
9       if(st=="AC"){
            C++;
        }
10      else if(st=="WA"){
            C1++;
        }
11      else if(st=="TLE") {
            C2++;
            }
1       else {
            C3++;
        }
13 }
14  cout<<"AC x "<<C;
15  cout<<"WA x "<<C1;
16  cout<<"TLE x "<<C2;
17  cout<<"RE x "<<C3;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: expected ';' before 'int'
    5 | 6   int C=0,C1=0,C2=,C3=0;
      |  ^  ~~~
      |  ;
a.cc:6:2: error: expected ';' before 'for'
    6 | 7   for(int i = 0; i < N;i++){
      |  ^  ~~~
      |  ;
a.cc:6:20: error: 'i' was not declared in this scope
    6 | 7   for(int i = 0; i < N;i++){
      |                    ^
a.cc:21:3: error: expected ';' before 'cout'
   21 | 14  cout<<"AC x "<<C;
      |   ^ ~~~~
      |   ;
a.cc:22:3: error: expected ';' before 'cout'
   22 | 15  cout<<"WA x "<<C1;
      |   ^ ~~~~
      |   ;
a.cc:23:3: error: expected ';' before 'cout'
   23 | 16  cout<<"TLE x "<<C2;
      |   ^ ~~~~
      |   ;
a.cc:24:3: error: expected ';' before 'cout'
   24 | 17  cout<<"RE x "<<C3;
      |   ^ ~~~~
      |   ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long 
// memo  fixed  setprecision(20);
using vvll = vector<vector<ll>>;
ll mod =1e9+7;
/*"itob" int to "N"base */           template<typename TypeInt> string itob(const TypeInt v, int base){static const char table[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";string ret;static numeric_limits<TypeInt> t;TypeInt n = v;if (t.is_signed) {if (v < 0) n *= -1;}while (n >= base) {ret += table[n%base];n /= base;}ret += table[n];if (t.is_signed) {if (v < 0 && base == 10) ret += '-';}reverse(ret.begin(), ret.end());return ret;}
/*"chmin" a = MAX*/                  template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
/*"chmax" a = MIN*/                  template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
/*"ctoi"  char to int*/              int ctoi(char c) {return c-'0';}
/*"gcd"   MAX Euclidean */           ll gcd(ll a,ll b){if(b==0)return a; return gcd(b,a%b);}
    /*"lcm"   MIN*/                      ll lcm(ll a,ll b){ll g = gcd(a,b);return a/g*b;}
/*"primecheck"If prime,return true.*/bool primecheck(ll n){if(n < 2) return false;else{for(int i = 2; i * i <= n; i++){if(n % i == 0) return false;}return true;}}
string  reverserange(string s,ll a,ll b){reverse(s.begin()+a-1,s.begin()+b); return s;}
ll modpow(ll a,ll n, ll mod){ll res = 1;while(n>0){if (n%2==1){res = res * a % mod;}a = a * a % mod;n/=2;}return res;}
int main() {
    int n;
    cin >> n;
    vector<ll>ans(4,0);
    for(int i=0;i<n;i++){
        string t;
        cin >>t;
        if(t=="AC")ans.at(0)++;
        if(t=="WA")ans.at(1)++;
        if(t=="TLE")ans.at(2)++;
        if(t=="RE")ans.at(3)++;
    }
    cout<<"AC x "cout<<ans.at(0)<<endl;
    cout<<"WA x "cout<<ans.at(1)<<endl;
    cout<<"TLE x "cout<<ans.at(2)<<endl;
    cout<<"RE x "cout<<ans.at(3)<<endl;
}
    



Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: unable to find string literal operator 'operator""cout' with 'const char [6]', 'long unsigned int' arguments
   28 |     cout<<"AC x "cout<<ans.at(0)<<endl;
      |           ^~~~~~~~~~~
a.cc:29:11: error: unable to find string literal operator 'operator""cout' with 'const char [6]', 'long unsigned int' arguments
   29 |     cout<<"WA x "cout<<ans.at(1)<<endl;
      |           ^~~~~~~~~~~
a.cc:30:11: error: unable to find string literal operator 'operator""cout' with 'const char [7]', 'long unsigned int' arguments
   30 |     cout<<"TLE x "cout<<ans.at(2)<<endl;
      |           ^~~~~~~~~~~~
a.cc:31:11: error: unable to find string literal operator 'operator""cout' with 'const char [6]', 'long unsigned int' arguments
   31 |     cout<<"RE x "cout<<ans.at(3)<<endl;
      |           ^~~~~~~~~~~
Language: C

#include<stdio.h>

int main()
{int i,N,A=0,B=0,C=0,D=0;
 char str[100000];
 scanf("%d",N);
  for(i=0;i<N;i++)
  {
  scanf("%s",str);
  }
 for(i=0;i<N;i++)
 {
 if(str[N]==AC)A++:
 if(str[N]==WA)B++:
 if(str[N]==TLE)C++:
 if(str[N]==RE)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:13:13: error: 'AC' undeclared (first use in this function); did you mean 'C'?
   13 |  if(str[N]==AC)A++:
      |             ^~
      |             C
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:19: error: expected ';' before ':' token
   13 |  if(str[N]==AC)A++:
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	int N;
	char a[20] = "AC";
	char b[20] = "WA";
	char c[20] = "TLE";
	char d[20] = "RE";
	int i;
	int ac = 0;
	int wa = 0;
	int tle = 0;
	int re = 0;
	char s[100];
	
	scanf("%d",&N);
	
	for( i = 0 ; i < N;i++)
	{
		scanf("%s",S);
		
		if(strcmp(S,a) == 0)
		{
			ac++;
		}
		else if(strcmp(S,b) == 0)
		{
			wa++;
		}
		else if(strcmp(S,c) == 0)
		{
			tle++;
		}
		else if(strcmp(S,d) == 0)
		{
			re++;
		}
	}
	
	printf("ACx%d\n",ac);
	printf("WAx%d\n",wa);
	printf("TLEx%d\n",tle);
    printf("REx%d\n",re);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:28: error: 'S' undeclared (first use in this function)
   21 |                 scanf("%s",S);
      |                            ^
main.c:21:28: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
import java.io.*;


public class ymt {

    public static void main(String[] args) throws IOException
    {
        PrintWriter out = new PrintWriter(System.out);
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());
        HashMap<String , Integer> hm = new HashMap<>();
        for(int i = 0 ; i < n ; i++)
        {
            String ss = br.readLine();
            hm.put(ss , hm.getOrDefault(ss , 0)+1);
        }
        out.println("AC x " + hm.getOrDefault("AC" , 0) );
        out.println("WA x "  + hm.getOrDefault("WA" , 0));
        out.println("TLE x " + hm.getOrDefault("TLE" , 0) );
        out.println("RE x " + hm.getOrDefault("RE" , 0) );

        out.flush();
        out.close();

    }

    static class pair{
        long x1;
        long x2;

        public pair(long x1 , long x2)
        {
            this.x1 = x1;
            this.x2 = x2;
        }

    }

}


Compiler output:
Main.java:5: error: class ymt is public, should be declared in a file named ymt.java
public class ymt {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  int count_AC,count_WA,count_TLE,count_RE,N;
  for(int i = 0;i < N;i++) {
    cin >> S;
    if(S == "AC") {
      count_AC++;
    }
    if(S == "WA") {
      count_WA++;
    }
    if(S == "TLE") {
      count_TLW++;
    }
    if(S == "RE") {
      count_RE++;
    }
  }
  cout << "AC x " << count_AC << endl;
  cout << "WA x " << count_WA << endl;
  cout << "TLE x " << count_TLE << endl;
  cout << "RE x " << count_RE << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: 'count_TLW' was not declared in this scope; did you mean 'count_TLE'?
   15 |       count_TLW++;
      |       ^~~~~~~~~
      |       count_TLE
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S;
  int count_AC,count_WA,count_TLE,count_RE;
  for(int i = 0;i < N;i++) {
    cin >> S;
    if(S == "AC") {
      count_AC++;
    }
    if(S == "WA") {
      count_WA++;
    }
    if(S == "TLE") {
      count_TLW++;
    }
    if(s == "RE") {
      count_RE++;
    }
  }
  cout << "AC x " << count_AC << endl;
  cout << "WA x " << count_WA << endl;
  cout << "TLE x " << count_TLE << endl;
  cout << "RE x " << count_RE << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'N' was not declared in this scope
    6 |   for(int i = 0;i < N;i++) {
      |                     ^
a.cc:15:7: error: 'count_TLW' was not declared in this scope; did you mean 'count_TLE'?
   15 |       count_TLW++;
      |       ^~~~~~~~~
      |       count_TLE
a.cc:17:8: error: 's' was not declared in this scope
   17 |     if(s == "RE") {
      |        ^
Language: C++

#include <iostram>
#include <map>

int main() {
	int n;
  	std::cin >> n;
  	std::map <std::string, int> mp;
  
  	for (int i = 0; i < n; ++i) {
     	std::string s;
      	std::cin >> s;
      	mp[s] += 1;
    }
  
  	std::cout << "AC x " + mp["AC"] << '\n';
  	std::cout << "WA x " + mp["WA"] << '\n';
  	std::cout << "TLE x " + mp["TLE"] << '\n';
  	std::cout << "RE x " + mp["RE"] << '\n';
  	
  
 	return 0; 
}

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

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

int main(){
  int n;
  vector< string > sample(4);
  sample[0] = "AC", sample[1] = "WA", sample[2] = "TLE", sample[3] = "RE";
  vector< int > a(4, 0);
  cin >> n;
  while( n-- ){
    string s;
    cin >> s;
    for(int i = 0 ; i < 4 )
      if( s == sample[i] )
      	a[i]++;
  }
  for(int i = 0 ; i < 4 ; i++)
    cout << sample[i] << " x " << a[i] << endl;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before ')' token
   13 |     for(int i = 0 ; i < 4 )
      |                          ^~
      |                          ;
Language: C

#include<iostream>
using namespace std;
int main(){
    int N;
    cin >> N;
    int C[4] = {0,0,0,0};
    for (int i = 0; i < N; i++){
        string S;
        cin >> S;
        if(S=="AC")C[0]++;
        else if(S=="WA")C[1]++;
        else if(S=="TLE")C[2]++;
        else C[3]++;
    }
    cout << "AC x " << C[0] << endl;
    cout << "WA x " << C[1] << endl;
    cout << "TLE x " << C[2] << endl;
    cout << "CE x " << C[3] << endl;
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
  int N;
  cin >> N;
  vector<int> s(N);
  for(int i =0; i < N; i++){
    cin >> s.at(i);
  }
  
  //表示されるのは'AC','WA','TLE','RE'
  int AC = 0;
  int wA = 0;
  int TLE = 0;
  int RE = 0;
  
  for ( int i = 0; i < N; i++){
    if(s.at(i) == "AC" )
      AC++;
    else if (s.at(i) == "WA")
      WA++;
    else if (S.at(i) == "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: In function 'int main()':
a.cc:20:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     if(s.at(i) == "AC" )
      |        ~~~~~~~~^~~~~~~
a.cc:22:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     else if (s.at(i) == "WA")
      |              ~~~~~~~~^~~~~~~
a.cc:23:7: error: 'WA' was not declared in this scope; did you mean 'wA'?
   23 |       WA++;
      |       ^~
      |       wA
a.cc:24:14: error: 'S' was not declared in this scope
   24 |     else if (S.at(i) == "TLE")
      |              ^
a.cc:30:21: error: 'WA' was not declared in this scope; did you mean 'wA'?
   30 |   cout << "WA x " + WA << endl;
      |                     ^~
      |                     wA
Language: Java


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Start000 {

	public static void main(String[] args) {
		int testNum;
		int judgeAC = 0;
		int judgeWA = 0;
		int judgeTLE = 0;
		int judgeRE = 0;


		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		try {
			testNum =Integer.parseInt(reader.readLine());

			for (int i = 0; i < testNum; i++) {
				String judge = reader.readLine();
//				if (judge == "AC") {
//					judgeAC++;
//				}
				if (judge.equals("AC")) {
					judgeAC++;
				}
				else if (judge.equals("WA")) {
					judgeWA++;
				}
				else if (judge.equals("TLE")) {
					judgeTLE++;
				}
				else if(judge.equals("RE")) {
					judgeRE++;
				}
			}
			System.out.println("AC x "+judgeAC);
			System.out.println("WA x "+judgeWA);
			System.out.println("TLE x "+judgeTLE);
			System.out.println("RE x "+judgeRE);

		} catch (IOException e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}

	}

}


Compiler output:
Main.java:6: error: class Start000 is public, should be declared in a file named Start000.java
public class Start000 {
       ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	int a=0,w=0,t=0,r=0;
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	for(int i=0;i<N;i++){
          String s = sc.nextInt();
          if(s.equals("AC")){
            a++
          }
          if(s.equals("WA")){
            w++
          }
          if(s.equals("TLE")){
            t+
          }
          if(s.equals("RE")){
            r++
          }
        }
      	System.out.println("AC x "+a);
      	System.out.println("WA x "+w);
      	System.out.println("TLE x "+t);
      	System.out.print("RE x "+r);
	}
}

Compiler output:
Main.java:10: error: ';' expected
            a++
               ^
Main.java:13: error: ';' expected
            w++
               ^
Main.java:17: error: illegal start of expression
          }
          ^
Main.java:16: error: not a statement
            t+
             ^
Main.java:19: error: ';' expected
            r++
               ^
5 errors
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
 
int main() {
	int t;
  	cin >> t;
  
  while(t--) {
   string s;
    
    cnt[s]++;
  }
  
  int x[] = {"AC", "WA", "TLE", "RE"};
  
  for(int i = 0; i < 4; i++) {
   cout << x[i] << " x " << cnt[x[i]] << "\n";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |     cnt[s]++;
      |     ^~~
      |     int
a.cc:16:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |   int x[] = {"AC", "WA", "TLE", "RE"};
      |              ^~~~
      |              |
      |              const char*
a.cc:16:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |   int x[] = {"AC", "WA", "TLE", "RE"};
      |                    ^~~~
      |                    |
      |                    const char*
a.cc:16:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |   int x[] = {"AC", "WA", "TLE", "RE"};
      |                          ^~~~~
      |                          |
      |                          const char*
a.cc:16:33: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |   int x[] = {"AC", "WA", "TLE", "RE"};
      |                                 ^~~~
      |                                 |
      |                                 const char*
a.cc:19:29: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |    cout << x[i] << " x " << cnt[x[i]] << "\n";
      |                             ^~~
      |                             int
Language: C++

#include<bits/stdc++.h>

using namespace std;


int main() {
	int t;
  	cin >> t;
  
  while(t--) {
   string s;
    
    cnt[s]++;
  }
  
  int x[] = {'AC', 'WA', 'TLE', 'RE'};
  
  for(int i = 0; i < 4; i++) {
   cout << x[i] << " x " << cnt[x[i]] << "\n";
  }
  
}

Compiler output:
a.cc:16:14: warning: multi-character character constant [-Wmultichar]
   16 |   int x[] = {'AC', 'WA', 'TLE', 'RE'};
      |              ^~~~
a.cc:16:20: warning: multi-character character constant [-Wmultichar]
   16 |   int x[] = {'AC', 'WA', 'TLE', 'RE'};
      |                    ^~~~
a.cc:16:26: warning: multi-character character constant [-Wmultichar]
   16 |   int x[] = {'AC', 'WA', 'TLE', 'RE'};
      |                          ^~~~~
a.cc:16:33: warning: multi-character character constant [-Wmultichar]
   16 |   int x[] = {'AC', 'WA', 'TLE', 'RE'};
      |                                 ^~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |     cnt[s]++;
      |     ^~~
      |     int
a.cc:19:29: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |    cout << x[i] << " x " << cnt[x[i]] << "\n";
      |                             ^~~
      |                             int
Language: Java

		Scanner sc = new Scanner(System.in);
		String[] l = sc.nextLine().split();
		int total = Integer.parseInt(l[0]);

		int a = 0;
		int w = 0;
		int t = 0;
		int r = 0;


		while (sc.hasNext()) {
          	switch(sc.nextLine()) {
             case "AC":
                a++;
                break;
             case "WA":
                w++;
                break;
             case "TLE":
                t++;
                break;
             case "RE":
                r++;
                break;
            }
		}
		System.out.println("AC x "+a);
		System.out.println("WA x "+w);
          		System.out.println("TLE x "+t);
          		System.out.println("RE x "+r);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: class, interface, enum, or record expected
		while (sc.hasNext()) {
		^
Main.java:15: error: class, interface, enum, or record expected
                break;
                ^
Main.java:16: error: class, interface, enum, or record expected
             case "WA":
             ^
Main.java:18: error: class, interface, enum, or record expected
                break;
                ^
Main.java:19: error: class, interface, enum, or record expected
             case "TLE":
             ^
Main.java:21: error: class, interface, enum, or record expected
                break;
                ^
Main.java:22: error: class, interface, enum, or record expected
             case "RE":
             ^
Main.java:24: error: class, interface, enum, or record expected
                break;
                ^
Main.java:25: error: class, interface, enum, or record expected
            }
            ^
Main.java:28: error: class, interface, enum, or record expected
		System.out.println("WA x "+w);
		^
Main.java:29: error: class, interface, enum, or record expected
          		System.out.println("TLE x "+t);
          		^
Main.java:30: error: class, interface, enum, or record expected
          		System.out.println("RE x "+r);
          		^
13 errors
Language: C++

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

#define maxn 100010

typedef long long ll;
typedef long double ld;
const int MAXI=INT_MAX;
const ll MAXL=LLONG_MAX;

int n;
string s;
map <string, int> dd;

int main(){
    //freopen("TASK.inp","r",stdin);
   // freopen("TASK.out","w",stdout);
    ios_base::sync_with_stdio(0);

    cin >> n;

    for (int i = 1; i <= n; i++){
        cin >> s;
        dd[s]++;
    }

    cout << "AC" << " " << "x" << " " << dd["AC"] << '\n';
    cout << "WA" << " " << "x" << " " << dd["WA"] << '\n';
    cout << "TLE" << " " << "x" << " " << dd["TLE"] << '\n';
    cout << "RE" << " " << "x" << " " << dd["RE"] << '\n';


    return 0;
}


Compiler output:
a.cc:1:9: fatal error: bits/stdc++.h : No such file or directory
    1 | #include<bits/stdc++.h >
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
int main(){
  int t;
  int c1=0,c2=0;c3=0,c4=0;
  cin>>t;
  while(t>0){
    string s;
    cin>>s;
    if(s=="AC")
      c1++;
    else if(s=="WA")
      c2++;
    else if(s=="TLE")
      c3++;
    else if(s=="RE")
      c4++;
    t--;
  }
  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: In function 'int main()':
a.cc:5:17: error: 'c3' was not declared in this scope; did you mean 'c2'?
    5 |   int c1=0,c2=0;c3=0,c4=0;
      |                 ^~
      |                 c2
a.cc:5:22: error: 'c4' was not declared in this scope; did you mean 'c2'?
    5 |   int c1=0,c2=0;c3=0,c4=0;
      |                      ^~
      |                      c2
Language: C++

#include <iostream>
using namespace std;
int main(){
  int t;
  int c1=0;c2=0;c3=0,c4=0;
  cin>>t;
  while(t>0){
    string s;
    cin>>s;
    if(s=="AC")
      c1++;
    else if(s=="WA")
      c2+=;
    else if(s=="TLE")
      c3++;
    else if(s=="RE")
      c4++;
    t--;
  }
  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: In function 'int main()':
a.cc:5:12: error: 'c2' was not declared in this scope; did you mean 'c1'?
    5 |   int c1=0;c2=0;c3=0,c4=0;
      |            ^~
      |            c1
a.cc:5:17: error: 'c3' was not declared in this scope; did you mean 'c1'?
    5 |   int c1=0;c2=0;c3=0,c4=0;
      |                 ^~
      |                 c1
a.cc:5:22: error: 'c4' was not declared in this scope; did you mean 'c1'?
    5 |   int c1=0;c2=0;c3=0,c4=0;
      |                      ^~
      |                      c1
a.cc:13:11: error: expected primary-expression before ';' token
   13 |       c2+=;
      |           ^
Language: C++

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

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


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

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

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

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

#define ll long long
int main(){
    int n,c0=0,c1=0,c2=0,c3=0;
    cin>>n;
    string v[n];
    for(int i=0;i<n;i++){
    cin>>v[i];
    }
    for(int i=0;i<n;i++){
        if(v[i]=="AC") c0++;
        if(v[i]=="WA") c1++;
        if(v[i]=="TLE") c2++;
        if(v[i]=="RE") c3++;
    }
    cout<<"AC x "<<c0<<"/nWA x "<<c1<<"/nTLE x "<<c2<<"/nRE x "<<c3;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>n;
      |     ^~~
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string v[n];
      |     ^~~~~~
a.cc:7:10: error: 'v' was not declared in this scope
    7 |     cin>>v[i];
      |          ^
a.cc:10:12: error: 'v' was not declared in this scope
   10 |         if(v[i]=="AC") c0++;
      |            ^
a.cc:11:12: error: 'v' was not declared in this scope
   11 |         if(v[i]=="WA") c1++;
      |            ^
a.cc:12:12: error: 'v' was not declared in this scope
   12 |         if(v[i]=="TLE") c2++;
      |            ^
a.cc:13:12: error: 'v' was not declared in this scope
   13 |         if(v[i]=="RE") c3++;
      |            ^
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"AC x "<<c0<<"/nWA x "<<c1<<"/nTLE x "<<c2<<"/nRE x "<<c3;
      |     ^~~~
Language: Java

import java.util.*;
import java.util.stream.Collectors;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    List<Integer> list = new ArrayList<Integer>();

    while (sn.hasNextLine()) {
      String str = sn.nextLine();
      list.add(Integer.parseInt(str));
    }
    
    Map<String, List<String>> grp = list.stream().collect(Collectors.groupingBy(s -> s));
    
    System.out.println("AC" + " x "  +  grp.getOrDefault("AC", Arrays.emptyList()).size() );
    System.out.println("WA" + " x "  +  grp.getOrDefault("WA", Arrays.emptyList()).size() );
    System.out.println("TLE" + " x "  +  grp.getOrDefault("TLE", Arrays.emptyList()).size() );
    System.out.println("RE" + " x "  +  grp.getOrDefault("RE", Arrays.emptyList()).size() );

  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    while (sn.hasNextLine()) {
           ^
  symbol:   variable sn
  location: class Main
Main.java:10: error: cannot find symbol
      String str = sn.nextLine();
                   ^
  symbol:   variable sn
  location: class Main
Main.java:14: error: incompatible types: inference variable T has incompatible bounds
    Map<String, List<String>> grp = list.stream().collect(Collectors.groupingBy(s -> s));
                                                         ^
    equality constraints: String
    lower bounds: Integer
  where T,K are type-variables:
    T extends Object declared in method <T,K>groupingBy(Function<? super T,? extends K>)
    K extends Object declared in method <T,K>groupingBy(Function<? super T,? extends K>)
Main.java:16: error: cannot find symbol
    System.out.println("AC" + " x "  +  grp.getOrDefault("AC", Arrays.emptyList()).size() );
                                                                     ^
  symbol:   method emptyList()
  location: class Arrays
Main.java:17: error: cannot find symbol
    System.out.println("WA" + " x "  +  grp.getOrDefault("WA", Arrays.emptyList()).size() );
                                                                     ^
  symbol:   method emptyList()
  location: class Arrays
Main.java:18: error: cannot find symbol
    System.out.println("TLE" + " x "  +  grp.getOrDefault("TLE", Arrays.emptyList()).size() );
                                                                       ^
  symbol:   method emptyList()
  location: class Arrays
Main.java:19: error: cannot find symbol
    System.out.println("RE" + " x "  +  grp.getOrDefault("RE", Arrays.emptyList()).size() );
                                                                     ^
  symbol:   method emptyList()
  location: class Arrays
7 errors
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
typedef long long int ll;
int main()
{
  ll t;
  string s;
  cin>>t;
  while(t--)
  {
    ll a[4]={0};
    cin>>s;
    if(s=="AC")
      a[0]++;
    else if(s=="WA")
      a[1]++;
    else if(s=="TLE")
      a[2]++;
    else if(s=="RE")
      a[3]++;
    else
      ;
  }
  cout<<"AC x "<<a[0]<<"\n";
  cout<<"WA x "<<a[1]<<"\n";
  cout<<"TLE x "<<a[2]<<"\n";
  cout<<"RE x"<<a[3]<<"\n";
  return 0;
}  

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

#include <iostream>
using namespace std;
int main(){
    int n;
    int a = 0;
    int w = 0;
    int t = 0;
    int r = 0;
    cin >> n;
    for (i = 1; i <= n; i++){
        cin >> s;
        if(s == "AC"){
            a++
        }
        else if (s == "WA"){
            w++
        }
        else if (s == "TLE"){
            t++
        }
        else (s == "RE"){
            r++
        }
        cout << "AC x " << a << endl;
        cout << "WA x " << w << endl;
        cout << "TLE x " << t << endl;
        cout << "RE x " << r << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'i' was not declared in this scope
   10 |     for (i = 1; i <= n; i++){
      |          ^
a.cc:11:16: error: 's' was not declared in this scope
   11 |         cin >> s;
      |                ^
a.cc:13:16: error: expected ';' before '}' token
   13 |             a++
      |                ^
      |                ;
   14 |         }
      |         ~       
a.cc:16:16: error: expected ';' before '}' token
   16 |             w++
      |                ^
      |                ;
   17 |         }
      |         ~       
a.cc:19:16: error: expected ';' before '}' token
   19 |             t++
      |                ^
      |                ;
   20 |         }
      |         ~
Language: C++

using namespace std;
int main(void){
    // Your code here!
   int a,c= 0,s= 0,d = 0,o = 0;
   string b;
   cin >> a;
   for(int i = 0;i < a;i++){
       cin >> b;
       
       if(b == "AC") c += 1;
       if(b == "WA") s += 1;
       if(b == "TLE") d += 1;
       if(b == "RE") o += 1;
   }
   
   
   cout << "AC x "<<c<< endl;
   cout << "WA x "<<s<< endl;
   cout << "TLE x "<<d<< endl;
   cout << "RE x "<<o<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'string' was not declared in this scope
    5 |    string b;
      |    ^~~~~~
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:6:4: error: 'cin' was not declared in this scope
    6 |    cin >> a;
      |    ^~~
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:8:15: error: 'b' was not declared in this scope
    8 |        cin >> b;
      |               ^
a.cc:17:4: error: 'cout' was not declared in this scope
   17 |    cout << "AC x "<<c<< endl;
      |    ^~~~
a.cc:17:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:25: error: 'endl' was not declared in this scope
   17 |    cout << "AC x "<<c<< 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;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int N;
    cin >> N;
    vector<string> S(N);
    vector<string> J(3);
    J = {"AC","WA","TLE","RE"}
    vector<int> C(3);
    rep(i, N + 1){
	cin >> S(i);
	rep(m, 4){
	    if(S(i) == J(m)){
		C(m) += 1;
	    }
	}
    }
    rep(i, 4){
	cout << J(i) + "*" + C(i) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ';' before 'vector'
   10 |     J = {"AC","WA","TLE","RE"}
      |                               ^
      |                               ;
   11 |     vector<int> C(3);
      |     ~~~~~~                     
a.cc:13:17: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   13 |         cin >> S(i);
      |                ~^~~
a.cc:15:17: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |             if(S(i) == J(m)){
      |                ~^~~
a.cc:15:25: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |             if(S(i) == J(m)){
      |                        ~^~~
a.cc:16:17: error: 'C' was not declared in this scope
   16 |                 C(m) += 1;
      |                 ^
a.cc:21:18: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                 ~^~~
a.cc:21:30: error: 'C' was not declared in this scope
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                              ^
Language: C++

int main(int argc, char const *argv[])
{

    int N;
    scanf("%d", &N);

    unordered_map<string, int> cnt;
    for (int i = 0; i < N; i++) {
        string s;
        cin>>s;
        cnt[s]++;
    }

    cout<<"AC x "<<cnt["AC"]<<endl;
    cout<<"WA x "<<cnt["WA"]<<endl;
    cout<<"TLE x "<<cnt["TLE"]<<endl;
    cout<<"RE x "<<cnt["RE"]<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d", &N);
      |     ^~~~~
a.cc:7:5: error: 'unordered_map' was not declared in this scope
    7 |     unordered_map<string, int> cnt;
      |     ^~~~~~~~~~~~~
a.cc:7:19: error: 'string' was not declared in this scope
    7 |     unordered_map<string, int> cnt;
      |                   ^~~~~~
a.cc:7:27: error: expected primary-expression before 'int'
    7 |     unordered_map<string, int> cnt;
      |                           ^~~
a.cc:9:15: error: expected ';' before 's'
    9 |         string s;
      |               ^~
      |               ;
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin>>s;
      |         ^~~
a.cc:10:14: error: 's' was not declared in this scope
   10 |         cin>>s;
      |              ^
a.cc:11:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |         cnt[s]++;
      |         ^~~
      |         int
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"AC x "<<cnt["AC"]<<endl;
      |     ^~~~
a.cc:14:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |     cout<<"AC x "<<cnt["AC"]<<endl;
      |                    ^~~
      |                    int
a.cc:14:31: error: 'endl' was not declared in this scope
   14 |     cout<<"AC x "<<cnt["AC"]<<endl;
      |                               ^~~~
Language: C++

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

int main(){
  int n,a,w,t,r;
  cin >> n;
  for(int i=0;i<n;i++){
    string s;
    cin >> s;
    if(s=="AC"){
      a++;
    }
    else if(s=="WA"){
      w++;
    }
    else if(s=="TLE"){
      t++;
    }
    else{
      r++;
    }
  }
    cout << "AC * " << a;
    cout << "WA * " << w;
    cout << "TLE * " << t;
    cout << "RE * " << r;
    return 0;
  }
    


Compiler output:
a.cc:1:9: fatal error: bits/stdc+++.h: No such file or directory
    1 | #include<bits/stdc+++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int n,a,w,t,r;
  cin >> n;
  for(int i=0;i<n;i++){
    string s;
    cin >> s;
    if(s=="AC"){
      a++;
    }
    else if(s=="WA"){
      w++;
    }
    else if(s=="TLE"){
      t++;
    }
    else{
      r++;
    }
    cout << "AC * " << a;
    cout << "WA * " << w;
    cout << "TLE * " << t;
    cout << "RE * " << r;
    return 0;
  }
    


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

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

int main(){
  int n,a,w,t,r;
  cin >> n;
  for(int i=0;i<n;i++){
    string s;
    cin >> s;
    if(s=="AC"){
      a++;
    }
    else if(s=="WA"){
      w++;
    }
    else if(s=="TLE"){
      t++;
    }
    else{
      r++;
    }
    cout << "AC * " << a;
    cout << "WA * " << w;
    cout << "TLE * " << t;
    cout << "RE * " << r;
    return 0;
  }
    

Compiler output:
a.cc:1:9: fatal error: bits/stdc+++.h: No such file or directory
    1 | #include<bits/stdc+++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string x;
	int ac,wa,re,tel,n;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>x;
		if(x="AC") ac++;
		else if(x="RE") re++;
		else if(x="WA") wa++;
		else if(TLE) tel++;
	}
	cout<<"AC x "<<ac<<endl;
	cout<<"WA x "<<wa<<endl;
	cout<<"TLE x "<<tel<<endl;
	cout<<"RE x "<<re<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |                 if(x="AC") ac++;
      |                    ~^~~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
a.cc:10:26: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"RE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |                 else if(x="RE") re++;
      |                         ~^~~~~
      |                          |
      |                          std::__cxx11::basic_string<char>
a.cc:11:26: error: could not convert 'x.std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |                 else if(x="WA") wa++;
      |                         ~^~~~~
      |                          |
      |                          std::__cxx11::basic_string<char>
a.cc:12:25: error: 'TLE' was not declared in this scope
   12 |                 else if(TLE) tel++;
      |                         ^~~
Language: Java

import java.util.*;
public class Solution {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        int[] arr = new int[4];
        while (t-- > 0) {
            String s = sc.next();
            if (s.equals("AC")) {
                arr[0]++;
            } else if (s.equals("WA")) {
                arr[1]++;
            } else if (s.equals("TLE")) {
                arr[2]++;
            } else {
                arr[3]++;
            }
        }
        
        System.out.println("AC X " + arr[0]);
        System.out.println("WA X " + arr[1]);
        System.out.println("TLE X " + arr[2]);
        System.out.println("RE X " + arr[3]);
 
    }
}

Compiler output:
Main.java:2: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
	int N;
	cin >> N;
	string *a = new string[N];
	for(int i=0; i < N; i++){
		cin >> a[i];
	}
	int AC=0, WC=0, TLE=0, RE=0;
	for(int i=0; i < N; i++){
		if(a[i]=="AC"){
			AC++;
		}
		else if(a[i]=="WA"){
			WA++;
		}
		else if(a[i]=="TLE"){
			TLE++;
		}
		else{
			RE++;
		}
	}  
	cout << "AC * " << AC << endl;
	cout << "WA * " << WA << endl;
	cout << "TLE * " << TLE << endl;
	cout << "RE * " << RE << endl;
	delete[] a;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: 'WA' was not declared in this scope; did you mean 'WC'?
   18 |                         WA++;
      |                         ^~
      |                         WC
a.cc:28:28: error: 'WA' was not declared in this scope; did you mean 'WC'?
   28 |         cout << "WA * " << WA << endl;
      |                            ^~
      |                            WC
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
	        Scanner console = new Scanner(System.in);
	        int N = Integer.valueOf(console.nextLine()); // 文字数
	        String S = console.nextLine(); // AとBの並び
      		
      		int ac = 0;
      		int wa = 0;
      		int tle = 0;
            int re = 0;
      		for (int i = 0; i < N; i++) {
              String S = sc.nextLine();
			  if(S.equals("AC")) {
                ac++;
              }else if(S.equals("WA")) {
                wa++;
              }else if(S.equals("TLE")) {
                tle++;
              }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:13: error: variable S is already defined in method main(String[])
              String S = sc.nextLine();
                     ^
Main.java:13: error: cannot find symbol
              String S = sc.nextLine();
                         ^
  symbol:   variable sc
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
	        Scanner console = new Scanner(System.in);
	        int N = Integer.valueOf(console.nextLine()); // 文字数
	        String S = console.nextLine(); // AとBの並び
      		
      		int ac = 0;
      		int wa = 0;
      		int tle = 0;
            int re = 0;
      		for (int i = 0; i < N; i++) {
              String S = sc.nextLine();
			  if(S.equals("AC")) {
                ac++;
              }else if(S.equals("WA")) {
                wa++;
              }else if(S.equals("TLE")) {
                tle++;
              }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:24: error: ')' or ',' expected
              System.out.println("AC x " ac);
                                        ^
Main.java:24: error: not a statement
              System.out.println("AC x " ac);
                                         ^
Main.java:24: error: ';' expected
              System.out.println("AC x " ac);
                                           ^
Main.java:25: error: ')' or ',' expected
              System.out.println("WA x " wa);
                                        ^
Main.java:25: error: not a statement
              System.out.println("WA x " wa);
                                         ^
Main.java:25: error: ';' expected
              System.out.println("WA x " wa);
                                           ^
Main.java:26: error: ')' or ',' expected
              System.out.println("TLE x " tle);
                                         ^
Main.java:26: error: not a statement
              System.out.println("TLE x " tle);
                                          ^
Main.java:26: error: ';' expected
              System.out.println("TLE x " tle);
                                             ^
Main.java:27: error: ')' or ',' expected
              System.out.println("RE x " re);
                                        ^
Main.java:27: error: not a statement
              System.out.println("RE x " re);
                                         ^
Main.java:27: error: ';' expected
              System.out.println("RE x " re);
                                           ^
12 errors
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string ac="AC";
  string wa="WA";
  string tle="TLE";
  string re="RE";
  string input;
  int n;
  cin >> n;
  int array[4];
  for(int i=0;i<4;++i){
    array[i]=0;
  }
  for(int i=0;i<n;++i){
    cin >> input;
    if(input==ac){
      array[0]++;
    }
    else if(input == wa){
      array[1]++;
    }
    else if(input == tle){
      array[2]++;
    }
    else if(input == re){
      array[3]++
    }
  }
  cout << "AC x " << array[0] << endl;
  cout << "WA x " << array[1] << endl;
  cout << "TLE x " << array[2] << endl;
  cout << "RE x " << array[3] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:17: error: expected ';' before '}' token
   28 |       array[3]++
      |                 ^
      |                 ;
   29 |     }
      |     ~
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int number = scanner.nextInt();
		int acCount = 0;
		int waCount = 0;
		int tleCount = 0;
		int reCount = 0;
		while (scanner.hasNext()) {
			String str = scanner.next();
			if (str.equals("AC")) {
				acCount++;
			} else if (str.equals("WA")) {
				waCount++;
			} else if (str.equals("TLE")) {
				tleCount++;
			} else if (str.equals("RE")) {
				reCount++;
			}
		}
		System.out.println("AC x " + acCount);
		System.out.println("WA x " + waCount);
		System.out.println("TLE x " + tleCount);
		System.out.println("RE x " + reCount);
	}
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  string s;
  int ans[5]={};
  
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>s;
    if(s=="AC") ans[0]++;
    if(s=="WA") ans[1]++;
    if(s=="TLE") ans[2]++;
    if(s=="RE") ans[3]++;
  }
  
  cout<<"AC × "<<ans[0]<<endl;
  cout<<"WA × "<<ans[1]<<endl;
  cout<<"TLE × "<<ans[2]<<endl;
  cout<<"RE × "<<ans[3]<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected '}' at end of input
   21 |   cout<<"RE × "<<ans[3]<<endl;
      |                               ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^