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

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#include<cmath>
using namespace std;
#define ll long long int
#define mod 1000000007
#define adjSize 100000
#define MAX 1000000000
#ifdef FASTIO
#endif
/*
	Coded by Archit Shinde
*/
bool prime[(ll)1e7+1]; 
 
bool sortbysec(const pair<int,int> &a, 
              const pair<int,int> &b) 
{ 
    return (a.second < b.second); 
}
 
unordered_set<ll> primeFactors(int n)  
{  
    // Print the number of 2s that divide n  
    unordered_set<ll> result;
    if(n%2==0){
    	result.insert(2);
    	while(n%2==0){
    		n=n/2;
    	} 
    }
  
    // n must be odd at this point. So we can skip  
    // one element (Note i = i +2)  
    for (int i = 3; i <= sqrt(n); i = i + 2)  
    {  
        // While i divides n, print i and divide n  
        if(n%i==0){
        	result.insert(i);
        	while(n%i==0){
        		n=n/i;
        	}
        }
    }  
  
    // This condition is to handle the case when n  
    // is a prime number greater than 2  
    if (n > 2)  
    	result.insert(n);
    return result;
}  

vector<ll> printDivisors(int n) 
{ 
    // Note that this loop runs till square root 
    vector<ll> div;
    for (int i=1; i<=sqrt(n); i++) 
    { 
        if (n%i == 0) 
        { 
            // If divisors are equal, print only one 
            if (n/i == i && i%2 != 0 && i != 1){
                div.push_back(i);
            }
  
            else // Otherwise print both 
            {
            	if(i%2!=0)
                	div.push_back(i);
                if((n/i) %2!=0)	
                	div.push_back(n/i);

            }
        } 
    }
    //sort(div.begin(), div.end());
    return div;
} 

unordered_set<ll> SieveOfEratosthenes(ll n) 
{ 
	unordered_set<ll> u;
    memset(prime, true, sizeof(prime)); 
  
    for (ll p=2; p*p<=n; p++) 
    { 
        if (prime[p] == true) 
        {  
            for (ll i=p*p; i<=n; i += p) 
                prime[i] = false; 
        } 
    } 
  
    for (ll p=2; p<=n; p++) 
       if (prime[p]) 
          u.insert(p);
    return u;
}

ll gcd(ll a, ll b) 
{ 
    if (b == 0) 
        return a; 
    return gcd(b, a % b);  
      
}

ll product(ll num, ll result[], ll size){
	ll m = 0;
	ll i = 0;
	ll ans;
	for(i = 0; i<size; i++){
		ans = num*result[i]+m;
		m = ans/10;
		result[i] = ans%10;
	}
	while(m!=0){
		result[size] = m%10;
		m /= 10;
		size++;
	}
	return size;
}
void factorial(ll n){
	ll result[159];
	result[0] = 1;
	ll i, size = 1;
	for(i = 2; i<=n; i++){
		size = product(i, result, size);
	}
	for(i = size-1; i>=0; i--){
		cout<<result[i];
	}
}


int main()
{
	ios::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
	ll t;
	cin>>t;
	while(t--){
		string str;
		cin>>str;
		map<string, ll> cnt;
	}
	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()':
a.cc:147:24: error: 'cnt' was not declared in this scope; did you mean 'int'?
  147 |         cout<<"AC x "<<cnt["AC"]<<endl;
      |                        ^~~
      |                        int
Language: C++

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

int main() {
    int n;
    cin >> n;
    vector<int> cnt(4, 0);
    for (int i = 0; i < n; i++) {
        string s;
        cin >> s;
        if (s == "AC") cnt[0]++;
        if (s == "WA") cnt[1]++;
        if (s == "TLE") cnt[2]++;
        if (s == "RE") 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:
a.cc:1:3: error: stray '#' in program
    1 | ｖ#include<bits/stdc++.h>
      |   ^
a.cc:1:1: error: '\U0000ff56' does not name a type
    1 | ｖ#include<bits/stdc++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<int> cnt(4, 0);
      |     ^~~~~~
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     vector<int> cnt(4, 0);
      |            ^~~
a.cc:9:9: error: 'string' was not declared in this scope
    9 |         string s;
      |         ^~~~~~
a.cc:10:16: error: 's' was not declared in this scope
   10 |         cin >> s;
      |                ^
a.cc:11:24: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |         if (s == "AC") cnt[0]++;
      |                        ^~~
      |                        int
a.cc:12:24: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |         if (s == "WA") cnt[1]++;
      |                        ^~~
      |                        int
a.cc:13:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |         if (s == "TLE") cnt[2]++;
      |                         ^~~
      |                         int
a.cc:14:24: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |         if (s == "RE") cnt[3]++;
      |                        ^~~
      |                        int
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "AC x " << cnt[0] << endl;
      |     ^~~~
a.cc:17:24: error: 'cnt' was not declared in this scope; did you mean 'int'?
   17 |     cout << "AC x " << cnt[0] << endl;
      |                        ^~~
      |                        int
a.cc:17:34: error: 'endl' was not declared in this scope
   17 |     cout << "AC x " << cnt[0] << endl;
      |                                  ^~~~
Language: C++

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

int main(){
    int N;
    cin >> N;
    vector<int> name(N);
    for (int i=0;i<N;i++){
        cin >> name.at(i);
    }
    int c0=0,c1=0,c2=0,c3=0;
    for (int i=0;i<N;i++){
        if (name.at(i)=="AC"){
            c0++;
        }
        if (name.at(i)=="WA"){
            c1++;
        }
        if (name.at(i)=="TLE"){
            c2++;
        }
        if (name.at(i)=="RE"){
            c3++;
        }
    }
    cout << "AC x " << c0 << endl;
    cout << "WA x " << c1 << endl;
    cout << "TLE x " << c2 << endl;
    cout << "RE x " << c3 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if (name.at(i)=="AC"){
      |             ~~~~~~~~~~^~~~~~
a.cc:16:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if (name.at(i)=="WA"){
      |             ~~~~~~~~~~^~~~~~
a.cc:19:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         if (name.at(i)=="TLE"){
      |             ~~~~~~~~~~^~~~~~~
a.cc:22:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |         if (name.at(i)=="RE"){
      |             ~~~~~~~~~~^~~~~~
Language: Java

import java.util.Scanner;
public class B_Judge_Status_Summary {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int ac = 0,wa=0,tle=0,re=0;
        while(n-->0){
            String cases = in.next();
            if(cases.equals("AC"))
                ac++;
            else if(cases.equals("WA"))
                wa++;
            else if(cases.equals("TLE"))
                tle++;
            else if(cases.equals("RE"))
                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);
        in.close();
    }
}

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

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

int main()
{
  int n;
  cin>>n;
  
  map<string,int> mp;
  mp["AC"]=0;
  mp["WA"]=0;
  mp["TLE"]=0;
  mp["RE"]=0;
  
  for(int i=0;i<n;i++)
  {
    string s;
    cin>>s;
    mp[s]++;
  }
  
  for(auto it=mp.begin();it!=mp.end();it++)
    cout<<it->first<<"x"<<it->second<<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:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++


	int N{};
	map<string, int> con;

	cin >> N;
	for(int i = 0; i < N; ++i)
	{
		string S;
		cin >> S;

		auto it = con.find(S);
		if(it != con.end())
		{
			*it++;
		}
		else
		{
			con[S] = 1;
		}
	}

	for(auto const& i : con)
	{
		cout << i.first << " x " << i.second << "\n";
	}

Compiler output:
a.cc:3:9: error: 'map' does not name a type
    3 |         map<string, int> con;
      |         ^~~
a.cc:5:9: error: 'cin' does not name a type
    5 |         cin >> N;
      |         ^~~
a.cc:6:9: error: expected unqualified-id before 'for'
    6 |         for(int i = 0; i < N; ++i)
      |         ^~~
a.cc:6:24: error: 'i' does not name a type
    6 |         for(int i = 0; i < N; ++i)
      |                        ^
a.cc:6:31: error: expected unqualified-id before '++' token
    6 |         for(int i = 0; i < N; ++i)
      |                               ^~
a.cc:22:9: error: expected unqualified-id before 'for'
   22 |         for(auto const& i : con)
      |         ^~~
Language: C++

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

int main(){
  int[] a={0,0,0,0};
  int n;
  cin >> n;
  for(int i=0;i<n;i++){
    string s;
    cin >> s;
    switch(s){
      case "AC":
        a[0]++;
        break;
      case "WA":
        a[1]++;
        break;
      case "TLE":
        a[2]++;
        break;
      case "RE":
        a[3]++;
        break;
    }
  }
  cout << "AC x " << a[0] << endl;
  cout << "WA x " << a[1] << endl;
  cout << "TLE x " << a[2] << endl;
  cout << "RE x " << a[3] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: structured binding declaration cannot have type 'int'
    5 |   int[] a={0,0,0,0};
      |      ^~
a.cc:5:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:6: error: empty structured binding declaration
a.cc:5:9: error: expected initializer before 'a'
    5 |   int[] a={0,0,0,0};
      |         ^
a.cc:11:12: error: switch quantity not an integer
   11 |     switch(s){
      |            ^
a.cc:13:9: error: 'a' was not declared in this scope
   13 |         a[0]++;
      |         ^
a.cc:26:22: error: 'a' was not declared in this scope
   26 |   cout << "AC x " << a[0] << endl;
      |                      ^
Language: C++

using namespace std;

int main() {
    int N;
    cin >> N;
    
    vector<string> jR(N);
    for(int i = 0; i < N; i++){
        cin >> jR[i];
    }
    
    int acNum = 0;
    int waNum = 0;
    int tleNum = 0;
    int reNum = 0;
    
    for(int i = 0; i < N; i++){
        if(jR[i] == "AC"){
            acNum++;
        }else if(jR[i] == "WA"){
            waNum++;
        }else if(jR[i] == "TLE"){
            tleNum++;
        }else if(jR[i] == "RE"){
            reNum++;
        }
    }
    
    cout << "AC × " << acNum << endl;
    cout << "WA × " << waNum << endl;
    cout << "TLE × " << tleNum << endl;
    cout << "RE × " << reNum << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> N;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:5: error: 'vector' was not declared in this scope
    7 |     vector<string> jR(N);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:7:12: error: 'string' was not declared in this scope
    7 |     vector<string> jR(N);
      |            ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:7:20: error: 'jR' was not declared in this scope
    7 |     vector<string> jR(N);
      |                    ^~
a.cc:29:5: error: 'cout' was not declared in this scope
   29 |     cout << "AC × " << acNum << endl;
      |     ^~~~
a.cc:29:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:33: error: 'endl' was not declared in this scope
   29 |     cout << "AC × " << acNum << 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;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < n; i++){
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < n; i++){
      |        ^
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
    int[] cnt = new int[4];
    for (int i=0; i<4; i++){
      cnt[i]=0;
    }
    String[] s = new String[n];
    for (int i=0; i<n; i++) {
      s[i] = sc.next();
      switch s[i] {
        case "AC":cnt[0]++;
        case "WA":cnt[1]++;
        case "TLE":cnt[2]++;
        case "RE":cnt[3]++;
      }
    }
    sc.close();
    System.out.println("AC x " +cnt[0]);
        System.out.println("WA x " +cnt[1]);
        System.out.println("TLE x " +cnt[2]);
        System.out.println("RE x " +cnt[3]);
  }
}

Compiler output:
Main.java:14: error: '(' expected
      switch s[i] {
            ^
Main.java:14: error: ')' expected
      switch s[i] {
                 ^
2 errors
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

#include <iostream>
#include <string>
#include <vector>
#include <map>

using namespace std;
int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int n;
    cin >> n;
    string tmp;
    map<string, int> cases;
    for(int i = 0; i < n; ++i){
        cin >> tmp;
        cases[tmp]++;
    }
    vector<string> outputs {"AC", "WA", "TLE", "RE"};
    for(auto&& key : outputs){
        cout << key << " x " << cases[key] << endl;
    }
    return 0;

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

#include<iostream>
using namespace std;
void solve()
{
	int n;
	cin>>n;
	string s;
	map<string, int> mp;
	for(int i = 0; i<n; i++)
	{
		cin>>s;
		mp[s]++;
	}
	cout<<"AC x "<<mp["AC"]<<"\n";
	cout<<"WA x "<<mp["WA"]<<"\n";
	cout<<"TLE x "<<mp["TLE"]<<"\n";
	cout<<"RE x "<<mp["RE"]<<"\n";
}
int main()
{
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:8:9: error: 'map' was not declared in this scope
    8 |         map<string, int> mp;
      |         ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include<iostream>
  +++ |+#include <map>
    2 | using namespace std;
a.cc:8:19: error: expected primary-expression before ',' token
    8 |         map<string, int> mp;
      |                   ^
a.cc:8:21: error: expected primary-expression before 'int'
    8 |         map<string, int> mp;
      |                     ^~~
a.cc:12:17: error: 'mp' was not declared in this scope
   12 |                 mp[s]++;
      |                 ^~
a.cc:14:24: error: 'mp' was not declared in this scope
   14 |         cout<<"AC x "<<mp["AC"]<<"\n";
      |                        ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	while(n--)
	{
		string s;
		cin>>s;
		int ac=0,wa=0,tle=0,re=0;
		if(s=="AC")
			ac++;
		if(s=="WA")
			wa++;
		if(s=="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:21:24: error: 'ac' was not declared in this scope
   21 |         cout<<"AC x "<<ac<<"\n";
      |                        ^~
a.cc:22:24: error: 'wa' was not declared in this scope
   22 |         cout<<"WA x "<<wa<<"\n";
      |                        ^~
a.cc:23:25: error: 'tle' was not declared in this scope
   23 |         cout<<"TLE x "<<tle<<"\n";
      |                         ^~~
a.cc:24:24: error: 're' was not declared in this scope
   24 |         cout<<"RE x "<<re<<"\n";
      |                        ^~
Language: C

#include <sdio.h>

int main(){
  int x;
  scanf("%d", &x);
  int a[4]={0};
  char s[4];
  for(int i=0; i<x; i++){
    gets(s);
    if(s[0]=='A') a[0]++;
    else if(s[0]=='W') a[1]++;
    else if(s[0]=='T') a[2]++;
    else if(s[0]=='R') a[3]++;
  }
  printf("AC x %d\n", a[0]);
  printf("WA x %d\n", a[1]);
  printf("TLE x %d\n", a[2]);
  printf("RE x %d\n", a[3]);
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin >> a;
  int ac = 0, wa = 0, tle = 0, re = 0;
  char s;
  for(int i = 0;i < a;i++){
    cin >> s;
    if(s == "AC"){
      ac++;
    }
    if(s == "WA"){
      wa++;
    }
    if(s == "TLE"){
      tle++;
    }
    if(s == "RE"){
      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:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(s == "AC"){
      |        ~~^~~~~~~
a.cc:13:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(s == "WA"){
      |        ~~^~~~~~~
a.cc:16:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     if(s == "TLE"){
      |        ~~^~~~~~~~
a.cc:19:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     if(s == "RE"){
      |        ~~^~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin>>n;
    int count[4]={};
    while(n--){
        string s;
        cin>>s;
        if(s=="AC"){
            count[0]++;
        }
        else if(s=="WA"){
            count[1]++:
        }
        else if(s=="TLE"){
            count[2]++;
        }
        else{
            count[3]++;
        }
    }
    cout<<"AC x "<<count[0]<<endl;
    cout<<"WA x "<<count[1]<<endl;
    cout<<"TLE x "<<count[2]<<endl;
    cout<<"RE x "<<count[3]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected ';' before ':' token
   16 |             count[1]++:
      |                       ^
      |                       ;
Language: C

#include <stdio.h>
#include<string.h>
 
int main(void){
    int size;
 
    char n[4];
    int A=0;
    int B=0;
    int C=0;
    int D=0;
    scanf("%d", &size);
 
    for(int i = 0; i < l; i++) {
        scanf("%s", n);
 
        if (strcmp("AC",n)==0){
            A++ ;
        }
        else if (strcmp("WA",n)==0){
            B++ ;
        }
        else if (strcmp("TLE",n)==0){
            C++ ;
        }
        else if (strcmp("RE",n)==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:14:24: error: 'l' undeclared (first use in this function)
   14 |     for(int i = 0; i < l; i++) {
      |                        ^
main.c:14:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include<string.h>
int main(void){
    int size;

    char n[4];
    int A;
    int B;
    int C;
    int D;
    scanf("%d", &size);

    do {
        scanf("%s", n );

        if (strcmp("AC",n)==0){
            A++ ;
        }
        else if (strcmp("WA",n)==0){
            B++ ;
        }
        else if (strcmp("TLE",n)==0){
            C++ ;
        }
        else if (strcmp("RE",n)==0){
            D++ ;
        }
    } while(int i = 0; i < size; i++);
    printf("AC * %d ￥n", A);
    printf("WA * %d ￥n", B);
    printf("TLE * %d ￥n", C);
    printf("RE * %d ￥n", D);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:13: error: expected expression before 'int'
   28 |     } while(int i = 0; i < size; i++);
      |             ^~~
Language: C

int main(void){
    int size;

    char n[4];
    int A;
    int B;
    int C;
    int D;
    scanf("%d", &size);

    do {
        scanf("%s", &n );

        if (strcmp("AC",n)==0){
            A++ ;
        }
        else if (strcmp("WA",n)==0){
            B++ ;
        }
        else if (strcmp("TLE",n)==0){
            C++ ;
        }
        else if (strcmp("RE",n)==0){
            D++ ;
        }
    } while(int i = 0; i < size; i++);
    printf("AC * %d ￥n", A);
    printf("WA * %d ￥n", B);
    printf("TLE * %d ￥n", C);
    printf("RE * %d ￥n", D);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 |     scanf("%d", &size);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:9:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 |     scanf("%d", &size);
      |     ^~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:14:13: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   14 |         if (strcmp("AC",n)==0){
      |             ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcmp'
  +++ |+#include <string.h>
    1 | int main(void){
main.c:26:13: error: expected expression before 'int'
   26 |     } while(int i = 0; i < size; i++);
      |             ^~~
main.c:27:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |     printf("AC * %d ￥n", A);
      |     ^~~~~~
main.c:27:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:27:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
#include<string.h>

int main(void){
    int size;

    char n[4];
    int A;
    int B;
    int C;
    int D;
    scanf("%d", &size)

    do {
        scanf("%s", &n );

        if (strcmp("AC",n)==0){
            A++ ;
        }
        else if (strcmp("WA",n)==0){
            B++ ;
        }
        else if (strcmp("TLE",n)==0){
            C++ ;
        }
        else if (strcmp("RE",n)==0){
            D++ ;
        }
    } while(int i = 0; i < size; i++);
    printf("AC * %d ￥n", A);
    printf("WA * %d ￥n", B);
    printf("TLE * %d ￥n", C);
    printf("RE * %d ￥n", D);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected ';' before 'do'
   12 |     scanf("%d", &size)
      |                       ^
      |                       ;
   13 | 
   14 |     do {
      |     ~~
Language: C

#include <stdio.h>
#include<string.h>

int main(void){
    int size;

    char n[];
    int A;
    int B;
    int C;
    int D;
    scanf("%d", &size)

    do {
        scanf("%s", &n );

        if (strcmp("AC",n)==0){
            A++ ;
        }
        else if (strcmp("WA",n)==0){
            B++ ;
        }
        else if (strcmp("TLE",n)==0){
            C++ ;
        }
        else if (strcmp("RE",n)==0){
            D++ ;
        }
    } while(int i = 0; i < size; i++);
    printf("AC * %d ￥n", A);
    printf("WA * %d ￥n", B);
    printf("TLE * %d ￥n", C);
    printf("RE * %d ￥n", D);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 'n'
    7 |     char n[];
      |          ^
main.c:12:23: error: expected ';' before 'do'
   12 |     scanf("%d", &size)
      |                       ^
      |                       ;
   13 | 
   14 |     do {
      |     ~~
Language: Java

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

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int AC = 0; int WA = 0; int TLE = 0; int RE = 0;
		while (n-- > 0) {
			String s = sc.nextInt();
			if (s.equals("AC")) 
				AC++;
			else if (s.equals("WA"))
				WA++;
			else if (s.equals("TLE"))
				TLE++;
			else if (s.equals("RE"))
				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:11: error: incompatible types: int cannot be converted to String
			String s = sc.nextInt();
			                     ^
1 error
Language: Java

import java.util.Random;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scan = new Scanner(System.in);
		Random rad = new Random();

		int n = scan.nextInt();
		String s ;
		int ac=0;
		int wa=0;
		int tle=0;
		int re =0;

		for(int i=0; i<n; i++) {

			s = scan.next();

			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:37: error: reached end of file while parsing
		System.out.println("RE x "+re);
		                               ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
   string AC,WA,TLE,RE;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << "AC x "a  << endl;
  cout << "WA x "b << endl;
  cout << "TLE x "c << endl;
  cout << "RE x "d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: unable to find string literal operator 'operator""a' with 'const char [6]', 'long unsigned int' arguments
   20 |   cout << "AC x "a  << endl;
      |           ^~~~~~~~
a.cc:21:11: error: unable to find string literal operator 'operator""b' with 'const char [6]', 'long unsigned int' arguments
   21 |   cout << "WA x "b << endl;
      |           ^~~~~~~~
a.cc:22:11: error: unable to find string literal operator 'operator""c' with 'const char [7]', 'long unsigned int' arguments
   22 |   cout << "TLE x "c << endl;
      |           ^~~~~~~~~
a.cc:23:11: error: unable to find string literal operator 'operator""d' with 'const char [6]', 'long unsigned int' arguments
   23 |   cout << "RE x "d << endl;
      |           ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
   string AC,WA,TLE,RE;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << "AC x " << a << endl;
  cout << "WA x " b << endl;
  cout << "TLE x " << c << endl;
  cout << "RE x " << d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: expected ';' before 'b'
   21 |   cout << "WA x " b << endl;
      |                  ^~
      |                  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
   string AC,WA,TLE,RE;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: expected ';' before 'x'
   20 |   cout << AC x a << endl;
      |             ^~
      |             ;
a.cc:21:13: error: expected ';' before 'x'
   21 |   cout << WA x b << endl;
      |             ^~
      |             ;
a.cc:22:14: error: expected ';' before 'x'
   22 |   cout << TLE x c << endl;
      |              ^~
      |              ;
a.cc:23:13: error: expected ';' before 'x'
   23 |   cout << RE x d << endl;
      |             ^~
      |             ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
   vector<string> A;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: redeclaration of 'std::vector<std::__cxx11::basic_string<char> > A'
    8 |   vector<string>A(N);
      |                 ^
a.cc:4:19: note: 'std::vector<std::__cxx11::basic_string<char> > A' previously declared here
    4 |    vector<string> A;
      |                   ^
a.cc:11:19: error: 'AC' was not declared in this scope; did you mean 'A'?
   11 |     if(A.at(i) == AC)
      |                   ^~
      |                   A
a.cc:13:25: error: 'WA' was not declared in this scope; did you mean 'A'?
   13 |      else if(A.at(i) == WA)
      |                         ^~
      |                         A
a.cc:15:25: error: 'TLE' was not declared in this scope
   15 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:17:25: error: 'RE' was not declared in this scope
   17 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:20:11: error: 'AC' was not declared in this scope; did you mean 'A'?
   20 |   cout << AC x a << endl;
      |           ^~
      |           A
a.cc:21:11: error: 'WA' was not declared in this scope; did you mean 'A'?
   21 |   cout << WA x b << endl;
      |           ^~
      |           A
a.cc:22:11: error: 'TLE' was not declared in this scope
   22 |   cout << TLE x c << endl;
      |           ^~~
a.cc:23:11: error: 'RE' was not declared in this scope
   23 |   cout << RE x d << endl;
      |           ^~
Language: C++

#include <iostream>
 using namespace std;
 int main(){
   vector<string> A;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'vector' was not declared in this scope
    4 |    vector<string> A;
      |    ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 |  using namespace std;
a.cc:4:17: error: expected primary-expression before '>' token
    4 |    vector<string> A;
      |                 ^
a.cc:4:19: error: 'A' was not declared in this scope
    4 |    vector<string> A;
      |                   ^
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string>A(N);
      |                ^
a.cc:11:19: error: 'AC' was not declared in this scope
   11 |     if(A.at(i) == AC)
      |                   ^~
a.cc:13:25: error: 'WA' was not declared in this scope
   13 |      else if(A.at(i) == WA)
      |                         ^~
a.cc:15:25: error: 'TLE' was not declared in this scope
   15 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:17:25: error: 'RE' was not declared in this scope
   17 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:20:11: error: 'AC' was not declared in this scope
   20 |   cout << AC x a << endl;
      |           ^~
a.cc:21:11: error: 'WA' was not declared in this scope
   21 |   cout << WA x b << endl;
      |           ^~
a.cc:22:11: error: 'TLE' was not declared in this scope
   22 |   cout << TLE x c << endl;
      |           ^~~
a.cc:23:11: error: 'RE' was not declared in this scope
   23 |   cout << RE x d << endl;
      |           ^~
Language: C++

#include <iostream>
 using namespace std;
 int main(){
   vector <string>A;
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'vector' was not declared in this scope
    4 |    vector <string>A;
      |    ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 |  using namespace std;
a.cc:4:18: error: expected primary-expression before '>' token
    4 |    vector <string>A;
      |                  ^
a.cc:4:19: error: 'A' was not declared in this scope
    4 |    vector <string>A;
      |                   ^
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string>A(N);
      |                ^
a.cc:11:19: error: 'AC' was not declared in this scope
   11 |     if(A.at(i) == AC)
      |                   ^~
a.cc:13:25: error: 'WA' was not declared in this scope
   13 |      else if(A.at(i) == WA)
      |                         ^~
a.cc:15:25: error: 'TLE' was not declared in this scope
   15 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:17:25: error: 'RE' was not declared in this scope
   17 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:20:11: error: 'AC' was not declared in this scope
   20 |   cout << AC x a << endl;
      |           ^~
a.cc:21:11: error: 'WA' was not declared in this scope
   21 |   cout << WA x b << endl;
      |           ^~
a.cc:22:11: error: 'TLE' was not declared in this scope
   22 |   cout << TLE x c << endl;
      |           ^~~
a.cc:23:11: error: 'RE' was not declared in this scope
   23 |   cout << RE x d << endl;
      |           ^~
Language: C++

#include <iostream>
 using namespace std;
 int main(){
   vector<string>A
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: 'vector' was not declared in this scope
    4 |    vector<string>A
      |    ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 |  using namespace std;
a.cc:4:17: error: expected primary-expression before '>' token
    4 |    vector<string>A
      |                 ^
a.cc:4:18: error: 'A' was not declared in this scope
    4 |    vector<string>A
      |                  ^
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N;
      |          ^
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string>A(N);
      |                ^
a.cc:11:19: error: 'AC' was not declared in this scope
   11 |     if(A.at(i) == AC)
      |                   ^~
a.cc:13:25: error: 'WA' was not declared in this scope
   13 |      else if(A.at(i) == WA)
      |                         ^~
a.cc:15:25: error: 'TLE' was not declared in this scope
   15 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:17:25: error: 'RE' was not declared in this scope
   17 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:20:11: error: 'AC' was not declared in this scope
   20 |   cout << AC x a << endl;
      |           ^~
a.cc:21:11: error: 'WA' was not declared in this scope
   21 |   cout << WA x b << endl;
      |           ^~
a.cc:22:11: error: 'TLE' was not declared in this scope
   22 |   cout << TLE x c << endl;
      |           ^~~
a.cc:23:11: error: 'RE' was not declared in this scope
   23 |   cout << RE x d << endl;
      |           ^~
Language: C++

#include <iostream>
 using namespace std;
 int main(){
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string>A(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 |  using namespace std;
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   vector<string>A(N);
      |                ^
a.cc:7:17: error: 'A' was not declared in this scope
    7 |   vector<string>A(N);
      |                 ^
a.cc:10:19: error: 'AC' was not declared in this scope
   10 |     if(A.at(i) == AC)
      |                   ^~
a.cc:12:25: error: 'WA' was not declared in this scope
   12 |      else if(A.at(i) == WA)
      |                         ^~
a.cc:14:25: error: 'TLE' was not declared in this scope
   14 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:16:25: error: 'RE' was not declared in this scope
   16 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:19:11: error: 'AC' was not declared in this scope
   19 |   cout << AC x a << endl;
      |           ^~
a.cc:20:11: error: 'WA' was not declared in this scope
   20 |   cout << WA x b << endl;
      |           ^~
a.cc:21:11: error: 'TLE' was not declared in this scope
   21 |   cout << TLE x c << endl;
      |           ^~~
a.cc:22:11: error: 'RE' was not declared in this scope
   22 |   cout << RE x d << endl;
      |           ^~
Language: C++

include <iostream>
 using namespace std;
 int main(){
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string>A(N);
      |   ^~~~~~
a.cc:7:10: error: 'string' was not declared in this scope
    7 |   vector<string>A(N);
      |          ^~~~~~
a.cc:7:17: error: 'A' was not declared in this scope
    7 |   vector<string>A(N);
      |                 ^
a.cc:10:19: error: 'AC' was not declared in this scope
   10 |     if(A.at(i) == AC)
      |                   ^~
a.cc:12:25: error: 'WA' was not declared in this scope
   12 |      else if(A.at(i) == WA)
      |                         ^~
a.cc:14:25: error: 'TLE' was not declared in this scope
   14 |      else if(A.at(i) == TLE)
      |                         ^~~
a.cc:16:25: error: 'RE' was not declared in this scope
   16 |     else  if(A.at(i) == RE)
      |                         ^~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << AC x a << endl;
      |   ^~~~
a.cc:19:11: error: 'AC' was not declared in this scope
   19 |   cout << AC x a << endl;
      |           ^~
a.cc:20:11: error: 'WA' was not declared in this scope
   20 |   cout << WA x b << endl;
      |           ^~
a.cc:21:11: error: 'TLE' was not declared in this scope
   21 |   cout << TLE x c << endl;
      |           ^~~
a.cc:22:11: error: 'RE' was not declared in this scope
   22 |   cout << RE x d << endl;
      |           ^~
Language: C++

1 #include <iostream>
2 using namespace std;
3 int main(){
  int N;
  int a,b,c,d = 0;
  cin >> N;
  vector<string>A(N);
  for (int i = 0; i < N; i++){
   cin >> A.at(i);
    if(A.at(i) == AC)
      a++;
     else if(A.at(i) == WA)
      b++;
     else if(A.at(i) == TLE)
      c++;
    else  if(A.at(i) == RE)
      d++;
  }
  cout << AC x a << endl;
  cout << WA x b << endl;
  cout << TLE x c << endl;
  cout << RE x d << endl;
}

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <iostream>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <iostream>
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3 int main(){
      | ^
Language: Java

//package  com.company;

import com.sun.xml.internal.xsom.XSUnionSimpleType;

import java.util.Scanner;

public class Main{

    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);
       int tc=sc.nextInt();
       int ac=0,wa=0,tle=0,re=0;
       while(tc>0){
           //System.out.println(tc);
           String s=sc.next();
           //System.out.println(s);
           if(s.equals("AC"))ac+=1;
           else if(s.equals("WA"))wa+=1;
           else if (s.equals("TLE"))tle+=1;
           else re+=1;
           tc--;
           //System.out.println("adsf");
       }
        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:3: error: package com.sun.xml.internal.xsom does not exist
import com.sun.xml.internal.xsom.XSUnionSimpleType;
                                ^
1 error
Language: Java

import java.util.Scanner;

public class B {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;

		for(int i = 0;i<=a;i++) {
			String b = sc.nextLine();
			if(b.equals("AC")) {
				ac++;
			}
			if(b.equals("WA")) {
				wa++;
			}
			if(b.equals("TLE")) {
				tle++;
			}
			if(b.equals("RE")) {
				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:3: error: class B is public, should be declared in a file named B.java
public class B {
       ^
1 error
Language: Java

import java.util.Scanner;

public class B {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;

		for(int i = 0;i<a;i++) {
			String b = sc.nextLine();
			if(b.equals("AC")) {
				ac++;
			}
			if(b.equals("WA")) {
				wa++;
			}
			if(b.equals("TLE")) {
				tle++;
			}
			if(b.equals("RE")) {
				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:3: error: class B is public, should be declared in a file named B.java
public class B {
       ^
1 error
Language: C

#include<stdio.h>
#include<string.h> 

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",&s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: unknown type name 'string'; did you mean 'stdin'?
    7 |   string s[a];
      |   ^~~~~~
      |   stdin
main.c:13:11: warning: comparison between pointer and integer
   13 |    if(s[i]=="AC")ac++;
      |           ^~
main.c:14:11: warning: comparison between pointer and integer
   14 |    if(s[i]=="WA")wa++;
      |           ^~
main.c:15:11: warning: comparison between pointer and integer
   15 |    if(s[i]=="TLE")tle++;
      |           ^~
main.c:16:11: warning: comparison between pointer and integer
   16 |    if(s[i]=="RE")re++;
      |           ^~
Language: C++

#include<stdio.h>
#include<string> 

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",%s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s[a];
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:2:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:15: error: expected primary-expression before '%' token
    9 |    scanf("%s",%s[i]);
      |               ^
a.cc:9:16: error: 's' was not declared in this scope
    9 |    scanf("%s",%s[i]);
      |                ^
a.cc:13:7: error: 's' was not declared in this scope
   13 |    if(s[i]=="AC")ac++;
      |       ^
a.cc:14:7: error: 's' was not declared in this scope
   14 |    if(s[i]=="WA")wa++;
      |       ^
a.cc:15:7: error: 's' was not declared in this scope
   15 |    if(s[i]=="TLE")tle++;
      |       ^
a.cc:16:7: error: 's' was not declared in this scope
   16 |    if(s[i]=="RE")re++;
      |       ^