criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*;

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  string x,y;
  map<string,int> mp;
  cin>>a;
  b=a;
  while(b--)
  {cin>>x;
   mp[x]++;
  }
  for(auto i:mp)
    cout<<i->first<<" * "<<i->second<<endl;
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   15 |     cout<<i->first<<" * "<<i->second<<endl;
      |            ^~
a.cc:15:29: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   15 |     cout<<i->first<<" * "<<i->second<<endl;
      |                             ^~
a.cc:16:12: error: expected '}' at end of input
   16 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  string x,y;
  map<string,int> mp;
  cin>>a;
  b=a;
  while(b--)
  {cin>>x;
   mp[x]++;
  }
  for(auto i:mp)
    cout<<i.first<<" * "<<i.second<<endl;
  return 0;

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

package MyCompetativeJourney.Contests.AtCoder.Contest173;
import java.util.*;
import java.lang.*;

public class Solution {
    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            Map<String,Integer> map = new TreeMap<>();
            map.put("AC",0);
            map.put("WA",0);
            map.put("TLE",0);
           map.put("RE",0) ;
            while(n-->0){
                String s = sc.next();
                if(map.containsKey(s)){
                    map.put(s,map.get(s) + 1);
                }
            }
            for(Map.Entry<String,Integer> var : map.entrySet()){
                System.out.println(var.getKey()+" x "+var.getValue());
            }
    }
}

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

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

int main()
{
	string str;
	ll i;
	cin >> i;
	int count=0, cnt=0, num=0, n=0;
	vector<string>vec;
	for (int j = 0; j < i; j++)
	{
		cin >> str;
		vec.push_back(str);
		
		
		
	}for (int i = 0; i < str.size(); i++) {
			if (str[0] == 'A' && str[1] == 'C') count++;
			if (str[0] == 'W' && str[1] == 'A') cnt++;
			if (str[0] == 'T' && str[1] == 'L' && str[2] == 'E') num++;
			if (str[0] == 'R' && str[1] == 'E') n++;
		}
		cout << "AC" <<" x " << count/2 << endl;
		cout << "WA" << " x " << cnt/2 << endl;
		cout << "TLE" << " x " << num / 3<< endl;
		cout << "RE" << " x " << n << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'll' was not declared in this scope
    9 |         ll i;
      |         ^~
a.cc:10:16: error: 'i' was not declared in this scope
   10 |         cin >> i;
      |                ^
Language: Java


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

public class Solution {
    public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int n = sc.nextInt();
            Map<String,Integer> map = new TreeMap<>();
            map.put("AC",0);
            map.put("WA",0);
            map.put("TLE",0);
           map.put("RE",0) ;
            while(n-->0){
                String s = sc.next();
                if(map.containsKey(s)){
                    map.put(s,map.get(s) + 1);
                }
            }
            for(Map.Entry<String,Integer> var : map.entrySet()){
                System.out.println(var.getKey()+" x "+var.getValue());
            }
    }
}

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

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

str main() {
  
  int N;
  cin >> N;  
  string str;
  for (int i = 0; i < N; i++) {
  cin >> str.at(i);
  }
  
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  string AC;
  string WA;
  string TLE;
  string RE;
  
  for (int i = 0; i < N; i++) {
  if (str.at(i)== AC){
  A += 1
  }
  if (str.at(i)== WA){
  W += 1
  }
  if (str.at(i)== TLE){
  T += 1
  }
  if (str.at(i)== RE){
  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:4:1: error: 'str' does not name a type
    4 | str main() {
      | ^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
  {
  int n, j=0,k=0,g=0,m=0;
string s;
string s1="AC";
string s2="WA";
string s3="TLE";
string s4="RE";
  cin>>n;
//if(n>=1 && n<=100000){
    for(int i=0;i<n;i++)
    {
      cin>>s;
      if(s=="AC")
        j++;
   else if(s=="WA")
     k++;
     else if(s=="TLE")
       g++;
      else 
        m++;
    }
    cout<<"AC x "<<j<<"\n";
  cout<<"WA x "<<k<<"\n";
     cout<<"TLE x "<<g<<"\n";
    cout<<"RE x "<<m<<"\n";
}
return 0;
}


Compiler output:
a.cc:31:1: error: expected unqualified-id before 'return'
   31 | return 0;
      | ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int main()
{
	string str;
	ll i;
	cin >> i;
	int count=0, cnt=0, num=0, n=0;
	vector<string>vec;
	for (int j = 0; j < i; j++)
	{
		cin >> str;
		vec.push_back(str);
		for (int i = 0; i < str.size(); i++) {
			if (str[0] == 'A' && str[1] == 'C') count++;
			if (str[0] == 'W' && str[1] == 'A') cnt++;
			if (str[0] == 'T' && str[1] == 'L' && str[2] == 'E') num++;
			if (str[0] == 'R' && str[1] == 'E') n++;
		}
		
		
	}
		cout << "AC" <<" x " << count/2 << endl;
		cout << "WA" << " x " << cnt/2 << endl;
		cout << "TLE" << " x " << num / 3<< endl;
		cout << "RE" << " x " << n << endl;
	
	return 0;
}

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

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

int main() {
  
  int N;
  cin >> N;  
  string str;
  for (int i = 0; i < N; i++) {
  cin >> str.at(i);
  }
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0;
  string AC;
  string WA;
  string TLE;
  string RE;
  
  for (int i = 0; i < N; i++) {
  if (str.at(i)== AC){
  AC += 1
  }
  if (str.at(i)== WA){
  WA += 1
  }
  if (str.at(i)== TLE){
  TLE += 1
  }
  if (str.at(i)== RE){
  RE += 1
  }
  }  
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: conflicting declaration 'std::string AC'
   17 |   string AC;
      |          ^~
a.cc:13:7: note: previous declaration as 'int AC'
   13 |   int AC = 0;
      |       ^~
a.cc:18:10: error: conflicting declaration 'std::string WA'
   18 |   string WA;
      |          ^~
a.cc:14:7: note: previous declaration as 'int WA'
   14 |   int WA = 0;
      |       ^~
a.cc:19:10: error: conflicting declaration 'std::string TLE'
   19 |   string TLE;
      |          ^~~
a.cc:15:7: note: previous declaration as 'int TLE'
   15 |   int TLE = 0;
      |       ^~~
a.cc:20:10: error: conflicting declaration 'std::string RE'
   20 |   string RE;
      |          ^~
a.cc:16:7: note: previous declaration as 'int RE'
   16 |   int RE = 0;
      |       ^~
a.cc:24:10: error: expected ';' before '}' token
   24 |   AC += 1
      |          ^
      |          ;
   25 |   }
      |   ~       
a.cc:27:10: error: expected ';' before '}' token
   27 |   WA += 1
      |          ^
      |          ;
   28 |   }
      |   ~       
a.cc:30:11: error: expected ';' before '}' token
   30 |   TLE += 1
      |           ^
      |           ;
   31 |   }
      |   ~        
a.cc:33:10: error: expected ';' before '}' token
   33 |   RE += 1
      |          ^
      |          ;
   34 |   }
      |   ~
Language: C++



#include<bits/stdc++.h>
using namespace std;
int main()

{
    int n,a=0,t=0,r=0,a=0;
    cin>>n;
    while(n--)
    {
        string s;
        cin>>s;
        if(s=="AC")
            a++;
        if(s=="WA")
            w++;
        if(s=="TLE")
            t++;
        if(s=="RE")
            r++;

    }
    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:8:23: error: redeclaration of 'int a'
    8 |     int n,a=0,t=0,r=0,a=0;
      |                       ^
a.cc:8:11: note: 'int a' previously declared here
    8 |     int n,a=0,t=0,r=0,a=0;
      |           ^
a.cc:17:13: error: 'w' was not declared in this scope
   17 |             w++;
      |             ^
a.cc:25:19: error: 'w' was not declared in this scope
   25 |     cout<<"WA x"<<w<<endl;
      |                   ^
Language: C++

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

int main() {
  
  int N;
  cin >> N;  
  string str;
  for (int i = 0; i < N; i++) {
  cin >> str.at(i);
  }
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0;
  
  for (int i = 0; i < N; i++) {
  if (str.at(i)=="AC"){
  AC += 1
  }
  if (str.at(i)=="WA"){
  WA += 1
  }
  if (str.at(i)=="TLE"){
  TLE += 1
  }
  if (str.at(i)=="RE"){
  RE += 1
  }
  }  
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   if (str.at(i)=="AC"){
      |       ~~~~~~~~~^~~~~~
a.cc:20:10: error: expected ';' before '}' token
   20 |   AC += 1
      |          ^
      |          ;
   21 |   }
      |   ~       
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   if (str.at(i)=="WA"){
      |       ~~~~~~~~~^~~~~~
a.cc:23:10: error: expected ';' before '}' token
   23 |   WA += 1
      |          ^
      |          ;
   24 |   }
      |   ~       
a.cc:25:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |   if (str.at(i)=="TLE"){
      |       ~~~~~~~~~^~~~~~~
a.cc:26:11: error: expected ';' before '}' token
   26 |   TLE += 1
      |           ^
      |           ;
   27 |   }
      |   ~        
a.cc:28:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |   if (str.at(i)=="RE"){
      |       ~~~~~~~~~^~~~~~
a.cc:29:10: error: expected ';' before '}' token
   29 |   RE += 1
      |          ^
      |          ;
   30 |   }
      |   ~
Language: C++



#include<bits/stdc++.h>
using namespace std;
int main()

{
    int n,int a=0,int t=0,int r=0,int a=0;
    cin>>n;
    while(n--)
    {
        string s;
        cin>>s;
        if(s=="AC")
            a++;
        if(s=="WA")
            w++;
        if(s=="TLE")
            t++;
        if(s=="RE")
            r++;

    }
    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:8:11: error: expected unqualified-id before 'int'
    8 |     int n,int a=0,int t=0,int r=0,int a=0;
      |           ^~~
a.cc:15:13: error: 'a' was not declared in this scope
   15 |             a++;
      |             ^
a.cc:17:13: error: 'w' was not declared in this scope
   17 |             w++;
      |             ^
a.cc:19:13: error: 't' was not declared in this scope
   19 |             t++;
      |             ^
a.cc:21:13: error: 'r' was not declared in this scope
   21 |             r++;
      |             ^
a.cc:24:19: error: 'a' was not declared in this scope
   24 |     cout<<"AC x"<<a<<endl;
      |                   ^
a.cc:25:19: error: 'w' was not declared in this scope
   25 |     cout<<"WA x"<<w<<endl;
      |                   ^
a.cc:26:20: error: 't' was not declared in this scope
   26 |     cout<<"TLE x"<<t<<endl;
      |                    ^
a.cc:27:19: error: 'r' was not declared in this scope
   27 |     cout<<"RE x"<<r<<endl;
      |                   ^
Language: C++

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

int main() {
  
  int N;
  cin >> N;  
  string str;
  for (int i = 0; i < N; i++) {
  cin >> str.at(i);
  }
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0;
  
  
  
  for (int i = 0; i < N; i++) {
  if (vec.at(i)=="AC"){
  AC += 1
  }
  if (vec.at(i)=="WA"){
  WA += 1
  }
  if (vec.at(i)=="TLE"){
  TLE += 1
  }
  if (vec.at(i)=="RE"){
  RE += 1
  }
  }  
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'vec' was not declared in this scope
   21 |   if (vec.at(i)=="AC"){
      |       ^~~
a.cc:22:10: error: expected ';' before '}' token
   22 |   AC += 1
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:24:7: error: 'vec' was not declared in this scope
   24 |   if (vec.at(i)=="WA"){
      |       ^~~
a.cc:25:10: error: expected ';' before '}' token
   25 |   WA += 1
      |          ^
      |          ;
   26 |   }
      |   ~       
a.cc:27:7: error: 'vec' was not declared in this scope
   27 |   if (vec.at(i)=="TLE"){
      |       ^~~
a.cc:28:11: error: expected ';' before '}' token
   28 |   TLE += 1
      |           ^
      |           ;
   29 |   }
      |   ~        
a.cc:30:7: error: 'vec' was not declared in this scope
   30 |   if (vec.at(i)=="RE"){
      |       ^~~
a.cc:31:10: error: expected ';' before '}' token
   31 |   RE += 1
      |          ^
      |          ;
   32 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void){
  int i, n, s[4];
  char *a[3];
  
  scanf("%d", &n);
  for(i=0; i<n; i++){
    scanf("%s", a);
    switch(a[0]){
      case 'A':
        s[0]++;
        break;
      case 'W':
        s[1]++;
        break;
      case 'T':
        s[2]++;
        break;
      case 'R':
        s[3]++;
    }
  }
  printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d\n", s[0], s[1], s[2], s[3]);
return 0;}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: switch quantity not an integer
   10 |     switch(a[0]){
      |            ^
Language: Java

mport java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int n  = sc.nextInt();
   
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;
   
    for(int i = 0; i < n; i++)
    {
      String str = sc.nextLine();
     if(str.charAt(0) == 'A')
          b += 1;
      if(str.charAt(0) == 'W')
          c += 1;
      if(str.charAt(0) == 'T')
          d += 1;
      if(str.charAt(0) == 'R')
          e += 1;
    }
    System.out.println("AC x "+b);
    System.out.println("WA x "+c);
    System.out.println("TLE x "+d);
    System.out.println("RE x "+e);
  }
}               

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
  cin >> vec.at(i);
  }
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0; 
  
  for (int i = 0; i < N; i++) {
  if (vec.at(i)=="AC"){
  AC += 1
  }
  if (vec.at(i)=="WA"){
  WA += 1
  }
  if (vec.at(i)=="TLE"){
  TLE += 1
  }
  if (vec.at(i)=="RE"){
  RE += 1
  }
  }  
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   if (vec.at(i)=="AC"){
      |       ~~~~~~~~~^~~~~~
a.cc:19:10: error: expected ';' before '}' token
   19 |   AC += 1
      |          ^
      |          ;
   20 |   }
      |   ~       
a.cc:21:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |   if (vec.at(i)=="WA"){
      |       ~~~~~~~~~^~~~~~
a.cc:22:10: error: expected ';' before '}' token
   22 |   WA += 1
      |          ^
      |          ;
   23 |   }
      |   ~       
a.cc:24:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |   if (vec.at(i)=="TLE"){
      |       ~~~~~~~~~^~~~~~~
a.cc:25:11: error: expected ';' before '}' token
   25 |   TLE += 1
      |           ^
      |           ;
   26 |   }
      |   ~        
a.cc:27:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |   if (vec.at(i)=="RE"){
      |       ~~~~~~~~~^~~~~~
a.cc:28:10: error: expected ';' before '}' token
   28 |   RE += 1
      |          ^
      |          ;
   29 |   }
      |   ~
Language: Java

public class Main{
  public static void main(String[] args){
    int n = new java.util.Scanner(System.in).nextInt();

    long int ac=0, wa=0, tle=0, re=0;

    for (int i=0; i<n; i++){
      String tmp = new java.util.Scanner(System.in).nextLine();
      if (tmp.equals("AC")){
        ac++;
      }else if (tmp.equals("WA")){
        wa++;
      }else if (tmp.equals("TLE")){
        tle++;
      }else if (tmp.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:5: error: not a statement
    long int ac=0, wa=0, tle=0, re=0;
    ^
Main.java:5: error: ';' expected
    long int ac=0, wa=0, tle=0, re=0;
        ^
2 errors
Language: C++

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

int main() {
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
  cin >> vec.at(i);
  }
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0; 
  
  for (int i = 0; i < N; i++) {
  if (vec.at(i)=="AC"){
  AC += 1
  }
  if (vec.at(i)=="WA"){
  WA += 1
  }
  if (vec.at(i)=="TLE"){
  TLE += 1
  }
  if (vec.at(i)=="RE"){
  RE += 1
  }
  }  
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'N' was not declared in this scope
    5 |   vector<int> vec(N);
      |                   ^
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if (vec.at(i)=="AC"){
      |       ~~~~~~~~~^~~~~~
a.cc:17:10: error: expected ';' before '}' token
   17 |   AC += 1
      |          ^
      |          ;
   18 |   }
      |   ~       
a.cc:19:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   if (vec.at(i)=="WA"){
      |       ~~~~~~~~~^~~~~~
a.cc:20:10: error: expected ';' before '}' token
   20 |   WA += 1
      |          ^
      |          ;
   21 |   }
      |   ~       
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   if (vec.at(i)=="TLE"){
      |       ~~~~~~~~~^~~~~~~
a.cc:23:11: error: expected ';' before '}' token
   23 |   TLE += 1
      |           ^
      |           ;
   24 |   }
      |   ~        
a.cc:25:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |   if (vec.at(i)=="RE"){
      |       ~~~~~~~~~^~~~~~
a.cc:26:10: error: expected ';' before '}' token
   26 |   RE += 1
      |          ^
      |          ;
   27 |   }
      |   ~
Language: C++

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

int main() {
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
  cin >> vec.at(i);
  }
  
  for (int i = 0; i < N; i++) {
  if (vec.at(i)=="AC"){
  AC += 1
  }
  if (vec.at(i)=="WA"){
  WA += 1
  }
  if (vec.at(i)=="TLE"){
  TLE += 1
  }
  if (vec.at(i)=="RE"){
  RE += 1
  }
  }  
  
  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0; 
  
  cout << "AC x " + AC << endl;
  cout << "WA x " + WA << endl;
  cout << "TLE x " + TLE << endl;
  cout << "RE x " + WA << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'N' was not declared in this scope
    5 |   vector<int> vec(N);
      |                   ^
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (vec.at(i)=="AC"){
      |       ~~~~~~~~~^~~~~~
a.cc:12:3: error: 'AC' was not declared in this scope
   12 |   AC += 1
      |   ^~
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if (vec.at(i)=="WA"){
      |       ~~~~~~~~~^~~~~~
a.cc:15:3: error: 'WA' was not declared in this scope
   15 |   WA += 1
      |   ^~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if (vec.at(i)=="TLE"){
      |       ~~~~~~~~~^~~~~~~
a.cc:18:3: error: 'TLE' was not declared in this scope
   18 |   TLE += 1
      |   ^~~
a.cc:20:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   if (vec.at(i)=="RE"){
      |       ~~~~~~~~~^~~~~~
a.cc:21:3: error: 'RE' was not declared in this scope
   21 |   RE += 1
      |   ^~
Language: C

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

int main (void){
    int n;
    char judge[100000];
    int AC,WA,TLE,RE;
    scanf("%d",&n);
    for(int i=0 ;i<n; i++){
        scanf("%s",judge[i]);
    }
    for(int i=0 ;i<judge.length; i++){
        if(judge[i]=='AC'){
            AC++;
        }
        if(judge[i]=='WA'){
            WA++;
        }
        if(judge[i]=='TLE'){
            TLE++;
        }
        if(judge[i]=='RE'){
            RE++;
        }
    }
    printf("AC x %d\nWA X %d\nTLE x %d\nRE X %d\n",AC,WA,TLE,RE);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:25: error: request for member 'length' in something not a structure or union
   13 |     for(int i=0 ;i<judge.length; i++){
      |                         ^
main.c:14:22: warning: multi-character character constant [-Wmultichar]
   14 |         if(judge[i]=='AC'){
      |                      ^~~~
main.c:17:22: warning: multi-character character constant [-Wmultichar]
   17 |         if(judge[i]=='WA'){
      |                      ^~~~
main.c:20:22: warning: multi-character character constant [-Wmultichar]
   20 |         if(judge[i]=='TLE'){
      |                      ^~~~~
main.c:23:22: warning: multi-character character constant [-Wmultichar]
   23 |         if(judge[i]=='RE'){
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
       cin.ignore();
    int a=0,w=0,t=0,r=0;
    while(n--)
    {
        string st;
        getline(cin,st);
        if(st=="AC") a++;
        //else if(t=="AC") a++;
        else if(st=="WA") w++;
        else if(st=="TLE") t++;
        else(st=="RA") r++;
    }
    cout<<"AC "<<"x"<<" "<<a<<endl<<"WA"<<" "<<"x"<<" "<<w<<endl<<"TLE "<<"x"<<" "<<t<<endl<<"RA"<<" "<<"x "<<r<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: expected ';' before 'r'
   17 |         else(st=="RA") r++;
      |                       ^~
      |                       ;
a.cc:17:16: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   17 |         else(st=="RA") r++;
      |             ~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

int main() {
  int N;

  cin >> N;
  vector<string> str(N);
  for (int i = 0; i < N; i++) {
    cin >> str.at(i);
  }

  int AC = 0;
  int WA = 0;
  int TLE = 0;
  int RE = 0;
  for (int i = 0; i < N; i++) {
    if (str.at(i) = "AC") {
      AC += 1;
    }
    else if (str.at(i) = "WA") {
      WA += 1;
    }
    else if (str.at(i) = "TLE") {
      TLE += 1;
    }
    else {
      RE += 1;
    }
  }

  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:21:19: error: could not convert '(& str.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   21 |     if (str.at(i) = "AC") {
      |         ~~~~~~~~~~^~~~~~
      |                   |
      |                   std::__cxx11::basic_string<char>
a.cc:24:24: error: could not convert '(& str.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   24 |     else if (str.at(i) = "WA") {
      |              ~~~~~~~~~~^~~~~~
      |                        |
      |                        std::__cxx11::basic_string<char>
a.cc:27:24: error: could not convert '(& str.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"TLE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   27 |     else if (str.at(i) = "TLE") {
      |              ~~~~~~~~~~^~~~~~~
      |                        |
      |                        std::__cxx11::basic_string<char>
Language: C

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

int main (void){
    int n;
    char judge[100000];
    int AC,WA,TLE,RE;
    scanf("%d",&n);
    for(int i=0 ;i<n; i++){
        scanf("%s",judge[i])
    }
    for(int i=0 ;i<judge.length; i++){
        if(judge[i]=='AC'){
            AC++;
        }
        if(judge[i]=='WA'){
            WA++;
        }
        if(judge[i]=='TLE'){
            TLE++;
        }
        if(judge[i]=='RE'){
            RE++;
        }
    }
    printf("AC x %d\nWA X %d\nTLE x %d\nRE X %d\n",AC,WA,TLE,RE);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: expected ';' before '}' token
   11 |         scanf("%s",judge[i])
      |                             ^
      |                             ;
   12 |     }
      |     ~                        
main.c:13:25: error: request for member 'length' in something not a structure or union
   13 |     for(int i=0 ;i<judge.length; i++){
      |                         ^
main.c:14:22: warning: multi-character character constant [-Wmultichar]
   14 |         if(judge[i]=='AC'){
      |                      ^~~~
main.c:17:22: warning: multi-character character constant [-Wmultichar]
   17 |         if(judge[i]=='WA'){
      |                      ^~~~
main.c:20:22: warning: multi-character character constant [-Wmultichar]
   20 |         if(judge[i]=='TLE'){
      |                      ^~~~~
main.c:23:22: warning: multi-character character constant [-Wmultichar]
   23 |         if(judge[i]=='RE'){
      |                      ^~~~
Language: Java

#include<iostream>
using namespace std;
int main()
  {
  int n;
string s;
cin>>n;
string s1="AC";
string s2="WA";
string s3="TLE";
string s4="RE";
  int count=0,j=0,k=0,g=0,m=0;
if(n>=1 && n<=100000){
    for(int i=1;i<=n;i++)
    {
      cin>>s;
      if(s1.compare(s))j++;
   else if(s2.compare(s))k++;
     else if(s3.compare(s))g++;
      else if(s4.compare(s))m++;
    }
    cout<<"AC x "<<j;
  cout<<"WA x "<<k;
     cout<<"TLE x "<<g;
    cout<<"RE x "<<m;
}
return 0;
} 
   

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:7: error: not a statement
cin>>n;
   ^
Main.java:16: error: not a statement
      cin>>s;
         ^
Main.java:22: error: not a statement
    cout<<"AC x "<<j;
                 ^
Main.java:23: error: not a statement
  cout<<"WA x "<<k;
               ^
Main.java:24: error: not a statement
     cout<<"TLE x "<<g;
                   ^
Main.java:25: error: not a statement
    cout<<"RE x "<<m;
                 ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
9 errors
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define scf(n) scanf("%d",&n)
#define lscf(n) scanf("%lld",&n)
#define lpri(n) printf("%lld ",n)
#define pri(n) printf("%d ",(int)n)
#define prin(n) printf("%d\n",(int)n)
#define lprin(n) printf("%lld\n",n)
#define rep(i,ini,n) for(ll i=ini;i<(int)n;i++)
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x)     x.begin(),x.end()
#define tc   int tt; scf(tt); while(tt--)
#define inf INT_MAX
#define ninf INT_MIN
#define gcd __gcd
#define bitcount(n) __builtin_popcount(n)
typedef double dd;
using namespace std;
const ll mod =1e9+7;
const int N = 1e6+7;
 


ll power(ll a, ll b)
{
    if(b==0)
    return 1;
    if(b%2==0)
    return power((a*a)%mod,b/2)%mod;
    else
    return (a*power((a*a)%mod,b/2))%mod;
}

ll fact(ll n)
{
    if(n==0)
    return 1;
    return (n*fact(n-1))%mod;
}

int main{
 int n; string s;
  int count1=0; int count2=0; int count3=0; int count4=0;
  while(n--)
  {
    cin>>s;
    if (s== "AC")
    {
    count1++;}
  }
  
  
   if (s== "WA")
    {
    count2++;}
  }


 if (s== "TLE")
    {
    count3++;}
  }


 if (s== "RE")
    {
    count4++;}
  }

}
cout<<"AC x " <<count1<<endl;

cout<<"WA x " <<count2<<endl;

cout<<"TLE x " <<count3<<endl;

cout<<"RE x " <<count4;

  
}

Compiler output:
a.cc:44:5: error: cannot declare '::main' to be a global variable
   44 | int main{
      |     ^~~~
a.cc:45:2: error: expected primary-expression before 'int'
   45 |  int n; string s;
      |  ^~~
a.cc:45:2: error: expected '}' before 'int'
a.cc:44:9: note: to match this '{'
   44 | int main{
      |         ^
a.cc:47:3: error: expected unqualified-id before 'while'
   47 |   while(n--)
      |   ^~~~~
a.cc:56:4: error: expected unqualified-id before 'if'
   56 |    if (s== "WA")
      |    ^~
a.cc:59:3: error: expected declaration before '}' token
   59 |   }
      |   ^
a.cc:62:2: error: expected unqualified-id before 'if'
   62 |  if (s== "TLE")
      |  ^~
a.cc:65:3: error: expected declaration before '}' token
   65 |   }
      |   ^
a.cc:68:2: error: expected unqualified-id before 'if'
   68 |  if (s== "RE")
      |  ^~
a.cc:71:3: error: expected declaration before '}' token
   71 |   }
      |   ^
a.cc:73:1: error: expected declaration before '}' token
   73 | }
      | ^
a.cc:74:1: error: 'cout' does not name a type
   74 | cout<<"AC x " <<count1<<endl;
      | ^~~~
a.cc:76:1: error: 'cout' does not name a type
   76 | cout<<"WA x " <<count2<<endl;
      | ^~~~
a.cc:78:1: error: 'cout' does not name a type
   78 | cout<<"TLE x " <<count3<<endl;
      | ^~~~
a.cc:80:1: error: 'cout' does not name a type
   80 | cout<<"RE x " <<count4;
      | ^~~~
a.cc:83:1: error: expected declaration before '}' token
   83 | }
      | ^
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in); 
    int n  = sc.nextInt();
    
    int b = 0;
    int c = 0;
    int d = 0;
    int e = 0;
    
    for(int i = 0; i <= n; i++)
    {
      String str = sc.nextLine();
     if(str.charAt(0) == 'A')
          b += 1;
      if(str.charAt(0) == 'W')
          c += 1;
      if(str.charAt(0) == 'T')
          d += 1;
      if(str.charAt(0) == 'R')
          e += 1;
    }
    System.out.printn("AC = "+b);
    System.out.printn("WA = "+c);
    System.out.printn("TLE = "+d);
    System.out.printn("RE = "+e);
  }
}                          


Compiler output:
Main.java:26: error: cannot find symbol
    System.out.printn("AC = "+b);
              ^
  symbol:   method printn(String)
  location: variable out of type PrintStream
Main.java:27: error: cannot find symbol
    System.out.printn("WA = "+c);
              ^
  symbol:   method printn(String)
  location: variable out of type PrintStream
Main.java:28: error: cannot find symbol
    System.out.printn("TLE = "+d);
              ^
  symbol:   method printn(String)
  location: variable out of type PrintStream
Main.java:29: error: cannot find symbol
    System.out.printn("RE = "+e);
              ^
  symbol:   method printn(String)
  location: variable out of type PrintStream
4 errors
Language: C++

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

int main(){
	int n,ansA=0,ansW=0,ansT=0,ansR=0;
  	cin>>n;
  	string s[n];
  	for(int i=1;i<=n;i++){
    	cin>>s[i];
      	if(s[i]==AC) ansA++;
      	else if(s[i]==WA) ansW++;
      	else if(s[i]==TLE) ansT++;
      	else if(s[i]==RE) ansR++;
    }
  	cout<<"AC x"<<ansA<<endl<<"WA x"<<ansW<<endl<<"TLE x"<<ansT<<endl<<"RE x"<<ansR<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'AC' was not declared in this scope
   10 |         if(s[i]==AC) ansA++;
      |                  ^~
a.cc:11:23: error: 'WA' was not declared in this scope
   11 |         else if(s[i]==WA) ansW++;
      |                       ^~
a.cc:12:23: error: 'TLE' was not declared in this scope
   12 |         else if(s[i]==TLE) ansT++;
      |                       ^~~
a.cc:13:23: error: 'RE' was not declared in this scope
   13 |         else if(s[i]==RE) ansR++;
      |                       ^~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define scf(n) scanf("%d",&n)
#define lscf(n) scanf("%lld",&n)
#define lpri(n) printf("%lld ",n)
#define pri(n) printf("%d ",(int)n)
#define prin(n) printf("%d\n",(int)n)
#define lprin(n) printf("%lld\n",n)
#define rep(i,ini,n) for(ll i=ini;i<(int)n;i++)
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x)     x.begin(),x.end()
#define tc   int tt; scf(tt); while(tt--)
#define inf INT_MAX
#define ninf INT_MIN
#define gcd __gcd
#define bitcount(n) __builtin_popcount(n)
typedef double dd;
using namespace std;
const ll mod =1e9+7;
const int N = 1e6+7;
 


ll power(ll a, ll b)
{
    if(b==0)
    return 1;
    if(b%2==0)
    return power((a*a)%mod,b/2)%mod;
    else
    return (a*power((a*a)%mod,b/2))%mod;
}

ll fact(ll n)
{
    if(n==0)
    return 1;
    return (n*fact(n-1))%mod;
}

int main{
 int n; string s;
  int count1=0; int count2=0; int count3=0; int count4=0;
  while(n--)
  {
    cin>>s;
    if (s== "AC")
    {
    count1++;}
  }
  
  
   if (s== "WA")
    {
    count1++;}
  }


 if (s== "TLE")
    {
    count1++;}
  }


 if (s== "RE")
    {
    count1++;}
  }

}
cout<<"AC x" " " count1<<endl;

cout<<"WA x"  " " count2<<endl;

cout<<"TLE x" " " count3<<endl;

cout<<"RE x" " " <<count4;

  
}

Compiler output:
a.cc:44:5: error: cannot declare '::main' to be a global variable
   44 | int main{
      |     ^~~~
a.cc:45:2: error: expected primary-expression before 'int'
   45 |  int n; string s;
      |  ^~~
a.cc:45:2: error: expected '}' before 'int'
a.cc:44:9: note: to match this '{'
   44 | int main{
      |         ^
a.cc:47:3: error: expected unqualified-id before 'while'
   47 |   while(n--)
      |   ^~~~~
a.cc:56:4: error: expected unqualified-id before 'if'
   56 |    if (s== "WA")
      |    ^~
a.cc:59:3: error: expected declaration before '}' token
   59 |   }
      |   ^
a.cc:62:2: error: expected unqualified-id before 'if'
   62 |  if (s== "TLE")
      |  ^~
a.cc:65:3: error: expected declaration before '}' token
   65 |   }
      |   ^
a.cc:68:2: error: expected unqualified-id before 'if'
   68 |  if (s== "RE")
      |  ^~
a.cc:71:3: error: expected declaration before '}' token
   71 |   }
      |   ^
a.cc:73:1: error: expected declaration before '}' token
   73 | }
      | ^
a.cc:74:1: error: 'cout' does not name a type
   74 | cout<<"AC x" " " count1<<endl;
      | ^~~~
a.cc:76:1: error: 'cout' does not name a type
   76 | cout<<"WA x"  " " count2<<endl;
      | ^~~~
a.cc:78:1: error: 'cout' does not name a type
   78 | cout<<"TLE x" " " count3<<endl;
      | ^~~~
a.cc:80:1: error: 'cout' does not name a type
   80 | cout<<"RE x" " " <<count4;
      | ^~~~
a.cc:83:1: error: expected declaration before '}' token
   83 | }
      | ^
Language: Java

import java.util.Scanner;
public class B {
    int A=0,W=0,T=0,R=0;
    void main(){
        Scanner scan = new Scanner(System.in);
        String txt = new String();
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            txt = scan.next();
            if(txt == "AC"){
                A++;
            }else if(txt == "WA"){
                W++;
            }else if(txt == "TLE"){
                T++;
            }else if(txt == "RE"){
                R++;
            }
        }
        scan.close();
        System.out.println("AC x " + A);
        System.out.println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
    
}

Compiler output:
Main.java:2: 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()
{ int N,i,C0,C1,C2,C3;
 char S[100000];
 scanf("%d",&N);
 for(i=1;i<=N;i++)
 {
   scanf("%s",&S[i]);
 }
 for(i=1;i<=N;i++)
 {
   if(S[i]=='AC')
     C0 = C0+1;
   else if(S[i]=='WA')
     C1 = C1+1;
   else if(S[i]=='TLE')
     C2=C2+1;
   else 
     C3=C3+1;
 }
 printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
   return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:13:13: warning: multi-character character constant [-Wmultichar]
   13 |    if(S[i]=='AC')
      |             ^~~~
main.c:15:18: warning: multi-character character constant [-Wmultichar]
   15 |    else if(S[i]=='WA')
      |                  ^~~~
main.c:17:18: warning: multi-character character constant [-Wmultichar]
   17 |    else if(S[i]=='TLE')
      |                  ^~~~~
main.c:22:20: warning: multi-character character constant [-Wmultichar]
   22 |  printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
      |                    ^~~~~~
main.c:22:26: error: expected ')' before 'C0'
   22 |  printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
      |        ~                 ^~
      |                          )
main.c:22:29: warning: multi-character character constant [-Wmultichar]
   22 |  printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
      |                             ^~~~~~
main.c:22:38: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   22 |  printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
      |                                      ^~~~~~~
main.c:22:48: warning: multi-character character constant [-Wmultichar]
   22 |  printf("%d%d%d%d",'AC x'C0,'WA x'C1,'TLE x'C2,'RE x'C3);
      |                                                ^~~~~~
Language: C

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

int main(void){
    int N,c0=0,c1=0,c2=0,c3=0;
    int s;
    if((scanf("%d",&N)!=1)||(N<0||100000<N)) return -1;
    char s[N][5];

    for(int i = 0;i<N;i++){
        s = scanf("%s",s[i]);
        if((s == 2)||(s==3)){
        if(strcmp(s[i],"AC")==0) c0++;
        else if(strcmp(s[i],"WA")==0) c1++;
        else if(strcmp(s[i],"TLE")==0) c2++;
        else if(strcmp(s[i],"RE")==0) c3++;
        else return -1;
    }else return -1;
    }
    printf("AC×%d\nWA×%d\nTLE×%d\nRE×%d\n",c0,c1,c2,c3);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:10: error: conflicting types for 's'; have 'char[N][5]'
    8 |     char s[N][5];
      |          ^
main.c:6:9: note: previous declaration of 's' with type 'int'
    6 |     int s;
      |         ^
Language: C

#include<stdio.h>
#include<string.h>
int main()
{ int N,i,C0,C1,C2,C3;
 char S[100000];
 scanf("%d",&N);
 for(i=1;i<=N;++)
 {
   scanf("%s",&S[i]);
 }
 for(i=1;i<=N;i++)
 {
   if(S[i]=='AC')
     C0 = C0+1;
   else if(S[i]=='WA')
     C1 = C1+1;
   else if(S[i]=='TLE')
     C2=C2+1;
   else 
     C3=C3+1;
 }
 printf("%d%d%d%d","AC x"C0,"WA x"C1,"TLE x"C2,"RE x"C3)
   return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before ')' token
    7 |  for(i=1;i<=N;++)
      |                 ^
main.c:13:13: warning: multi-character character constant [-Wmultichar]
   13 |    if(S[i]=='AC')
      |             ^~~~
main.c:15:18: warning: multi-character character constant [-Wmultichar]
   15 |    else if(S[i]=='WA')
      |                  ^~~~
main.c:17:18: warning: multi-character character constant [-Wmultichar]
   17 |    else if(S[i]=='TLE')
      |                  ^~~~~
main.c:22:26: error: expected ')' before 'C0'
   22 |  printf("%d%d%d%d","AC x"C0,"WA x"C1,"TLE x"C2,"RE x"C3)
      |        ~                 ^~
      |                          )
main.c:22:57: error: expected ';' before 'return'
   22 |  printf("%d%d%d%d","AC x"C0,"WA x"C1,"TLE x"C2,"RE x"C3)
      |                                                         ^
      |                                                         ;
   23 |    return 0;
      |    ~~~~~~
Language: C++

int main(void) {
	int n;
	char str[100];
	int AC = 0, WA = 0, TLE = 0, RE = 0;

	scanf("%d", &n);

	for (int i = 0; i < n;i++) {
		scanf("%s",str);

		if (str == "AC")
			AC++;
		else if (str == "WA")
			WA++;
		else if (str == "TLE")
			TLE++;
		else if (str == "RE")
			RE++;
	}

	printf("\nAC * %d\nWA * %d\nTLE * %d\nRE * %d",AC,WA,TLE,RE);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d", &n);
      |         ^~~~~
a.cc:21:9: error: 'printf' was not declared in this scope
   21 |         printf("\nAC * %d\nWA * %d\nTLE * %d\nRE * %d",AC,WA,TLE,RE);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void) {
Language: C

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

int main(void)
{
    int i, num=0;
    int count1=0, count2=0, count3=0, count4=0;
    char str[4];
    
    scanf("%d", &num);

    for(i=0; i<num; i++) {
        scanf("%s", str);
        if (strcmp(str, "AC") == 0) {
            count1++;
        } else if (strcmp(str, "WA") == 0) {
            count2++;
        } else if (strcmp(str, "TLE") == 0) {
            count3++;
        } else {
            count4++;
        }
    }
    
    printf("AC × %d\n", count1);
    printf("WA × %d\n", count2);
    printf("TLE × %d\n", count3);
    printf("RE × %d\n", count4);

    return 0;
}

Compiler output:
main.c:34:5: error: redefinition of 'main'
   34 | int main(void)
      |     ^~~~
main.c:4:5: note: previous definition of 'main' with type 'int(void)'
    4 | int main(void)
      |     ^~~~
Language: Java

import java.util.Scanner;
public class B {
    int A=0,W=0,T=0,R=0;
    void main(){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        for(int i = 0;i < N;i++){
            String txt = scan.next;
            if(txt == "AC"){
                A++;
            }else if(txt == "WA"){
                W++;
            }else if(txt == "TLE"){
                T++;
            }else if(txt == "RE"){
                R++;
            }
        }
        System.out.println("AC x " + A);
        System.out,println("WA x " + W);
        System.out.println("TLE x " + T);
        System.out.println("RE x " + R);
    }
    
}

Compiler output:
Main.java:20: error: not a statement
        System.out,println("WA x " + W);
              ^
Main.java:20: error: ';' expected
        System.out,println("WA x " + W);
                  ^
2 errors
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <queue>
#include <math.h>
#include <cmath>
#include <unordered_map>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;





// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long N;
    scanf("%lld",&N);
    std::vector<std::string> S(N);

    int cntAC=0;int cntWA=0;int cntTLE=0;int cntRE=0;

    for(int i = 0 ; i < N ; i++){
        std::cin >> S[i];
        if(S[i]=="AC"){
            cntAC++;
        }else if(S[i]=="WA"){
            cntWA++;
        }else if(S[i]=="TLE"){
            cntTLE++;
        }else if(S[i]=="RE"){
            cntRE++;
        }
    }
    cout<<"AC x "<<cntAC<<endl;
    cout<<"WA x "<<cntWA<<endl;
    cout<<"TLE x "<<cntTLE<<endl;
    cout<<"RE x "<<cntRE<<endl
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:31: error: expected ';' before 'return'
   43 |     cout<<"RE x "<<cntRE<<endl
      |                               ^
      |                               ;
   44 |     return 0;
      |     ~~~~~~