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

#include <bits/stdc++.h>

#define mp make_pair
#define eb emplace_back
#define ff first
#define ss second

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

const int MAXN = 100;
//#define int long long
const int INF = 1e9;

signed main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

	int n;
  cin >> n;
  map<string, int> m;
  for (int i = 0; i < n; i++){
  	string s;
    cin >> s;
    if (!m.count(s)) m[s] = 0;
    ms[s]++;
  }
  if (!m.count("AC")) m[s] = 0;
  if (!m.count("WA")) m[s] = 0;
  if (!m.count("TLE")) m[s] = 0;
  if (!m.count("RE")) m[s] = 0;
  cout << "AC x " << m["AC"] << '\n';
  cout << "WA x " << m["WA"] << '\n';
  cout << "TLE x " << m["TLE"] << '\n';
  cout << "RE x " << m["RE"] << '\n';

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:5: error: 'ms' was not declared in this scope; did you mean 's'?
   29 |     ms[s]++;
      |     ^~
      |     s
a.cc:31:25: error: 's' was not declared in this scope
   31 |   if (!m.count("AC")) m[s] = 0;
      |                         ^
a.cc:32:25: error: 's' was not declared in this scope
   32 |   if (!m.count("WA")) m[s] = 0;
      |                         ^
a.cc:33:26: error: 's' was not declared in this scope
   33 |   if (!m.count("TLE")) m[s] = 0;
      |                          ^
a.cc:34:25: error: 's' was not declared in this scope
   34 |   if (!m.count("RE")) m[s] = 0;
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define io ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define ll long long int

int main()
{
  io;
  ll n ;
  cin >> n ;
  string s[n];
  unordered_map<string,int> mp;
  for(ll i=0;i<n;i++) {
    cin >> s[i];
    mp[s[i]]++;
  }
  cout <<"AC x " << mp[AC] <<"\n";
  cout <<"WA x " << mp[WA] <<"\n";
  cout <<"TLE x " << mp[TLE] <<"\n";
  cout <<"RE x " << mp[RE] ;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'AC' was not declared in this scope
   17 |   cout <<"AC x " << mp[AC] <<"\n";
      |                        ^~
a.cc:18:24: error: 'WA' was not declared in this scope
   18 |   cout <<"WA x " << mp[WA] <<"\n";
      |                        ^~
a.cc:19:25: error: 'TLE' was not declared in this scope
   19 |   cout <<"TLE x " << mp[TLE] <<"\n";
      |                         ^~~
a.cc:20:24: error: 'RE' was not declared in this scope
   20 |   cout <<"RE x " << mp[RE] ;
      |                        ^~
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String n = sc.nextLine();
		int ac=0,wa=0,tle=0,re=0;
		String =sc.next()
		for(int i=0;i<n;i++){
			switch (result){
			case "AC":
				C1 += 1;
				break;
			case "WA":
				C2 += 1;
				break;
			case "TLE":
				C3 += 1;
				break;
			case "RE":
				C4 += 1;
				break;
			default:
			}
			result = sc.next();
		}
		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:7: error: ';' expected
		String =sc.next()
		                 ^
1 error
Language: C++

#include <iostream>
#include <limits>
#include <numeric>
#include <string>
#include <algorithm>
#include <map>
using namespace std;
#define INF 100000000
int main(){
    int N;
    cin >> N;
    map<string, int> mp;

    REP(i, N){
        string str;
        cin >> str;
        mp[str]++;
    }

    cout << "AC" << " x " << mp["AC"] << endl;
    cout << "WA" << " x " << mp["WA"] << endl;
    cout << "TLE" << " x " << mp["TLE"] << endl;
    cout << "RA" << " x " << mp["RA"] << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     REP(i, N){
      |         ^
a.cc:14:5: error: 'REP' was not declared in this scope
   14 |     REP(i, N){
      |     ^~~
Language: C++

#include <bits/stdc++.h> 万能だが、不要なのも多く競プロじゃないと使えない
#define rep(i, n) for(int i =0; i < (n); ++i)
// ループの変数が[i],回す回数が[n]->for文に展開される
//見やすさ、バグりにくさでいい感じ
using namespace std;
using ll =Long Long;
using P =pair<int, int>;
// 連想配列又はif文を使う
int main(){
  int n;
  cin >> n;
  map<string, int> cnt;
  rep(i, n){
    string s;
    cin >> s;
    cnt[s]++;
    //存在しなかったら０が入る
  }
  for(string s: {"AC", "WA", "TLE", "RE"}){
    //C++の便利コード　{"AC", "WA", "TLE", "RE"}イニシャライズコードー当てはまる方を推測して当てはめてくれるー＞この場合vectorのstring 文字列配列
    cout << "X" << cnt[s] << endl;
  }
  return 0;
}

Compiler output:
a.cc:1:26: error: extended character 、 is not valid in an identifier
    1 | #include <bits/stdc++.h> 万能だが、不要なのも多く競プロじゃないと使えない
      |                          ^
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> 万能だが、不要なのも多く競プロじゃないと使えない
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:11: error: 'Long' does not name a type; did you mean 'long'?
    6 | using ll =Long Long;
      |           ^~~~
      |           long
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  int n; cin >> n;
  map<string, int> re;
  while(n--){
    string s; cin >> s;
    ++re[s];
  }
  cout << "AC x " <<re["AC"] << "\n"; 
  cout << "WA x " <<re["WA"] << "\n";
  cout << "TLE x " <<re["TLE"] << "\n";
  cout << "RE x " <<re["RE"] << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'map' was not declared in this scope
    6 |   map<string, int> re;
      |   ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | #include <string>
a.cc:6:13: error: expected primary-expression before ',' token
    6 |   map<string, int> re;
      |             ^
a.cc:6:15: error: expected primary-expression before 'int'
    6 |   map<string, int> re;
      |               ^~~
a.cc:9:7: error: 're' was not declared in this scope
    9 |     ++re[s];
      |       ^~
a.cc:11:21: error: 're' was not declared in this scope
   11 |   cout << "AC x " <<re["AC"] << "\n";
      |                     ^~
Language: C++

main = do
	n <- readLn :: IO Int
	dat <- fmap words . lines <$> getContents
	let flatten = foldr (\ a b -> a++b) []
	let count str = foldr (\b a -> if b == str then a+1 else a ) 0 (flatten dat)
	mapM (\str ->  putStrLn $ str ++ " x " ++ (show $ count str)) ["AC", "WA", "TLE", "RE"]

Compiler output:
a.cc:4:30: error: stray '\' in program
    4 |         let flatten = foldr (\ a b -> a++b) []
      |                              ^
a.cc:5:32: error: stray '\' in program
    5 |         let count str = foldr (\b a -> if b == str then a+1 else a ) 0 (flatten dat)
      |                                ^
a.cc:6:15: error: stray '\' in program
    6 |         mapM (\str ->  putStrLn $ str ++ " x " ++ (show $ count str)) ["AC", "WA", "TLE", "RE"]
      |               ^
a.cc:1:1: error: 'main' does not name a type
    1 | main = do
      | ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected '(' before 'if'
   15 |         else if if(s[i]=="WA")
      |                 ^~
      |                 (
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else if if(s[i]=="TLE")
      |         ^~~~
a.cc:19:17: error: expected '(' before 'if'
   19 |         else if if(s[i]=="TLE")
      |                 ^~
      |                 (
a.cc:23:9: error: 'else' without a previous 'if'
   23 |         else if if(s[i]=="RE")
      |         ^~~~
a.cc:23:17: error: expected '(' before 'if'
   23 |         else if if(s[i]=="RE")
      |                 ^~
      |                 (
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
      	int ac = 0;
      	int wa = 0;
      	int tle = 0;
      	int re = 0;
	  	List<String> jugdges = new ArrayList<String>();
      	for(int i = 0; i < N; i++){
	 		judges.add(sc.nextLine());
      	}
      	for(String str: judges){
        	switch(str){
          		case "AC":
            		ac ++;
          		case "WA":
            		wa ++;
          		case "TLE":
            		tle ++;
          		case "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:13: error: cannot find symbol
	 		judges.add(sc.nextLine());
	 		^
  symbol:   variable judges
  location: class Main
Main.java:15: error: cannot find symbol
      	for(String str: judges){
      	                ^
  symbol:   variable judges
  location: class Main
2 errors
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 C1=0,C2=0,C3=0,C4=0;
		for(int i=0;i<n;i++){
			String result = sc.next();
			switch (result){
			case "AC":
				C1++1;
				break;
			case "WA":
				C2++1;
				break;
			case "TLE":
				C3++1;
				break;
			case "RE":
				C4++1;
				break;
			default:
			}
		}
		System.out.println("AC x "+ C1);
		System.out.println("WA x "+ C2);
		System.out.println("TLE x "+ C3);
		System.out.println("Re x "+ C4);
	}
}

Compiler output:
Main.java:11: error: ';' expected
				C1++1;
				    ^
Main.java:14: error: ';' expected
				C2++1;
				    ^
Main.java:17: error: ';' expected
				C3++1;
				    ^
Main.java:20: error: ';' expected
				C4++1;
				    ^
4 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'strig' was not declared in this scope
    6 |         map<strig, int> cnt;
      |             ^~~~~
a.cc:6:23: error: template argument 1 is invalid
    6 |         map<strig, int> cnt;
      |                       ^
a.cc:6:23: error: template argument 3 is invalid
a.cc:6:23: error: template argument 4 is invalid
a.cc:9:20: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    9 |                 cnt[s]++;
      |                    ^
a.cc:12:42: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |                 cout << s << " x " << cnt[s] << endl;
      |                                          ^
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 C1=0,C2=0,C3=0,C4=0;
		for(int i=1;i<n;i++){
			String result = sc.next();
			switch (result){
			case "AC":
				C1++;
				break;
			case "WA":
				C2++;
				break;
			case "TLE":
				C3++;
				break;
			case "RE":
				C4++;
				break;
			default:
			}
		}
		System.out.println("AC x "+ String.valueOf(C1));
		System.out.printaln("WA x "+ String.valueOf(C2));
		System.out.println("TLE x "+ String.valueOf(C3));
		System.out.println("Re x "+ String.valueOf(C4));
	}
}

Compiler output:
Main.java:26: error: cannot find symbol
		System.out.printaln("WA x "+ String.valueOf(C2));
		          ^
  symbol:   method printaln(String)
  location: variable out of type PrintStream
1 error
Language: Java

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        Map<String,Integer> frequencies = new HashMap<>();

        String[] verdicts = {"WA","AC","TLE","RE"};
        for(String verdict:verdicts)frequencies.put(verdict,0);
        int n = Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            String verdict  = br.readLine();
            frequencies.put(verdict,frequencies.getOrDefault(verdict,0)+1);
        }
        System.out.println("AC" + " x " +frequencies.get("AC"));
        System.out.println("WA" + " x " +frequencies.get("WA"));
        System.out.println("TLE" + " x " +frequencies.get("TLE"));
        System.out.println("RE" + " x " +frequencies.get("RE"));
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
                                 ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br  = new BufferedReader(new InputStreamReader(System.in));
                                                    ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
        Map<String,Integer> frequencies = new HashMap<>();
        ^
  symbol:   class Map
  location: class Main
Main.java:4: error: cannot find symbol
        Map<String,Integer> frequencies = new HashMap<>();
                                              ^
  symbol:   class HashMap
  location: class Main
6 errors
Language: C

#include<bits/stdc++.h>

#define ll long long
#define forn(i,n) for(int i=0; i<n; i++)
#define fors(i,s,n) for(int i=s; i<n; i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()

using namespace std;

const int INF = 1e8+1;

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

}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
  ll t;
  cin>>t;
  ll ac=0,wa=0,tle=0,re=0;
  while(t--){
    ll string s;
    cin>>s;
    if(s=="AC"){
      ac++;
    }else if(s=="WA"){
      wa++;
    }else if(s=="TLE"){
      tle++;
    }else if(s=="RE"){
      re++;
    }
  
  }
  cout<<"AC X "<<ac<<endl;
  cout<<"WA X "<<wa<<endl;
  cout<<"TLE X "<<tle<<endl;
  cout<<"RE X "<<re<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected initializer before 's'
    9 |     ll string s;
      |               ^
a.cc:10:10: error: 's' was not declared in this scope
   10 |     cin>>s;
      |          ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
  int b,a=0,w=0,t=0,r=0;
  cin>>b;
vector<string>a(b);
  for(int i=0;i<b;i++){
  cin>>a.at(i);
    if(a.at(i)=='AC'){
      a++;
  }
    else if(a.at(i)=='WA'){
    w++;
    }
    else if(a.at(i)=='TLE'){
     t++; 
    }
    else{
    r++;
    }
    cout<<"AC x "<<a<<endl;
    cout<<"WA x "<<w<<endl;
    cout<<"TLE x "<<t<<endl;
    cout<<"RE x "<<r<<endl;
    return 0;
}

Compiler output:
a.cc:11:17: warning: multi-character character constant [-Wmultichar]
   11 |     if(a.at(i)=='AC'){
      |                 ^~~~
a.cc:14:22: warning: multi-character character constant [-Wmultichar]
   14 |     else if(a.at(i)=='WA'){
      |                      ^~~~
a.cc:17:22: warning: multi-character character constant [-Wmultichar]
   17 |     else if(a.at(i)=='TLE'){
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:8:15: error: conflicting declaration 'std::vector<std::__cxx11::basic_string<char> > a'
    8 | vector<string>a(b);
      |               ^
a.cc:6:9: note: previous declaration as 'int a'
    6 |   int b,a=0,w=0,t=0,r=0;
      |         ^
a.cc:10:10: error: request for member 'at' in 'a', which is of non-class type 'int'
   10 |   cin>>a.at(i);
      |          ^~
a.cc:11:10: error: request for member 'at' in 'a', which is of non-class type 'int'
   11 |     if(a.at(i)=='AC'){
      |          ^~
a.cc:14:15: error: request for member 'at' in 'a', which is of non-class type 'int'
   14 |     else if(a.at(i)=='WA'){
      |               ^~
a.cc:17:15: error: request for member 'at' in 'a', which is of non-class type 'int'
   17 |     else if(a.at(i)=='TLE'){
      |               ^~
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main() {
  char S ; 
  int N ; 
  cin >> N ; 
  int A , W , T , R ; 
  A = 0 ; 
  W = 0 ; 
  T = 0 ;
  R = 0 ;
  
  for (int i = 0 ; i<N ; i++ ){
    cin >> S ;
    
    if (S == "AC"){
      A++ ; 
    }
    else if (S =='WA'){
      W++ ; 
    }
    else if (S == 'TLE'){
      T++ ; 
    }
    else {
      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:20:18: warning: multi-character character constant [-Wmultichar]
   20 |     else if (S =='WA'){
      |                  ^~~~
a.cc:23:19: warning: multi-character character constant [-Wmultichar]
   23 |     else if (S == 'TLE'){
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:17:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if (S == "AC"){
      |         ~~^~~~~~~
Language: C++

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




Compiler output:
a.cc:6:16: warning: multi-character character constant [-Wmultichar]
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                ^~~~
a.cc:6:21: warning: multi-character character constant [-Wmultichar]
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                     ^~~~
a.cc:6:26: warning: multi-character character constant [-Wmultichar]
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                          ^~~~~
a.cc:6:32: warning: multi-character character constant [-Wmultichar]
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:6:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                ^~~~
a.cc:6:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                     ^~~~
a.cc:6:26: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                          ^~~~~
a.cc:6:32: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string r[4]={'AC','WA','TLE','RE'};
      |                                ^~~~
Language: C++

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

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

import java.util.*;

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

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

import java.util.*;

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

Compiler output:
Main.java:8: error: cannot find symbol
	String s[] = new Sting[N];
	                 ^
  symbol:   class Sting
  location: class Main
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: cannot find symbol
	String s[] = new Sting[N];
	                 ^
  symbol:   class Sting
  location: class Main
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:3: error: class B is public, should be declared in a file named B.java
public class B{
       ^
Main.java:8: error: cannot find symbol
	String s[] = new Sting[N];
	                 ^
  symbol:   class Sting
  location: class B
2 errors
Language: C

#include <stdio.h>
 
int main() {
  int ac, wa, tle, re, n, temp;
  scanf("%d", &n);
  for (int i = 0; i < n, i++) {
    scanf("%s", &temp);
    if(temp = "AC"){
      ac++;
    }
    if(temp = "WA"){
      wa++;
    }
    if(temp = "TLE"){
      tle++;
    }
    if(temp = "RE"){
      re++;
    }
  }printf("AC x %d\nWA x %d\nTLE x %d\n RE x %d\n", ac, wa, tle, re);
}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected ';' before ')' token
    6 |   for (int i = 0; i < n, i++) {
      |                             ^
      |                             ;
main.c:8:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |     if(temp = "AC"){
      |             ^
main.c:11:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 |     if(temp = "WA"){
      |             ^
main.c:14:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   14 |     if(temp = "TLE"){
      |             ^
main.c:17:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   17 |     if(temp = "RE"){
      |             ^
Language: C

#include <stdio.h>

int main() {
  int ac, wa, tle, re, n, temp;
  scanf("%d", &n);
  for (int i = 0; i < n, i++) {
    scanf("%s", &temp);
    if(temp = 'AC'){
      ac++;
    }
    if(temp = 'WA'){
      wa++;
    }
    if(temp = 'TLE'){
      tle++;
    }
    if(temp = 'RE'){
      re++;
    }
  }printf("AC x %d\nWA x %d\nTLE x %d\n RE x %d\n", ac, wa, tle, re);
}

Compiler output:
main.c: In function 'main':
main.c:6:29: error: expected ';' before ')' token
    6 |   for (int i = 0; i < n, i++) {
      |                             ^
      |                             ;
main.c:8:15: warning: multi-character character constant [-Wmultichar]
    8 |     if(temp = 'AC'){
      |               ^~~~
main.c:11:15: warning: multi-character character constant [-Wmultichar]
   11 |     if(temp = 'WA'){
      |               ^~~~
main.c:14:15: warning: multi-character character constant [-Wmultichar]
   14 |     if(temp = 'TLE'){
      |               ^~~~~
main.c:17:15: warning: multi-character character constant [-Wmultichar]
   17 |     if(temp = 'RE'){
      |               ^~~~
Language: C++

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

main()
{
  	long int N,i,ac=0,wa=0,tle=0,re=0;
  	char word[10];
	cin>>N;
	for(i=0;i<N;i++)
    {
      gets(word);
      if(word=="AC")
      {
        ac++;
      }
      if(word=="WA")
      {
        wa++;
      }
      if(word=="TLE")
      {
        tle++;
      }
      if(word=="RE")
      {
        re++;
      }
    }
    cout<<"AC x "<<ac<<endl;
    cout<<"WA x "<<wa<<endl;      
    cout<<"TLE x "<<tle<<endl;
    cout<<"RE x "<<re<<endl;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:7: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |       gets(word);
      |       ^~~~
      |       getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int N,i,C1=0,C2=0,C3=0,C0=0;
    string S;
    cin>>N;
    for(i=0;i<N;i++)
    {
        cin>>s;
        if(S[0]=='A')
        {
            C0++;
        }
        else if(S[0]=='W')
        {
            C1++;
        }
        else if(S[0]=='T')
        {
            C2++;
        }
        else
        {
            C3++;

        }
    }
    cout<<"AC X "<<C0<<endl;
    cout<<"WA X "<<C1<<endl;
    cout<<"TLE X "<<C2<<endl;
    cout<<"RE X "<<C3<<endl;
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int N,i,co1=0,co2=0,co3=0,co0=0;
    string S;
    cin>>N;
    for(i=0;i<n;i++)
    {
        cin>>S;
        if(S[0]=='A')
        {
            co0++;
        }
        else if(S[0]=='W')
        {
            co1++;
        }
        else if(S[0]=='T')
        {
            co2++;
        }
        else
        {
            co3++;

        }
    }
    cout<<"AC X "<<co0<<endl;
    cout<<"WA X "<<co1<<endl;
    cout<<"TLE X "<<co2<<endl;
    cout<<"RE X "<<co3<<endl;
    return 0;
}


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

#include <stdio.h>


int MAIN(){
  int n;
  int ac=0;
  int tle=0;
  int wa=0;
  int re=0;
  char s[n];
  scanf("%d", &n);
  for(int i=0;i<n;i++){
    scanf("%s", s[i]);
    switch (s[i]) {
      case "AC": ac++;
      case "WA": wa++;
      case "TLE": tle++;
      case "RE": re++;
    }
  }
  printf("AC × %d\n", ac);
  printf("WA × %d\n", wa);
  printf("TLE × %d\n", tle);
  printf("RE × %d\n", re);

  return 0;
}


Compiler output:
main.c: In function 'MAIN':
main.c:15:7: error: pointers are not permitted as case values
   15 |       case "AC": ac++;
      |       ^~~~
main.c:16:7: error: pointers are not permitted as case values
   16 |       case "WA": wa++;
      |       ^~~~
main.c:17:7: error: pointers are not permitted as case values
   17 |       case "TLE": tle++;
      |       ^~~~
main.c:18:7: error: pointers are not permitted as case values
   18 |       case "RE": re++;
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int a=0,b=0,c=0,d=0;
    while(n--)
    {
        string s;
        string p="AC",q="WA",r="TLE",s1="TLE";
        cin>>s;
        if(s.compare(p)==0)
          a++;
        else if(s.compare(q)==0)
          b++;
        else if(s.compare(r)==0)
          c++;
        else
          d++;
    }
    cout<<p<<" x "<<a<<"\n";
    cout<<q<<" x "<<b<<"\n";
    cout<<r<<" x "<<c<<"\n";
    cout<<s1<<" x "<<d<<"\n";  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:11: error: 'p' was not declared in this scope
   22 |     cout<<p<<" x "<<a<<"\n";
      |           ^
a.cc:23:11: error: 'q' was not declared in this scope
   23 |     cout<<q<<" x "<<b<<"\n";
      |           ^
a.cc:24:11: error: 'r' was not declared in this scope
   24 |     cout<<r<<" x "<<c<<"\n";
      |           ^
a.cc:25:11: error: 's1' was not declared in this scope; did you mean 'y1'?
   25 |     cout<<s1<<" x "<<d<<"\n";
      |           ^~
      |           y1
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int a=0,b=0,c=0,d=0;
    while(n--)
    {
        string s;
        string p="AC",q="WA",r="TLE",s="TLE";
        cin>>s;
        if(s.compare(p)==0)
          a++;
        else if(s.compare(s)==0)
          b++;
        else if(s.compare(r)==0)
          c++;
        else
          d++;
    }
    cout<<p<<" x "<<a<<"\n";
    cout<<q<<" x "<<b<<"\n";
    cout<<r<<" x "<<c<<"\n";
    cout<<s<<" c "<<d<<"\n";  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: redeclaration of 'std::string s'
   11 |         string p="AC",q="WA",r="TLE",s="TLE";
      |                                      ^
a.cc:10:16: note: 'std::string s' previously declared here
   10 |         string s;
      |                ^
a.cc:22:11: error: 'p' was not declared in this scope
   22 |     cout<<p<<" x "<<a<<"\n";
      |           ^
a.cc:23:11: error: 'q' was not declared in this scope
   23 |     cout<<q<<" x "<<b<<"\n";
      |           ^
a.cc:24:11: error: 'r' was not declared in this scope
   24 |     cout<<r<<" x "<<c<<"\n";
      |           ^
a.cc:25:11: error: 's' was not declared in this scope
   25 |     cout<<s<<" c "<<d<<"\n";
      |           ^
Language: C

#include <stdio.h>


int main(){
  int n;
  int ac=0;
  int tle=0;
  int wa=0;
  int re=0;
  scanf("%d\n", &n);
  char s[n];
  for(int i=0;i<n;i++){
    scanf("%s\n", s[i]);
    switch (s[i]) {
      case "AC": ac++;
      case "WA": wa++;
      case "TLE": tle++;
      case "RE": re++;
    }
  }
  printf("AC × %d\n", ac);
  printf("WA × %d\n", wa);
  printf("TLE × %d\n", tle);
  printf("RE × %d\n", re);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:7: error: pointers are not permitted as case values
   15 |       case "AC": ac++;
      |       ^~~~
main.c:16:7: error: pointers are not permitted as case values
   16 |       case "WA": wa++;
      |       ^~~~
main.c:17:7: error: pointers are not permitted as case values
   17 |       case "TLE": tle++;
      |       ^~~~
main.c:18:7: error: pointers are not permitted as case values
   18 |       case "RE": re++;
      |       ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <queue>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define all(x) (x).begin(), (x).end()

int main() {
    int n,a=0,b=0,c=0;
    cin>>n;
    vector<string>a(n);
    rep(i,n){
        cin>>a[i];
        if(a[i]=="AC")a++;
        else if(a[i]=="WA")b++;
        else if(a[i]=="TLE")c++;
    }
    cout<<"AC x "<<a<<endl;
    cout<<"WA x "<<b<<endl;
    cout<<"TLE x "<<c<<endl;
    cout<<"RE x "<<n-a-b-c<<endl;
    
    
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: conflicting declaration 'std::vector<std::__cxx11::basic_string<char> > a'
   14 |     vector<string>a(n);
      |                   ^
a.cc:12:11: note: previous declaration as 'int a'
   12 |     int n,a=0,b=0,c=0;
      |           ^
a.cc:16:15: error: invalid types 'int[int]' for array subscript
   16 |         cin>>a[i];
      |               ^
a.cc:17:13: error: invalid types 'int[int]' for array subscript
   17 |         if(a[i]=="AC")a++;
      |             ^
a.cc:18:18: error: invalid types 'int[int]' for array subscript
   18 |         else if(a[i]=="WA")b++;
      |                  ^
a.cc:19:18: error: invalid types 'int[int]' for array subscript
   19 |         else if(a[i]=="TLE")c++;
      |                  ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int AC,WA,TLE,RE=0;
        String str = null;
        for(int i=0;i<N;i++){
             str = scanner.next();
             if(str.equals("AC")){
                 AC++;
             }else if(str.equals("WA")){
                 WA++;
             }else if(str.equals("TLE")){
                 TLE++;
             }else{
                 RE++;
             }
        }
        System.out.println("AC x "+AC);
        System.out.println("WA x "+WA);
        System.out.println("TLE x "+TLE);
        System.out.println("RE x "+RE);
    }
}


Compiler output:
Main.java:13: error: variable AC might not have been initialized
                 AC++;
                 ^
Main.java:15: error: variable WA might not have been initialized
                 WA++;
                 ^
Main.java:17: error: variable TLE might not have been initialized
                 TLE++;
                 ^
Main.java:22: error: variable AC might not have been initialized
        System.out.println("AC x "+AC);
                                   ^
Main.java:23: error: variable WA might not have been initialized
        System.out.println("WA x "+WA);
                                   ^
Main.java:24: error: variable TLE might not have been initialized
        System.out.println("TLE x "+TLE);
                                    ^
6 errors
Language: C

#include<stdio.h>
#include<math.h>

int main(){
    int a, b, c, d, e, f, g;
    scanf("%d",&a);
    for (int i = 0; a - 1; i++)
    {
        scanf("%d",&b);
        if (b == "AC", c = c + 1);
        if else(b == "WA", d = d + 1);
        if else(b == "TLE", e = e + 1);
        else(f == f + 1);
    }
    printf("%d %d %d %d",&c,&d,&e,&f);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:15: warning: comparison between pointer and integer
   10 |         if (b == "AC", c = c + 1);
      |               ^~
main.c:11:12: error: expected '(' before 'else'
   11 |         if else(b == "WA", d = d + 1);
      |            ^~~~
      |            (
main.c:12:12: error: expected '(' before 'else'
   12 |         if else(b == "TLE", e = e + 1);
      |            ^~~~
      |            (
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int AC,WA,TLE,RE=0;
        String str = null;
        for(int i=0;i<N;i++){
             str = scanner.next();
             if(str.equals("AC")){
                 AC++;
             }else if(str.equals("WA")){
                 WA++;
             }else if(str.equals("TLE")){
                 TLE++;
             }else{
                 RE++;
             }
        }
        System.out.println("AC x "+AC);
        System.out.println("WE x "+WE);
        System.out.println("TLE x "+TLE);
        System.out.println("RE x "+RE);
    }
}


Compiler output:
Main.java:23: error: cannot find symbol
        System.out.println("WE x "+WE);
                                   ^
  symbol:   variable WE
  location: class Main
1 error
Language: C

#include<stdio.h>
#include<math.h>

int main(){
    int a, b, c, d, e, f, g;
    scanf("%d",&a);
    for (int i = 0; a - 1; i++)
    {
        scanf("%d",&b)
        if (b == "AC", c = c + 1)
        if else (b == "WA", d = d + 1)
        if else (b == "TLE", e = e + 1)
        else (f == f + 1)
    }
    printf("%d %d %d %d",&c,&d,&e,&f);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected ';' before 'if'
    9 |         scanf("%d",&b)
      |                       ^
      |                       ;
   10 |         if (b == "AC", c = c + 1)
      |         ~~
Language: C++

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

int main() {
  unordered_map<string, int> u_map;
  u_map["AC"] = 0;
  u_map["WA"] = 0;
  u_map["TLE"] = 0;
  u_map["RE"] = 0;
  
  int N;
  string s;
  
  cin >> N;
  
  for (int i = 0; i < N; ++i) {
    cin >> s;
    u_map[s]++;
  }
  
  print_times("AC", u_map);
  print_times("WA", u_map);
  print_times("TLE", u_map);
  print_times("RE", u_map);
  
  return 0;
}

void print_times(string s, unordered_map<string, int> &u_map) {
  cout << s << " x " << u_map[s] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'print_times' was not declared in this scope
   23 |   print_times("AC", u_map);
      |   ^~~~~~~~~~~
Language: C

#include <stdio.h>
int main(){
  int n, count, ac=0, wa=0, tle=0, re=0;
  char s[5];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%s", &string);
    if (strcmp(s, "AC")==0) ac+=1;
    if (strcmp(s, "WA")==0) wa+=1;
    if (strcmp(s, "TLE")==0) tle+=1;
    if (strcmp(s, "RE")==0) re+=1;
  }
  printf("AC x %d\n", ac);
  printf("WA x %d\n", wa);
  printf("TLE x %d\n", tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'string' undeclared (first use in this function); did you mean 'stdin'?
    7 |     scanf("%s", &string);
      |                  ^~~~~~
      |                  stdin
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |     if (strcmp(s, "AC")==0) ac+=1;
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
Language: C

#include <stdio.h>
int main(){
  int n, ac=0, wa=0, tle=0, re=0;
  char s[5];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%s", &string);
    if (strcmp(s, "AC")==0) ac+=1;
    if (strcmp(s, "WA")==0) wa+=1;
    if (strcmp(s, "TLE")==0) tle+=1;
    if (strcmp(s, "RE")==0) re+=1;
  }
  printf("AC x %d\n", ac);
  printf("WA x %d\n", wa);
  printf("TLE x %d\n", tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'string' undeclared (first use in this function); did you mean 'stdin'?
    7 |     scanf("%s", &string);
      |                  ^~~~~~
      |                  stdin
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |     if (strcmp(s, "AC")==0) ac+=1;
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'string'
    4 |   char string[];
      |        ^~~~~~
main.c:8:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |     if (strcmp(string, "AC")==0) ac++;
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 's'
    4 |   char s[];
      |        ^
main.c:8:9: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |     if (strcmp(string, "AC")==0) ac++;
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(){
main.c:8:16: error: 'string' undeclared (first use in this function); did you mean 'stdin'?
    8 |     if (strcmp(string, "AC")==0) ac++;
      |                ^~~~~~
      |                stdin
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:20:5: error: redefinition of 'main'
   20 | int main(){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main(){
      |     ^~~~
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | int main(){
      | ^~~
Language: C++

#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; char a[n][5]; for(int i=0;i<n;++i) cin>>a[i]; int s=0,b=0,c=0,d=0; for(int i=0 ;i<n;++i) { if(strcmp(a[i],"AC")==0) ++s; else if(strcmp(a[i],"WA")==0) ++b; else if(strcmp(a[i],"TLE")==0) ++c; else if(strcmp(a[i],"RE")==0) ++d; } cout<<"AC x "<<s<<endl; cout<<"WA x "<<b<<endl; cout<<"TLE x "<<c<<endl; cout<<"RE x "<<d<<endl; return 0; } 


Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; char a[n][5]; for(int i=0;i<n;++i) cin>>a[i]; int s=0,b=0,c=0,d=0; for(int i=0 ;i<n;++i) { if(strcmp(a[i],"AC")==0) ++s; else if(strcmp(a[i],"WA")==0) ++b; else if(strcmp(a[i],"TLE")==0) ++c; else if(strcmp(a[i],"RE")==0) ++d; } cout<<"AC x "<<s<<endl; cout<<"WA x "<<b<<endl; cout<<"TLE x "<<c<<endl; cout<<"RE x "<<d<<endl; return 0; }
      |                         ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <bits/stdc++.h>

#define fastio ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)

# define ll long long
# define ull unsigned ll

# define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<ll, ll>

#define mod 1000000007
using namespace std;
typedef pair<int, int> pi;

//////////////////////////////////////////////////////////////
//const ll INF = 0xFFFFFFFFFFFFFFFL;
//clock_t time_p = clock();
//
//void abhigyan10() {
//    time_p = clock() - time_p;
//    cerr << "Time Taken : " << (float) (time_p) / CLOCKS_PER_SEC << "\n";
//}
//
//ll seed;
//mt19937 rng(seed = chrono::steady_clock::now().time_since_epoch().count());
//
//inline ll rnd(ll l = 0, ll r = INF) {
//    return uniform_int_distribution<ll>(l, r)(rng);
//}
//
//#define clrbuf cin.ignore(numeric_limits<streamsize>::max(),'\n');
//#define preciset(x) cout<<setprecision(x)<<fixed;
//////////////////////////////////////////////////////////

ll pow(ll base, ll power) {
    ll result = 1;     // Initialize result

    base = base % mod; // Update base if it is more than or
    // equal to p

    if (base == 0)
        return 0; // In case base is divisible by p;

    while (power > 0) {
        // If power is odd, multiply base with result
        if (power & 1)
            result = (result * base) % mod;

        // power must be even now
        power = power >> 1; // power = power/2
        base = (base * base) % mod;
    }
    return result;
}

void forces() {
    int n, k;
    cin >> n >> k;

    map<ll, ll> myMap;
    for (int i = 0; i < n; ++i) {
        ll x;
        cin >> x;
        ++myMap[(x % k)];
    }

    for (auto x: myMap)
        cout << x.first << " " << x.second << '\n';


    cout << '\n';

}

void atCoder() {
    int n;
    cin >> n;
    map<string, ll> arr;

    arr["AC"] = 0;
    arr["WA"] = 0;
    arr["TLE"] = 0;
    arr["AC"] = 0;

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

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


}

int main() {
    fastio;

#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
//    freopen("output.txt", "w", stdout);
//    freopen("error.txt", "w", stderr);
#endif

    int test = 1;
//    cin >> test;

    while (test--) {
//        forces();
        atCoder();
    }

    return 0;
}



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

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

int main(){
    int n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    cin>>n;
    vector<char>v(n);
    for(int i=0;i<n;i++){
        cin>>v[i];

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(v[i]=="AC"){
a.cc:20:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         if(v[i]=="WA"){
a.cc:23:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         if(v[i]=="TLE"){
a.cc:26:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |         if(v[i]=="RE"){