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

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

int main()
{
	int N, i, C0 = 0, C1 = 0, C2 = 0, C3 = 0;
	char *S;

	scanf("%d", &N);
	S = (char*)malloc(N * sizeof(char*));

	for (i = 0; i < N; i++)
	{
		S[i] = (char)malloc(2 * sizeof(char));
	}

	for (i = 0; i < N; i++)
	{
		gets_s(S[i]);
	}

	for (i = 0; i < N; i++)
	{
		if (strcmp("AC", S[i]) == 0)   C0++;
		if (strcmp("WA", S[i]) == 0)  C1++;
		if (strcmp("TLE", S[i]) == 0) C2++;
		if (strcmp("RE", S[i]) == 0)  C3++;
	}

	printf("AC * %d", C0);
	printf("WA * %d", C1);
	printf("TLE * %d", C2);
	printf("RE * %d", C3);

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: cast from 'void*' to 'char' loses precision [-fpermissive]
   15 |                 S[i] = (char)malloc(2 * sizeof(char));
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:20:17: error: 'gets_s' was not declared in this scope
   20 |                 gets_s(S[i]);
      |                 ^~~~~~
a.cc:25:37: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   25 |                 if (strcmp("AC", S[i]) == 0)   C0++;
      |                                  ~~~^
      |                                     |
      |                                     char
In file included from a.cc:2:
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
a.cc:26:37: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   26 |                 if (strcmp("WA", S[i]) == 0)  C1++;
      |                                  ~~~^
      |                                     |
      |                                     char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
a.cc:27:38: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   27 |                 if (strcmp("TLE", S[i]) == 0) C2++;
      |                                   ~~~^
      |                                      |
      |                                      char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
a.cc:28:37: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   28 |                 if (strcmp("RE", S[i]) == 0)  C3++;
      |                                  ~~~^
      |                                     |
      |                                     char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C++


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


//wierd debugging stuff
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << "\n" ; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
    *this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
//end of weird debugging stuff
using ll = long long;
using vi = vector<int>;
using ii = pair<int,int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
#define FASTER ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define invec(v) for(auto& x : v)cin>>x;
#define all(c) (c).begin(), (c).end()
#define sz(x) (int)(x).size()
 
#define F_OR(i, a, b, s) for (int i = (a); ((s) > 0 ? i < (b) : i > (b)); i += (s))
#define F_OR1(e) F_OR(i, 0, e, 1)
#define F_OR2(i, e) F_OR(i, 0, e, 1)
#define F_OR3(i, b, e) F_OR(i, b, e, 1)
#define F_OR4(i, b, e, s) F_OR(i, b, e, s)
#define GET5(a, b, c, d, e, ...) e
#define F_ORC(...) GET5(__VA_ARGS__, F_OR4, F_OR3, F_OR2, F_OR1)
#define FOR(...) F_ORC(__VA_ARGS__)(__VA_ARGS__)
#define ar array
// no change 

const ll MOD = 1e9+7;   // it is an prime...

template<typename T,typename L>
T power(T a, L b);				// to find reverse modulo its power(a,MOD-2);
template < typename T ,typename L> 
L coefficient(T n, T k);  // computing nCk

//const int MxN = 1e9+5;

int main() {
	FASTER;
		int n;
		cin >> n;
		unordered_map<string,int> mp;
		mp["AC"] = mp["WA"] = mp["TLE"] = mp["RE"] = 0;
		FOR(n){
			string s;
			cin >> s;
			mp[s]++;
		}

		for(auto x: mp){
			cout << x.first << " x " << x.second <<(x.first == "RE" ? "" :endl);
		}
		
}


template<typename T,typename L>
T power(T a, L b){
	
	T result = 1;
	while(b){
		if(b&1) result = (result% MOD * a%MOD) % MOD;
	   	a = (a%MOD * a%MOD) % MOD;
   		b/=2;	   
	}
	return result;
}

template < typename T ,typename L> 
L coefficient(T n, T k){  // computing nCk
	k = min(k,(n-k));
	L res = 1;
	for(T i = 0; i< k;i++){
		res *= (n-i);
		res /= (i+1);

	}
	return res;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:79:87: error: overloaded function with no contextual type information
   79 |                         cout << x.first << " x " << x.second <<(x.first == "RE" ? "" :endl);
      |                                                                                       ^~~~
Language: Java

import java.util.*;
 
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;
    for(int i = 1;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 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:15: error: ')' expected
      }else if( S.equals("WA" ){
                               ^
Main.java:17: error: ')' expected
      }else if( S.equals("TLE" ){
                                ^
Main.java:19: error: ')' expected
      }else if( S.equals("RE" ){
                               ^
3 errors
Language: C++

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

using namespace std;

int main() {
	int n;
	size_t num_ac = 0;
	size_t num_wa = 0;
	size_t num_tle = 0;;
	size_t num_re = 0;;
	cin >> n;
	vector<string> s;
	for (int i = 0; i < n; i++) {
		string str;
		cin >> str;
		s.push_back(str);
	}
	num_ac = count(s.begin(), s.end(), "AC");
	num_wa = count(s.begin(), s.end(), "WA");
	num_tle = count(s.begin(), s.end(), "TLE");
	num_re = count(s.begin(), s.end(), "RE");
	cout << "AC x " << num_ac << "\n";
	cout << "WA x " << num_wa << "\n";
	cout << "TLE x " << num_tle << "\n";
	cout << "RE x " << num_re << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: 'count' was not declared in this scope
   20 |         num_ac = count(s.begin(), s.end(), "AC");
      |                  ^~~~~
Language: C++

	char Judge[4];
	int count[4] = { 0,0,0,0 };

	int N = 0;

	cin >> N;

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

		if (!strcmp(Judge, "AC"))
			(count[0])++;
		else if (!strcmp(Judge, "WA"))
			(count[1])++;
		else if (!strcmp(Judge, "TLE"))
			(count[2])++;
		else
			(count[3])++;
	}

	cout << "AC" << " x " << count[0] << "\n";
	cout << "WA" << " x " << count[1] << "\n";
	cout << "TLE" << " x " << count[2] << "\n";
	cout << "RE" << " x " << count[3] << "\n";

	system("pause");

Compiler output:
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> N;
      |         ^~~
a.cc:8:9: error: expected unqualified-id before 'for'
    8 |         for (int i = 0; i < N; i++) {
      |         ^~~
a.cc:8:25: error: 'i' does not name a type
    8 |         for (int i = 0; i < N; i++) {
      |                         ^
a.cc:8:32: error: 'i' does not name a type
    8 |         for (int i = 0; i < N; i++) {
      |                                ^
a.cc:21:9: error: 'cout' does not name a type
   21 |         cout << "AC" << " x " << count[0] << "\n";
      |         ^~~~
a.cc:22:9: error: 'cout' does not name a type
   22 |         cout << "WA" << " x " << count[1] << "\n";
      |         ^~~~
a.cc:23:9: error: 'cout' does not name a type
   23 |         cout << "TLE" << " x " << count[2] << "\n";
      |         ^~~~
a.cc:24:9: error: 'cout' does not name a type
   24 |         cout << "RE" << " x " << count[3] << "\n";
      |         ^~~~
a.cc:26:15: error: expected constructor, destructor, or type conversion before '(' token
   26 |         system("pause");
      |               ^
Language: C++

#include <bits/stdc++.h>
#include <string.h>

using namespace std;

int main(){
  enum case = {AC, WA, TLE, RE};
  int n, array[4] = {0};
  string s, results[4] = {"AC", "WA", "TLE", "RE"};
  
  cin >> n;
  for(int i = 0; i < n; i++){
	cin >> s;
    for(int j = 0; j < 4; j++){
      if(s == results[j])
        array[j]++;
    }
  }
  
  for(int i = 0; i < 4; i++)
    cout << results[i] << " x " << array[i] << endl;
                  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'enum'
    7 |   enum case = {AC, WA, TLE, RE};
      |   ^~~~
Language: C++

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


int main(void)
{
	int N;
	int a = 0;
	int b = 0;
	int c = 0;
	int d = 0;

	scanf("%d", &N);
	char S[99999];
	for (int i = 0; i < N; i++)
	{
		scanf_s("%s", &S[i],255);
		if ((strcmp (S + i,"AC")) == 0)
		{
			a++;
		}
		else if ((strcmp(S + i, "WA")) == 0)
		{
			b++;
		}
		else if ((strcmp(S + i, "TLE")) == 0)
		{
			c++;
		}
		else if ((strcmp(S + i, "RE")) == 0)
		{
			d++;
		}
		else
		{
			;
		}
	}
	printf("AC × "); printf("%d\n", a);
	printf("WA × "); printf("%d\n", b);
	printf("TLE × "); printf("%d\n", c);
	printf("RE × "); printf("%d", d);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   18 |                 scanf_s("%s", &S[i],255);
      |                 ^~~~~~~
      |                 scanf
Language: C

#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;

int main() {
	int n, sum[5] = {0};
	string str;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		cin >> str;
		if (str == "AC") {
			sum[0]++;
		}
		else if (str == "WA") {
			sum[1]++;
		}
		else if (str == "TLE") {
			sum[2]++;
		}
		else if (str == "RE")
			sum[3]++;
	}
	printf("AC x %d\n", sum[0]);
	printf("WA x %d\n", sum[1]);
	printf("LTE x %d\n", sum[2]);
	printf("RE x %d", sum[3]);
	return 0;
}

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

n=int(input())
c1=0
c2=0
c3=0
c4=0
s1='AC'
s2='WA'
s3='TLE'
s4='RA'
for _ in range(n):
	str1=str(input())
	if(str1=='AC'):
		c1=c1+1
	elif(str1=='WA'):
		c2=c2+1
	elif(str1=='TLE'):
		c3=c3+1
	elif(str1=='RA'):
		c4=c4+1
s1=s1+' ' + '*' + ' ' + str(c1)
s2=s2+' ' + '*' + ' ' + str(c2)
s3=s3+' ' + '*' + ' ' + str(c3)
s4=s4+' ' + '*' + ' ' + str(c4)

print(s1)
print(s2)
print(s3)
print(s4)


Compiler output:
a.cc:6:4: warning: multi-character character constant [-Wmultichar]
    6 | s1='AC'
      |    ^~~~
a.cc:7:4: warning: multi-character character constant [-Wmultichar]
    7 | s2='WA'
      |    ^~~~
a.cc:8:4: warning: multi-character character constant [-Wmultichar]
    8 | s3='TLE'
      |    ^~~~~
a.cc:9:4: warning: multi-character character constant [-Wmultichar]
    9 | s4='RA'
      |    ^~~~
a.cc:12:18: warning: multi-character character constant [-Wmultichar]
   12 |         if(str1=='AC'):
      |                  ^~~~
a.cc:14:20: warning: multi-character character constant [-Wmultichar]
   14 |         elif(str1=='WA'):
      |                    ^~~~
a.cc:16:20: warning: multi-character character constant [-Wmultichar]
   16 |         elif(str1=='TLE'):
      |                    ^~~~~
a.cc:18:20: warning: multi-character character constant [-Wmultichar]
   18 |         elif(str1=='RA'):
      |                    ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
  enum case = {AC, WA, TLE, RE};
  int n, array[4] = {0};
  string s, results[4] = {"AC", "WA", "TLE", "RE"};
  
  cin >> n;
  for(int i = 0; i < n; i++){
	cin >> s;
    for(int j = 0; j < 4; j++){
      if(s == results[j])
        array[j]++;
    }
  }
  
  for(int i = 0; i < 4; i++)
    cout << results[i] << " x " << array[i] << endl;
                  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected primary-expression before 'enum'
    6 |   enum case = {AC, WA, TLE, RE};
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'AC' was not declared in this scope
   12 |     if(s[i]==AC) a[0]++;
      |              ^~
a.cc:13:14: error: 'WA' was not declared in this scope
   13 |     if(s[i]==WA) a[1]++;
      |              ^~
a.cc:14:14: error: 'TLE' was not declared in this scope
   14 |     if(s[i]==TLE) a[2]++;
      |              ^~~
Language: C

#include <stdio.h>
int main(){
  int N=0,i=0,countAC=0,countWA=0,countTLE=0,countRE=0;
  char str[100000];
    scanf("%d",&N);
  for(i=1;i<=N;i++){
    scanf("%s",str);
    if((str[0]==A)&&(str[1]==C)){
      countAC++;
    }else if((str[0]==W)&&(str[1]==A)){
      countWA++;
    }else if((str[0]==R)&&(str[1]==E)){
      countRE++;
    }else if((str[0]==T)&&(str[1]==L)&&(str[2]==E)){
      countTLE++;
    }
  }
  printf("AC x %d/nWA x %d/nTLE x %d/nRE x %d/n",countAC,countWA,countTLE,countRE);
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: 'A' undeclared (first use in this function)
    8 |     if((str[0]==A)&&(str[1]==C)){
      |                 ^
main.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:30: error: 'C' undeclared (first use in this function)
    8 |     if((str[0]==A)&&(str[1]==C)){
      |                              ^
main.c:10:23: error: 'W' undeclared (first use in this function)
   10 |     }else if((str[0]==W)&&(str[1]==A)){
      |                       ^
main.c:12:23: error: 'R' undeclared (first use in this function)
   12 |     }else if((str[0]==R)&&(str[1]==E)){
      |                       ^
main.c:12:36: error: 'E' undeclared (first use in this function)
   12 |     }else if((str[0]==R)&&(str[1]==E)){
      |                                    ^
main.c:14:23: error: 'T' undeclared (first use in this function)
   14 |     }else if((str[0]==T)&&(str[1]==L)&&(str[2]==E)){
      |                       ^
main.c:14:36: error: 'L' undeclared (first use in this function)
   14 |     }else if((str[0]==T)&&(str[1]==L)&&(str[2]==E)){
      |                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    int N, i, cnt;
    string S[N];
    int A, W, T, R;
    string AC, WA, TLE, RE;
    AC = AC;
    WA = WA;
    TLE = TLE;
    RE = RE;
    cnt = 0;
    while (cnt <= N)
    {

        cnt = cnt + 1;
        if (S[cnt]==AC){
            A = A + 1;
            else
            {
                if (S[cnt]==WA){
                    W = W + 1;
                    else
                    {
                        if (S[cnt] == TLE)
                        {
                            T = T + 1;
                            else
                            {
                                if(S[cnt]==RE){
                                    R = R + 1;
                                }
                           }

                        }
                    }

                }
            }
        }
    }
    cout << "AC x " << A << endl;
    cout << "WA x " << W << endl;
    cout << "TLE x " << T << endl;
    cout << "RE x " << R << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected '}' before 'else'
   19 |             else
      |             ^~~~
a.cc:17:24: note: to match this '{'
   17 |         if (S[cnt]==AC){
      |                        ^
a.cc:23:21: error: expected '}' before 'else'
   23 |                     else
      |                     ^~~~
a.cc:21:32: note: to match this '{'
   21 |                 if (S[cnt]==WA){
      |                                ^
a.cc:28:29: error: expected '}' before 'else'
   28 |                             else
      |                             ^~~~
a.cc:26:25: note: to match this '{'
   26 |                         {
      |                         ^
a.cc: At global scope:
a.cc:40:9: error: expected declaration before '}' token
   40 |         }
      |         ^
a.cc:41:5: error: expected declaration before '}' token
   41 |     }
      |     ^
a.cc:42:5: error: 'cout' does not name a type
   42 |     cout << "AC x " << A << endl;
      |     ^~~~
a.cc:43:5: error: 'cout' does not name a type
   43 |     cout << "WA x " << W << endl;
      |     ^~~~
a.cc:44:5: error: 'cout' does not name a type
   44 |     cout << "TLE x " << T << endl;
      |     ^~~~
a.cc:45:5: error: 'cout' does not name a type
   45 |     cout << "RE x " << R << endl;
      |     ^~~~
a.cc:46:1: error: expected declaration before '}' token
   46 | }
      | ^
Language: C

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

int main()
{
   char str[]='';
   char strr[]=''; 
   long long a,b,c,d,i;
  a=0;
  b=0;
  c=0;
  d=0;
  for(i==1;i<=100000;i++)
  {
   while(str=getchar() != '\n')
    {
        strcat(strr,str);
    }
        if(strr == "AC")
        {
            a++;
        }

        if(strr == "WA")
        {
            b++;
        }
      if(strr == "TLE")
        {
            c++;
        }
      if(strr == "RE")
        {
            d++;
        }
    fflush(stdin);
    strr='';
  }
   
    printf("AC x %ll\nWA x %ll\nTLE x %ll\nRE x %ll",a,b,c,d);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: empty character constant
    7 |    char str[]='';
      |               ^~
main.c:7:15: error: invalid initializer
main.c:8:16: error: empty character constant
    8 |    char strr[]='';
      |                ^~
main.c:8:16: error: invalid initializer
main.c:16:13: error: assignment to expression with array type
   16 |    while(str=getchar() != '\n')
      |             ^
main.c:38:10: error: empty character constant
   38 |     strr='';
      |          ^~
main.c:38:9: error: assignment to expression with array type
   38 |     strr='';
      |         ^
Language: C++

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

int main() {
  
 int n;
 std::cin >> n;
 int a[n];
 for(int i=0; i<n; i++) std::cin >> a[i];
  
 str A= "AC";
 str W= "WA";
 str T= "TLE";
 str R= "RE";
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'A') {
  count++;
 }
 cout <<"AC"<<" "<<"x" << count << ""<<endl;
 }
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'W') {
  count++;
 }
 cout <<"WA"<<" "<<"x" << count << ""<<endl;
 }

 int count = 0;
 for (int i = 0; i < str.size(); i++) {
  if (str.at(i) == 'T') {
 count++;
 }
  cout <<"TLE"<<" "<<"x" << count <<"" <<endl;
 }
  int count = 0; 
  for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'R') {
 count++;
 }
 cout <<"RE"<<" "<<"x" << count << "" <<endl;
 }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |  str A= "AC";
      |  ^~~
      |  std
a.cc:12:5: error: expected ';' before 'W'
   12 |  str W= "WA";
      |     ^~
      |     ;
a.cc:13:5: error: expected ';' before 'T'
   13 |  str T= "TLE";
      |     ^~
      |     ;
a.cc:14:5: error: expected ';' before 'R'
   14 |  str R= "RE";
      |     ^~
      |     ;
a.cc:24:6: error: redeclaration of 'int count'
   24 |  int count = 0;
      |      ^~~~~
a.cc:16:6: note: 'int count' previously declared here
   16 |  int count = 0;
      |      ^~~~~
a.cc:32:6: error: redeclaration of 'int count'
   32 |  int count = 0;
      |      ^~~~~
a.cc:16:6: note: 'int count' previously declared here
   16 |  int count = 0;
      |      ^~~~~
a.cc:39:7: error: redeclaration of 'int count'
   39 |   int count = 0;
      |       ^~~~~
a.cc:16:6: note: 'int count' previously declared here
   16 |  int count = 0;
      |      ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <set>

using namespace std;

int main(){
	string x[];
	int N,count[4]={0};
	set<string> st;
	map<string,int> y;
	cin >> N;
	for(int i=0;i<N;i++){
		cin >> x[i];
	}
	for(int i=0;i<N;i++){
		st.insert(x[i]);
	}
	for(auto it =st.begin();it!=st.end();++it){
		y.insert(make_pair(*it,0));
	}
	for(int i=0;i<N;i++){
		y[x[i]]++;
	}

	for(auto it = y.begin();it != y.end();++it){
		cout << it->first << " x " << it->second <<endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: array size missing in 'x'
    9 |         string x[];
      |                ^
Language: C++

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


void main(void)
{
	int N;
	int a = 0;
	int b = 0;
	int c = 0;
	int d = 0;

	scanf("%d", &N);
	char S[99999];
	for (int i = 0; i < N; i++)
	{
		scanf("%s", &S[i]);
		if ((strcmp (S + i,"AC")) == 0)
		{
			a++;
		}
		else if ((strcmp(S + i, "WA")) == 0)
		{
			b++;
		}
		else if ((strcmp(S + i, "TLE")) == 0)
		{
			c++;
		}
		else if ((strcmp(S + i, "RE")) == 0)
		{
			d++;
		}
		else
		{
			;
		}
	}
	printf("AC ×%d\n", a);
	printf("WA ×%d\n", b);
	printf("TLE ×%d\n", c);
	printf("RE ×%d", d);
}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main(void)
      | ^~~~
Language: Java

import java.util.*;
  public class Main{
    public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
    String[] a={" ","AC","WA","TLE","RE"};
    String[] S=new String[N+1];
    int[] C={0,0,0,0};
    for(int x=1;x<=N;x++) S[x]=sc.next();
    for(int c=1;c<=N;c++){
      for(int i=1;i<=4;i++){
        if(S[c].equals(a[i])) C[i-1]++;
      }
    }
    for(int z=1;z<=4;z++) System.out.printf("%s × %d\n",a[z],C[z-1]);
  }

Compiler output:
Main.java:16: error: reached end of file while parsing
  }
   ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
int a=0,b=0,c=0,d=0;
  int n;
  cin>>n;
  char q;
  while(n){
  
  cin>>q;
  if (q=="AC")
    a++;
  else if(q=="WA")
    b++;
  else if(q=="TLE")
    c++;
  else if (q=="RE")
    d++;
  n--;
  }

cout<<"AC x "<<a<<endl;
cout<<"WA x "<<b<<endl;
cout<<"TLE x "<<c<<endl;
cout<<"RE x "<<d<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (q=="AC")
      |       ~^~~~~~
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(q=="WA")
      |           ~^~~~~~
a.cc:15:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   else if(q=="TLE")
      |           ~^~~~~~~
a.cc:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   else if (q=="RE")
      |            ~^~~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
 
int main(){
	char str[256];
	int i, nums;
  	int AC = 0;
  	int WA = 0;
  	int TLE = 0;
  	int RE = 0;
	scanf("%d", &nums);
  	for(i = 0; i < nums; i++){
      scanf("%s", &str);
      if(strcmp(str, "AC\n") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA\n") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE\n") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE\n") == 0){
        	RE++;
      }
      else if(strcmp(str, "AC") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE") == 0){
        	RE++;
      }
    }  	
  	printf("AC × %d\n"
  			"WA × %d\n"
  			"TLE × %d\n");
  			"RE × %d\n",AC, WA, TLE, RE);
  
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:43:52: error: expected ';' before ')' token
   43 |                         "RE × %d\n",AC, WA, TLE, RE);
      |                                                    ^
      |                                                    ;
main.c:43:52: error: expected statement before ')' token
Language: C++

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

int main() {
  
 int n;
 std::cin >> n;
 int a[n];
 for(int i=0; i<n; i++) std::cin >> a[i];
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'AC') {
  count++;
 }
 cout <<"AC"<<" "<<"x" << count << ""<<endl;
 }
  
 int count = 0;
 for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'WA') {
  count++;
 }
 cout <<"WA"<<" "<<"x" << count << ""<<endl;
 }

 int count = 0;
 for (int i = 0; i < str.size(); i++) {
  if (str.at(i) == 'WA') {
 count++;
 }
  cout <<"TLE"<<" "<<"x" << count <<"" <<endl;
 }
  int count = 0; 
  for (int i = 0; i < str.size(); i++) {
 if (str.at(i) == 'WA') {
 count++;
 }
 cout <<"RE"<<" "<<"x" << count << "" <<endl;
 }
}



Compiler output:
a.cc:13:19: warning: multi-character character constant [-Wmultichar]
   13 |  if (str.at(i) == 'AC') {
      |                   ^~~~
a.cc:21:19: warning: multi-character character constant [-Wmultichar]
   21 |  if (str.at(i) == 'WA') {
      |                   ^~~~
a.cc:29:20: warning: multi-character character constant [-Wmultichar]
   29 |   if (str.at(i) == 'WA') {
      |                    ^~~~
a.cc:36:19: warning: multi-character character constant [-Wmultichar]
   36 |  if (str.at(i) == 'WA') {
      |                   ^~~~
a.cc: In function 'int main()':
a.cc:12:22: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |  for (int i = 0; i < str.size(); i++) {
      |                      ^~~
      |                      std
a.cc:19:6: error: redeclaration of 'int count'
   19 |  int count = 0;
      |      ^~~~~
a.cc:11:6: note: 'int count' previously declared here
   11 |  int count = 0;
      |      ^~~~~
a.cc:20:22: error: 'str' was not declared in this scope; did you mean 'std'?
   20 |  for (int i = 0; i < str.size(); i++) {
      |                      ^~~
      |                      std
a.cc:27:6: error: redeclaration of 'int count'
   27 |  int count = 0;
      |      ^~~~~
a.cc:11:6: note: 'int count' previously declared here
   11 |  int count = 0;
      |      ^~~~~
a.cc:28:22: error: 'str' was not declared in this scope; did you mean 'std'?
   28 |  for (int i = 0; i < str.size(); i++) {
      |                      ^~~
      |                      std
a.cc:34:7: error: redeclaration of 'int count'
   34 |   int count = 0;
      |       ^~~~~
a.cc:11:6: note: 'int count' previously declared here
   11 |  int count = 0;
      |      ^~~~~
a.cc:35:23: error: 'str' was not declared in this scope; did you mean 'std'?
   35 |   for (int i = 0; i < str.size(); i++) {
      |                       ^~~
      |                       std
Language: Java

import java.util.*;
 
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;
    for(int i = 1;i <= N;i++)
      String result = sc.next();
      switch(result){
        case "AC":
          ac++;
          break;
        case "WA":
          wa++;
          break;
        case "TLE":
          tle++;
          break;
        case "RE":
          re++;
          break;
      }
    }
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
  }
}

Compiler output:
Main.java:12: error: variable declaration not allowed here
      String result = sc.next();
             ^
Main.java:28: error: <identifier> expected
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
                    ^
Main.java:28: error: illegal start of type
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
                     ^
Main.java:30: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int N,i;
	cin>>N;
	char s[N][100];
	for(i=0;i<N;i++)
  	gets(s[i]);
  	int a,b,c,d,last;
  	if(last=="AC")
  	a+1;
  	if(last=="WA")
  	b+1;
  	if(last=="TLE")
  	c+1;
  	if(last=="RE")
  	d+1;
  	cout<<"AC*"<<a;
  	cout<<"WA"<<b;
  	cout<<"TLE"<<c;
  	cout<<"RE*"<<d;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |         gets(s[i]);
      |         ^~~~
      |         getw
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(last=="AC")
      |            ~~~~^~~~~~
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if(last=="WA")
      |            ~~~~^~~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(last=="TLE")
      |            ~~~~^~~~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(last=="RE")
      |            ~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    
    int c1=0,c2=0,c3=0,c4=0,n;
    int n;
    cin>>n;
    string ch;
    for(int i=0; i<n; i++)
    {
        cin>>ch;
        if(ch=="AC")
          c1++;
        else if(ch=="WA")
          c2++;
        else if(ch=="TLE")
          c3++;
        else if(ch=="RE")
          c4++;
    }
    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:6:9: error: redeclaration of 'int n'
    6 |     int n;
      |         ^
a.cc:5:29: note: 'int n' previously declared here
    5 |     int c1=0,c2=0,c3=0,c4=0,n;
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int n;
    int ac=0,wa=0,tle=0,re=0;
    cin>>n;

    char s[n];

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

    for(int i=0; i<n; i++){
        if(s[i]=="AC") ac++;
        if(s[i]=="WA") wa++;
        if(s[i]=="TLE") tle++;
        if(s[i]=="RE") re++;
    }

    cout<<"AC × "<<ac<<endl;
    cout<<"WA × "<<wa<<endl;
    cout<<"TLE × "<<tle<<endl;
    cout<<"RE × "<<re<<endl;


}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(s[i]=="AC") ac++;
      |            ~~~~^~~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(s[i]=="WA") wa++;
      |            ~~~~^~~~~~
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(s[i]=="TLE") tle++;
      |            ~~~~^~~~~~~
a.cc:19:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         if(s[i]=="RE") re++;
      |            ~~~~^~~~~~
Language: C++

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

using namespace std;

int main(){

        int n;
        string s;
        vector<string> v;

        cin >> n ;
        for(int i=0; i<n; i++){
                cin >> s;
                v.push_back(s);
        }

        cout << "AC x " + to_string(count(v.begin(), v.end(), "AC")) << endl;
        cout << "WA x " + to_string(count(v.begin(), v.end(), "WA")) << endl;
        cout << "TLE x " + to_string(count(v.begin(), v.end(), "TLE")) << endl;
        cout << "RE x " + to_string(count(v.begin(), v.end(), "RE")) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:37: error: 'count' was not declared in this scope
   19 |         cout << "AC x " + to_string(count(v.begin(), v.end(), "AC")) << endl;
      |                                     ^~~~~
Language: C

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

int main() {

	int N;
	int i;
	int C0 = 0, C1 = 0, C2 = 0, C3 = 0;
	cin >> N ;
	string A[N];
	for (i = 0; i < N;i++) {
		cin >> A[i];
	}
	for (i = 0; i < N; i++) {
	
		if (A[i]=="AC") {
			C0++;
		
		}
		else if (A[i]=="WA") {
			C1++;
		}
		else if(A[i]=="TLE")
		{
			C2++;
		}
		else if (A[i]=="RE") {
			C3++;
		}
	
	}

	printf("AC x %d\n",C0);
	printf("WA x %d\n", C1);
	printf("TLE x %d\n", C2);
	printf("RE x %d\n", C3);
	return 0;
}

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

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

int main()
{
   char str,strr; 
   long long a,b,c,d,i;
  str='';
  strr='';
  a=0;
  b=0;
  c=0;
  d=0;
  for(i==1;i<=100000;i++)
  {
   while(str=getchar() != '\n')
    {
        strcat(strr,str);
    }
        if(strr == "AC")
        {
            a++;
        }

        if(strr == "WA")
        {
            b++;
        }
      if(strr == "TLE")
        {
            c++;
        }
      if(strr == "RE")
        {
            d++;
        }
    fflush(stdin);
    strr='';
  }
   
    printf("AC x %ll\nWA x %ll\nTLE x %ll\nRE x %ll",a,b,c,d);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: empty character constant
    9 |   str='';
      |       ^~
main.c:10:8: error: empty character constant
   10 |   strr='';
      |        ^~
main.c:19:16: error: passing argument 1 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   19 |         strcat(strr,str);
      |                ^~~~
      |                |
      |                char
In file included from main.c:3:
/usr/include/string.h:149:39: note: expected 'char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
main.c:19:21: error: passing argument 2 of 'strcat' makes pointer from integer without a cast [-Wint-conversion]
   19 |         strcat(strr,str);
      |                     ^~~
      |                     |
      |                     char
/usr/include/string.h:149:70: note: expected 'const char * restrict' but argument is of type 'char'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.c:21:17: warning: comparison between pointer and integer
   21 |         if(strr == "AC")
      |                 ^~
main.c:26:17: warning: comparison between pointer and integer
   26 |         if(strr == "WA")
      |                 ^~
main.c:30:15: warning: comparison between pointer and integer
   30 |       if(strr == "TLE")
      |               ^~
main.c:34:15: warning: comparison between pointer and integer
   34 |       if(strr == "RE")
      |               ^~
main.c:39:10: error: empty character constant
   39 |     strr='';
      |          ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main(){
  int x;
  cin>>x;
  int a=0,w=0,t=0,r=0;
  for(int i=;i<x;i++){
    string n;
    cin>>n;
    if(n=="AC")a++;
    if(n=="WA")w++;
    else if(n=="TLE")t++;
    else r++;
  }
  cout<<"AC x "<<a<<endl;
  cout<<"WA × "<<w<<endl;
  cout<<"TLE × "<<t<<endl;
  cout<<"RE × "<<w<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before ';' token
    8 |   for(int i=;i<x;i++){
      |             ^
Language: Java

import java.util.*;

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;
    for(int i = 1;i <= N;i+)
      String S = sc.next();
      switch(S){
        case "AC":
          ac++;
          break;
        case "WA":
          wa++;
          break;
        case "TLE":
          tle++;
          break;
        case "RE":
          re++;
          break;
      }
    }
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
  }
}

Compiler output:
Main.java:11: error: illegal start of expression
    for(int i = 1;i <= N;i+)
                           ^
Main.java:11: error: not a statement
    for(int i = 1;i <= N;i+)
                          ^
Main.java:12: error: variable declaration not allowed here
      String S = sc.next();
             ^
Main.java:28: error: <identifier> expected
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
                    ^
Main.java:28: error: illegal start of type
  System.out.println("AC x "+ac+"\n"+"WA x "+wa+"\n"+"TLE x "+tle+"\n"+"RE x "+re);
                     ^
Main.java:30: error: class, interface, enum, or record expected
}
^
6 errors
Language: C

#include <stdio.h>
int fuction(const char s[]){
  int i=0；
    char a[0]= 'AC';
  char a[1]= 'TLE';
  char a[2]= 'RE';
  char a[3]= 'WA';
    int A,T,W,R;
    while(s[i]){
      if (s[i]=='AC'){
        A++;
      }
      else if (s[i]=='TLE'){
        T++;
      }
   else if (s[i]=='RE'){
        R++;
      }
      else if (s[i]=='WA'){
        W++;
      }
      i++;
    }
  printf("%s x %d\n", a[0], A);
  printf("%s x %d\n", a[1], T);
  printf("%s x %d\n", a[2], R);
  printf("%s x %d\n", a[3], W);
}
  
int main(void){
      int n;
      int i;
      char str[10];
      scanf("%d", &n);
      for (i=0; i<n; i++){
        scanf("%s", str[i]);
      }
  fuction(str);
  rerurn 0;
}

Compiler output:
main.c: In function 'fuction':
main.c:3:9: error: invalid suffix "；" on integer constant
    3 |   int i=0；
      |         ^~~
main.c:4:5: error: expected ',' or ';' before 'char'
    4 |     char a[0]= 'AC';
      |     ^~~~
main.c:4:16: warning: multi-character character constant [-Wmultichar]
    4 |     char a[0]= 'AC';
      |                ^~~~
main.c:5:14: warning: multi-character character constant [-Wmultichar]
    5 |   char a[1]= 'TLE';
      |              ^~~~~
main.c:5:14: error: invalid initializer
main.c:6:14: warning: multi-character character constant [-Wmultichar]
    6 |   char a[2]= 'RE';
      |              ^~~~
main.c:6:8: error: conflicting types for 'a'; have 'char[2]'
    6 |   char a[2]= 'RE';
      |        ^
main.c:5:8: note: previous definition of 'a' with type 'char[1]'
    5 |   char a[1]= 'TLE';
      |        ^
main.c:6:14: error: invalid initializer
    6 |   char a[2]= 'RE';
      |              ^~~~
main.c:7:14: warning: multi-character character constant [-Wmultichar]
    7 |   char a[3]= 'WA';
      |              ^~~~
main.c:7:8: error: conflicting types for 'a'; have 'char[3]'
    7 |   char a[3]= 'WA';
      |        ^
main.c:6:8: note: previous definition of 'a' with type 'char[2]'
    6 |   char a[2]= 'RE';
      |        ^
main.c:7:14: error: invalid initializer
    7 |   char a[3]= 'WA';
      |              ^~~~
main.c:10:17: warning: multi-character character constant [-Wmultichar]
   10 |       if (s[i]=='AC'){
      |                 ^~~~
main.c:13:22: warning: multi-character character constant [-Wmultichar]
   13 |       else if (s[i]=='TLE'){
      |                      ^~~~~
main.c:16:19: warning: multi-character character constant [-Wmultichar]
   16 |    else if (s[i]=='RE'){
      |                   ^~~~
main.c:19:22: warning: multi-character character constant [-Wmultichar]
   19 |       else if (s[i]=='WA'){
      |                      ^~~~
main.c: In function 'main':
main.c:39:3: error: 'rerurn' undeclared (first use in this function)
   39 |   rerurn 0;
      |   ^~~~~~
main.c:39:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:39:9: error: expected ';' before numeric constant
   39 |   rerurn 0;
      |         ^~
      |         ;
Language: C++

#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'w' was not declared in this scope
    7 |   int a=0;w=0;t=0;r=0;
      |           ^
a.cc:7:15: error: 't' was not declared in this scope
    7 |   int a=0;w=0;t=0;r=0;
      |               ^
a.cc:7:19: error: 'r' was not declared in this scope
    7 |   int a=0;w=0;t=0;r=0;
      |                   ^
a.cc:8:13: error: expected primary-expression before ';' token
    8 |   for(int i=;i<x;i++){
      |             ^
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		int sum1 = 0;
		int sum2 = 0;
		int sum3 = 0;
		int sum4 = 0;
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();  
		for (int i=0; i < N ;i++){
			String S = in.next();
				if (S.equals("AC")){
					sum1= sum1 +1;
				}
				else if (S.equals("WA")){
					sum2= sum2 +1;
				}
      			else if (S.equals("TLE")){
					sum3= sum3 +1;
				}
      			else if (S.equals("RE")){
					sum4= sum4 +1;
				}
        }
      System.out.println("AC x " + sum1);
      System.out.println("WA x " + sum2);
      System.out.println("TLE x " + sum3);
      System.out.println("RE x " + sum4);x
	}
}

Compiler output:
Main.java:29: error: not a statement
      System.out.println("RE x " + sum4);x
                                         ^
Main.java:29: error: ';' expected
      System.out.println("RE x " + sum4);x
                                          ^
2 errors
Language: C

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

int main() {

	int N;
	int i;
	int C0 = 0, C1 = 0, C2 = 0, C3 = 0;
	cin >> N ;
	char A[N][4];
	for (i = 0; i < N;i++) {
		cin >> A[i];
	}
	for (i = 0; i < N; i++) {
	
		if (A[i][0]=="A") {
			C0++;
		
		}
		else if (A[i][0]=="W") {
			C1++;
		}
		else if(A[i][0]=="T")
		{
			C2++;
		}
		else if (A[i][0]=="R") {
			C3++;
		}
	
	}

	printf("AC x %d\n",C0);
	printf("WA x %d\n", C1);
	printf("TLE x %d\n", C2);
	printf("RE x %d\n", C3);
	return 0;
}

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

#include <stdio.h>
int fuction(const char s[]){
  int i=0；
    char a[0]= "AC";
  char a[1]= "TLE";
  char a[2]= "RE";
  char a[3]= "WA";
    int A,T,W,R;
    while(s[i]){
      if (s[i]=='AC'){
        A++;
      }
      else if (s[i]=='TLE'){
        T++;
      }
   else if (s[i]=='RE'){
        R++;
      }
      else if (s[i]=='WA'){
        W++;
      }
      i++;
    }
  printf("%s x %d\n", a[0], A);
  printf("%s x %d\n", a[1], T);
  printf("%s x %d\n", a[2], R);
  printf("%s x %d\n", a[3], W);
}
  
int main(void){
      int n;
      int i;
      char str[10];
      scanf("%d", &n);
      for (i=0; i<n; i++){
        scanf("%s", str[i]);
      }
  fuction(str);
  rerurn 0;
}
      

Compiler output:
main.c: In function 'fuction':
main.c:3:9: error: invalid suffix "；" on integer constant
    3 |   int i=0；
      |         ^~~
main.c:4:5: error: expected ',' or ';' before 'char'
    4 |     char a[0]= "AC";
      |     ^~~~
main.c:5:14: warning: initializer-string for array of 'char' is too long
    5 |   char a[1]= "TLE";
      |              ^~~~~
main.c:6:8: error: conflicting types for 'a'; have 'char[2]'
    6 |   char a[2]= "RE";
      |        ^
main.c:5:8: note: previous definition of 'a' with type 'char[1]'
    5 |   char a[1]= "TLE";
      |        ^
main.c:7:8: error: conflicting types for 'a'; have 'char[3]'
    7 |   char a[3]= "WA";
      |        ^
main.c:6:8: note: previous definition of 'a' with type 'char[2]'
    6 |   char a[2]= "RE";
      |        ^
main.c:10:17: warning: multi-character character constant [-Wmultichar]
   10 |       if (s[i]=='AC'){
      |                 ^~~~
main.c:13:22: warning: multi-character character constant [-Wmultichar]
   13 |       else if (s[i]=='TLE'){
      |                      ^~~~~
main.c:16:19: warning: multi-character character constant [-Wmultichar]
   16 |    else if (s[i]=='RE'){
      |                   ^~~~
main.c:19:22: warning: multi-character character constant [-Wmultichar]
   19 |       else if (s[i]=='WA'){
      |                      ^~~~
main.c: In function 'main':
main.c:39:3: error: 'rerurn' undeclared (first use in this function)
   39 |   rerurn 0;
      |   ^~~~~~
main.c:39:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:39:9: error: expected ';' before numeric constant
   39 |   rerurn 0;
      |         ^~
      |         ;
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Map<String,Integer> mp=new TreeMap<String,Integer>();
		for(int i=0;i<n;i++)
		{
			String p=sc.next();
			if(mp.containsKey(p))
			{
				mp.put(p,mp.get(p)+1);
			}
			else
			{
				mp.put(p,1);
			}
		}
	   Set<Map.Entry<String,Integer>> sp=mp.entrySet();
	   long flag1=0;
	   long flag2=0;
	   long flag3=0;
	   long flag4=0;
	   if(mp.get("AC")==null)
	   {
		   System.out.println("AC X "+"0");  
	   }
	   else
	   {
	   System.out.println("AC X "+mp.get("AC"));
	   }
	   if(mp.get("WA")==null)
	   {
		   System.out.println("WA X "+"0"); 
	   }
	   else
	   {
	   System.out.println("WA X "+mp.get("WA"));
	   }
	   if(mp.get("TLE")==null)
	   {
		   System.out.println("TLE X "+"0"); 
	   }
	   else
	   {
	   System.out.println("TLE X "+mp.get("TLE"));
	   }
	   if(mp.get("RE")==null)
	   {
		   System.out.println("RE X "+"0"); 
	   }
	   else
	   {
	   System.out.println("RE X "+mp.get("RE"));
	   }

Compiler output:
Main.java:56: error: reached end of file while parsing
	   }
	    ^
1 error