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

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

int main() {
  int N;
  cin >> N;
  
  vector <int> result(4, 0);
  for (int i = 0; i < N; i++) {
    string S;
    cin >> S;
    if (S == "AC") {
      result[0]++;
    }
    if (S == "WA") {
      result[1]++;
    }
    if (S == "TLE") {
      result[2]++;
    }
    if (S == "RE") {
      result[3]++;
    }
    
  }

  cout << "AC x " << result[0] << endl;
  cout << "WA x " << result[1] << endl;
  cout << "TLE x " << result[2] << endl;
  cout << "RE x " << result[3] << endl;
}

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

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

#define ll long long int

int main()
{
  ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    ll n;
    cin >> n;
    map <string,int>m;
   while(n--)
   {
     string s;
     cin>>s;
     m[s]++;
   }
   cout<<"AC x "<<m[AC]<<endl;
    cout<<"WA x "<<m[WA]<<endl;
     cout<<"TLE x "<<m[TLE]<<endl;
      cout<<"RE x "<<m[RE]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: 'AC' was not declared in this scope
   22 |    cout<<"AC x "<<m[AC]<<endl;
      |                     ^~
a.cc:23:22: error: 'WA' was not declared in this scope
   23 |     cout<<"WA x "<<m[WA]<<endl;
      |                      ^~
a.cc:24:24: error: 'TLE' was not declared in this scope
   24 |      cout<<"TLE x "<<m[TLE]<<endl;
      |                        ^~~
a.cc:25:24: error: 'RE' was not declared in this scope
   25 |       cout<<"RE x "<<m[RE]<<endl;
      |                        ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
    ll n;
    cin>>n;
    map<string,int> mp;
    for(ll i=0;i<n;i++)
    {
        string x;
        cin>>x;
        mp[x]++;
    } 
        cout<<"AC"<<" x "<<mp["AC"]<<endl;
        cout<<"WA"<<" x "<<mp["WA"]<<endl;
        cout<<"TLE"<<" x "<<mp["TLE"]<<endl;
        cout<<"RE"<<" x "<<mp["RE"]<<endl;
        
        
    }
}

Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int n;
  cin >> n;
  int c0 = 0; int c1 = 0; int c2 = 0; int c3 = 0;
  for (int i = 0; i < n; i ++){
  	string input;
    cin >> input;
    switch(input){
        case "AC":
        	c0 ++;
        	break;
        case "WA":
        	c1 ++;
        	break;
        case "TLE":
        	c2 ++;
        	break;
        case "RE":
        	c3 ++;
        	break;
    }
  }
  cout << "AC x " + to_string(c0) << endl;
  cout << "WA x " + to_string(c1) << endl;
  cout << "TLE x " + to_string(c2) << endl;
  cout << "RE x " + to_string(c3) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: switch quantity not an integer
   11 |     switch(input){
      |            ^~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int n;
  cin >> n;
  int c0 = 0; int c1 = 0; int c2 = 0; int c3 = 0;
  for (int i = 0; i < n; i ++){
  	string input;
    cin >> input;
    switch(string){
        case "AC":
        	c0 ++;
        	break;
        case "WA":
        	c1 ++;
        	break;
        case "TLE":
        	c2 ++;
        	break;
        case "RE":
        	c3 ++;
        	break;
    }
  }
  cout << "AC x " + to_string(c0) << endl;
  cout << "WA x " + to_string(c1) << endl;
  cout << "TLE x " + to_string(c2) << endl;
  cout << "RE x " + to_string(c3) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected unqualified-id before ')' token
   11 |     switch(string){
      |                  ^
Language: Java

import java.util.Scanner;

public class Main1 {

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

		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int count1 = 0;
		int count2 = 0;
		int count3 = 0;
		int count4 = 0;
		
		for(int i = 0; i < N; i++) {
			 String C = scan.next();
			if(C.contentEquals("AC")) {
				count1++;
			}else if(C.contentEquals("WA")) {
				count2++;
			}else if(C.contentEquals("TLE")){
				count3++;
			}else {
				count4++;
		
			}
		}
		System.out.println("AC x "+count1);
		System.out.println("WA x "+count2);
		System.out.println("TLE x "+count3);
		System.out.println("RE x "+count4);
	}

}


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'AC' was not declared in this scope; did you mean 'A'?
    9 |     if(vec.at(i) == AC) {
      |                     ^~
      |                     A
a.cc:12:26: error: 'WA' was not declared in this scope; did you mean 'W'?
   12 |     else if(vec.at(i) == WA) {
      |                          ^~
      |                          W
a.cc:15:26: error: 'TLE' was not declared in this scope
   15 |     else if(vec.at(i) == TLE) {
      |                          ^~~
Language: C++

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

int main(){
  int N;
  cin>>N;
  int v=0;
  int w=0;
  int x=0;
  int y=0;
  for(int i; i<N; i++){
    string s;
    cin>>s;
    if (s="AC"){
      v++;
    }
    if (s="WA"){
      w++;
    }
    if (s="TLE"){
      x++;
    }
    if (s="RE"){
      y++;
    }
  }
   cout<<"AC"<<" x "<<v<<endl;
   cout<<"WA"<<" x "<<w<<endl;
   cout<<"TLE"<<" x "<<x<<endl;
   cout<<"RE"<<" x "<<y<<endl;
   return 0;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |     if (s="AC"){
      |         ~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:17:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if (s="WA"){
      |         ~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:20:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"TLE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |     if (s="TLE"){
      |         ~^~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:23:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   23 |     if (s="RE"){
      |         ~^~~~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include<iostream> 
#include<stdio.h>
#include<string>
#include<iomanip> 
#include<vector> 
#include<map> 
#include<set> 
#include<algorithm> 
#include<numeric> 
#include<limits> 
#include<bitset> 
#include<functional> 
#include<type_traits> 
#include<queue> 
#include<stack> 
#include<array> 
#include<random> 
#include<utility> 
#include<cstdlib> 
#include<ctime>
//#define _LIBCPP_DEBUG 0
//#define _GLIBCXX_DEBUG
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define all(a) (a).begin(),(a),end()
#define rep(i,n) for (int i = 0; i < (n); ++i)	
//setprecision(16)

void outi(int x) { cout << x << endl; }
void outl(ll x) { cout << x << endl; }
void outs(string x) { cout << x << endl; }
ll max(ll a, ll b) {
	ll max;
	if (a > b) max = a;
	else max = b;
	return max;
}
ll min(ll a, ll b) {
	ll min;
	if (a < b) min = a;
	else min = b;
	return min;
}
int gcd(int x, int y) {
	/*最大公約数 O(log MAX_X)*/
	if (y == 0) return x;
	return gcd(y, x % y);
}
//---------------------------------------------------------------

int main() {

	int n;
	cin >> n;
	string s;
	rep(i, n) {
		cin >> s[i];
	}

	int countAC = 0;
	int countWA = 0;
	int countTLE = 0;
	int countRE = 0;

	rep(i, n) {
		if (s[i] == "AC") {
			countAC++;
		}
		if (s[i] == "WA") {
			countWA++;
		}
		if (s[i] == "TLE") {
			countTLE++;
		}
		if (s[i] == "RE") {
			countRE++;
		}
	}
	cout << "AC x " << countAC <<endl;
	cout << "WA x " << countWA << endl;
	cout << "TLE x " << countTLE << endl;
	cout << "RE x " << countRE << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   67 |                 if (s[i] == "AC") {
a.cc:70:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   70 |                 if (s[i] == "WA") {
a.cc:73:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   73 |                 if (s[i] == "TLE") {
a.cc:76:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   76 |                 if (s[i] == "RE") {
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i<(N); ++i)
using namespace std;

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"}){
        cout<<s<<"x"<<cnt[s]<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:37: error: 'N' was not declared in this scope
    2 | #define rep(i,n) for (int i = 0; i<(N); ++i)
      |                                     ^
a.cc:9:5: note: in expansion of macro 'rep'
    9 |     rep(i,n){
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#define sz(v) ((int)(v).size())
#define all(v) (v).begin(), (v).end()
#define REP(i,a,b) for (int i = a; i <= b; i++)
#define F first
#define S second
#define PB push_back
#define MP make_pair
using namespace std;

typedef long long ll;
using pi = pair<int, int>;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected unqualified-id before '==' token
   24 |     else if(int == "RE") arr[3]++;
      |                 ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long 
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define vi vector <int>
#define vp vector <pair<int,int>>
#define f(x,y,z) for(x=y;x<z;x++)
#define pb push_back
#define mp make_pair
#define ld long double
#define fb(x,y,z) for(x=y;x>z;x--)
#define pqf priority_queue <int,vector <int>> 
#define pqb priority_queue <int,vector <int>,greater<int>> 
#define ps(x,y) fixed << setprecision(y) << x
#define PI 3.1415926535
#define mod 1000000007 
#define mods 998244353 
#define setbits(x) __builtin_popcountll(x)
#define all(x) (x).begin(), (x).end()
#define fill(a) memset(a,0,sizeof(a))


// AUTHOR ALOK KUMAR
int lcm(int a,int b)
{
    return (a*b)/(__gcd(a,b));
}
int power(int a,int b)
{
    int c=1;
    while(b)
    {
        if(b&1)
        c*=a;
        a*=a;
        b/=2;
    }
    return c;
}
void solve()
{
  int n;
  cin>>n;
  string s[n];
  f(i,0,n)
    cin>>s[i];
  int i,j,k1,k2,k;
  int count[4]={0};
  f(i,0,n)
  {
    if(s[i]=="AC")
      count[0]++;
    else if(s[i]=="WA")
      count[1]++;
    else if(s[i]=="TLE")
      count[2]++;
    else
      count[3]++:
    
  }
  cout<<"AC x "<<count[0]<<"\n"<<"WA x "<<count[1]<<"\n"<<"TLE x "<<count[2]<<"\n"<<"RE x "<<count[3]<<"\n";
    
}



int32_t main()
{
    IOS
    int t=1;
    //cin>>t;
    while(t--)
    solve();
    return 0;
}
































Compiler output:
a.cc: In function 'void solve()':
a.cc:45:5: error: 'i' was not declared in this scope
   45 |   f(i,0,n)
      |     ^
a.cc:7:22: note: in definition of macro 'f'
    7 | #define f(x,y,z) for(x=y;x<z;x++)
      |                      ^
a.cc:58:17: error: expected ';' before ':' token
   58 |       count[3]++:
      |                 ^
      |                 ;
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()	
	{
  		int n;
  		cin >> n;
  		int ac = 0;
  		int tle = 0;
  		int wa = 0;
  		int re = 0;
  		for(int i = 0; i < n; i++)
        {
          string s;
          cin >> s;
          if(s=="Ac") ac++;
          if((s=="WA") wa++;
          if(s=="RE") re++;
           if(s=="TLE") tle++;
     
        }
        cout<<"AC " << "x" << ac<<endl;
         cout<<"WA " << "x" << wa<<endl;
             cout<<"TLE " << "x" << tle<<endl;
             cout<<"RE " << "x" << re<<endl;
             
      return 0;
     }
 

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected ';' before 'wa'
   18 |           if((s=="WA") wa++;
      |                       ^~~
      |                       ;
a.cc:18: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]
   18 |           if((s=="WA") wa++;
      |              ~~^~~~~~~
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,
      |     ^~~~~~~~
a.cc:19:11: error: expected primary-expression before 'if'
   19 |           if(s=="RE") re++;
      |           ^~
a.cc:18:29: error: expected ')' before 'if'
   18 |           if((s=="WA") wa++;
      |             ~               ^
      |                             )
   19 |           if(s=="RE") re++;
      |           ~~
Language: Java

import java.util.*;
class Main{
  public static void main(String args[]){
    int n=sc.nextInt();
    int ac=0,tle=0,wa=0,re=0;
    for(int i=0;i<n;i++){
      String s=sc.next();
      if(s.equals("AC"))
        ac++;
      if(s.equals("WA"))
        wa++;
      if(s.equals("TLE"))
        tle++;
      if(s.equals("RE"))
        re++;
    }
    System.out.println("AC X "+ac);
    System.out.println("WA X "+wa);
    System.out.println("TLE X "+tle);
    System.out.println("RE X "+re);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    int n=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
      String s=sc.next();
               ^
  symbol:   variable sc
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin>>n;
    string s[n];
    int a[4]={0};
    for(i=0;i<n;i++)
    {
        if(s[i]=="AC")
        a[0]++;
        else if(s[i]=="WA")
        a[1]++;
        else if(s[i]=="TLE")
        a[2]++;
        else
        a[3]++;
    }
    cout<<"AC x "<<a[0]<<endl;
    cout<<"WA x "<<a[1]<<endl;
    cout<<"TLE x "<<a[2]<<endl;
    cout<<"RE x "<<a[3]<<endl;
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:12: error: cannot find symbol
    	String temp = nextLine();
    	              ^
  symbol:   method nextLine()
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: ';' expected
    String[] scoreName = new String[]{"AC", "WA", "TLE", "RE"}
                                                              ^
1 error
Language: C++

#include <iostream>
using namespace std;
int a,w,t,r;
int main () {
  int n;
  char s[100];
  while(n--) {
    gets(s);
    if (s[0]=='A') a++;
    if (s[0]=='W') w++;
    if (s[0]=='T') t++;
    if (s[0]=='R') 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:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int N;
  cin>>N;
  int c0=0,c1=0,c2=0,c3=0;
  char s[4];
  for(int i=1; i<=N; i++)
  {
    gets(s);
    if(s=="AC")
      c0++;
    else if(s=="WA")
      c1++;
    else if(s=="TLE")
      c2++;
    else
      c3++;
  }
  cout<<"AC"<<" x "<<c0;
  cout<<"AC"<<" x "<<c1;
  cout<<"AC"<<" x "<<c2;
  cout<<"AC"<<" x "<<c3;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
  cin>>n;
  map<string,int>m;
  m["AC"]=0;
  m["WA"]=0;
  m["TLE"]=0;
  m["RE"]=0;
  string s;
  while(n){
    cin>>s;
    m[s]++;
  n--;
 }
  
 cout<<"AC X "<<m[AC]<<endl;
 cout<<"WA X "<<m[WA]<<endl;
 cout<<"TLE X "<<m[TLE]<<endl;
 cout<<"RE X "<<m[RE]<<endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'AC' was not declared in this scope
   18 |  cout<<"AC X "<<m[AC]<<endl;
      |                   ^~
a.cc:19:19: error: 'WA' was not declared in this scope
   19 |  cout<<"WA X "<<m[WA]<<endl;
      |                   ^~
a.cc:20:20: error: 'TLE' was not declared in this scope
   20 |  cout<<"TLE X "<<m[TLE]<<endl;
      |                    ^~~
a.cc:21:19: error: 'RE' was not declared in this scope
   21 |  cout<<"RE X "<<m[RE]<<endl;
      |                   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
  cin>>n;
  map<string,int>m;
  m["AC"]=0;
  m["WA"]=0;
  m["TLE"]=0;
  m["RE"]=0;
  string s;
  while(n){
    cin>>s;
    m[s]++;
  n--;
 }
  
  for(auto &t : m){
  cout<<t->first<<" X "<<t->second<<endl;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   19 |   cout<<t->first<<" X "<<t->second<<endl;
      |          ^~
a.cc:19:27: error: base operand of '->' has non-pointer type 'std::pair<const std::__cxx11::basic_string<char>, int>'
   19 |   cout<<t->first<<" X "<<t->second<<endl;
      |                           ^~
Language: C

#include<iostream>
#include<unordered_map>
#include<iterator>
using namespace std;
int main()
{

    int n;
    cin>>n;
unordered_map<string,int> arr;
arr.insert(make_pair("AC",0));
arr.insert(make_pair("WA",0));
arr.insert(make_pair("TLE",0));
arr.insert(make_pair("RE",0));

    string a;
    for(int i=0;i<n;i++){
      cin>>a;
      auto it= arr.find(a);

        it->second++;


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

}


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

#include <bits/stdc++.h>; using namespace std; bool T=false; int main(){ long long N;cin>>N; vector<string> S(N); long long wa=0,ac=0,tle=0,re=0; for (int i = 0; i < N; i++) { cin>>S[i]; if(S[i]=="WA")wa++; if(S[i]=="AC")ac++; if(S[i]=="TLE")tle++; if(S[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:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>; using namespace std; bool T=false; int main(){ long long N;cin>>N; vector<string> S(N); long long wa=0,ac=0,tle=0,re=0; for (int i = 0; i < N; i++) { cin>>S[i]; if(S[i]=="WA")wa++; if(S[i]=="AC")ac++; if(S[i]=="TLE")tle++; if(S[i]=="RE")re++; } cout<<"AC x "<<ac<<endl; cout<<"WA x "<<wa<<endl; cout<<"TLE x "<<tle<<endl; cout<<"RE x "<<re<<endl; }
      |                         ^
/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> using namespace std; bool T=false; int main(){ long long N;cin>>N; vector<string> S(N); long long wa=0,ac=0,tle=0,re=0; for (int i = 0; i < N; i++) { cin>>S[i]; if(S[i]=="WA")wa++; if(S[i]=="AC")ac++; if(S[i]=="TLE")tle++; if(S[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:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std; bool T=false; int main(){ long long N;cin>>N; vector<string> S(N); long long wa=0,ac=0,tle=0,re=0; for (int i = 0; i < N; i++) { cin>>S[i]; if(S[i]=="WA")wa++; if(S[i]=="AC")ac++; if(S[i]=="TLE")tle++; if(S[i]=="RE")re++; } cout<<"AC x "<<ac<<endl; cout<<"WA x "<<wa<<endl; cout<<"TLE x "<<tle<<endl; cout<<"RE x "<<re<<endl; }
      |                          ^~~~~
/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<iostream>
using namespace std;
int main()
{
 int n;
  cin>>n;
  string s1="AC",s2="WA",s3="TLE",s4="RE";
  string s[n];
  int i,c1=0,c2=0,c3=0,c4=0;
  for(i=0;i<n;i++)
  {
  
      cin>>s[i];
      if(s[i]==s1)
        c1++;
      else if(s[i]==s2)
        c2++;
      else if(s[i]==s3)
        c3++;
      else if(s[i]==s4)
        c4++;       
  
  }
  cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:104: error: expected '}' at end of input
   25 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl;
      |                                                                                                        ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
 int n;
  cin>>n;
  string s1="AC",s2="WA",s3="TLE",s4="RE";
  string s[n];
  int i,c1=0,c2=0,c3=0,c4=0;
  for(i=0;i<n;i++)
  {
  
      cin>>s[i];
      if(s[i]==s1)
        c1++;
      else if(s[i]==s2)
        c2++;
      else if(s[i]==s3)
        c3++;
      else if(s[i]==s4)
        c4++;       
  
  }
  cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl

Compiler output:
a.cc: In function 'int main()':
a.cc:24:103: error: expected ';' at end of input
   24 |   cout<<s1<<" "<<'+'<<c1<<endl<<s2<<" "<<'+'<<c2<<endl<<s3<<" "<<'+'<<c3<<endl<<s4<<" "<<'+'<<c4<<endl
      |                                                                                                       ^
      |                                                                                                       ;
a.cc:24:103: error: expected '}' at end of input
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

   

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

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

int main(void) {
  int N;
  char** s;
  
  scanf("%d", &N);
  for (int i=0; i<N; i++) {
    scanf("%d", &s[i]);
  }
  
  int AC, WA, TLE, RE;
  AC=WA=TLE=RE=0;
  
  for (int i=0; i<N; i++) {
    switch(s[i]) {
      case "AC":
        AC+=1; break;
      case "WA":
        WA+=1; break;
      case "TLE":
        TLE+=1; break;
      case "RE":
        RE+=1; break;
    }
  }
  
  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:17:12: error: switch quantity not an integer
   17 |     switch(s[i]) {
      |            ^
main.c:18:7: error: pointers are not permitted as case values
   18 |       case "AC":
      |       ^~~~
main.c:20:7: error: pointers are not permitted as case values
   20 |       case "WA":
      |       ^~~~
main.c:22:7: error: pointers are not permitted as case values
   22 |       case "TLE":
      |       ^~~~
main.c:24:7: error: pointers are not permitted as case values
   24 |       case "RE":
      |       ^~~~
Language: C++

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

int main()
{
  int n,i;
  scanf("%d",&n);
 // vector<string>v;
  int ac=0,wa=0,tle=0,re=0;
  for(i=0;i<n;i++)
  {
    string temp;
    cin>>temp;
    if(temp=="AC")
    {
      ac++;
    }
    else if(temp=="WA")
    {
      wa++;
    }
    else if*=(temp=="TLE")
    {
      tle++;
    }
    else
    {
      re++;
    }
  }
  printf("AC * %d\n",ac);
  printf("WA * %d\n",wa);
  printf("TLE * %d\n",tle);
  printf("RE * %d\n",re);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: expected '(' before '*=' token
   22 |     else if*=(temp=="TLE")
      |            ^~
      |            (
a.cc:26:5: error: 'else' without a previous 'if'
   26 |     else
      |     ^~~~
Language: C++

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

void solve(){
	int n;
	string s;
	map<string, int> m;
	for(int i=0;i<n;i++){
		cin>>s;
		mp[s]++;
	}
	cout<<"AC x "<<mp["AC"]<<"\n";
	cout<<"WA x "<<mp["WA"]<<"\n";
	cout<<"TLE x "<<mp["TLE"]<<"\n";
	cout<<"RE x "<<mp["RE"]<<"\n";
}

int main(){
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:10:17: error: 'mp' was not declared in this scope; did you mean 'm'?
   10 |                 mp[s]++;
      |                 ^~
      |                 m
a.cc:12:24: error: 'mp' was not declared in this scope; did you mean 'm'?
   12 |         cout<<"AC x "<<mp["AC"]<<"\n";
      |                        ^~
      |                        m
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  string s;
  cin>>t;
  map<string,int>m;
  while(t--)
  {
    cin>>s;
    m[s]++;
  }
  cout<<m["AC"]<<endl;
  cout<<m["WA"]<<endl;
  cout<<m["TLE"]<<endl;
  cout<<<m["RE"]<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected primary-expression before '<' token
   17 |   cout<<<m["RE"]<<endl;
      |         ^
a.cc:17:17: error: invalid operands of types 'std::map<std::__cxx11::basic_string<char>, int>::mapped_type' {aka 'int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |   cout<<<m["RE"]<<endl;
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define all(x) x.begin(),x.end()

void solve()
{
 ll n,ac=0,wa=0,tle=0,re=0;
 cin>>n;
  for(int i=0;i<n;i++){
    string a;
    cin>>a;
    if(a=="AC"){ac++;}
    if(a=="WA"){wa++;}
    if(a=="TLE"){tle++;}
    if(a=="RE"){re++;}
  }
  cout<<"AC"<<" x "<<ac<<endl;
  cout<<"WA"<<" x "<<wa<<endl;
  cout<<"TLE"<<" x "<<tle<<endl;
  cout<<"RE"<<" x "<<re<<endl;
  return 0;
}

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

     solve();

    return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:22:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
   22 |   return 0;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  string s;
  cin>>t;
  int a[6]={0};
  while(t--)
  {
    cin>>s;
    if(s=="AC")
      a[1]++;
    if(s=="WA")
      a[2]++;
    if(s=="TLE")
      a[3]++;
    if(s=="RE")
      a[4]++;
  }
  for(int i=1;i<=4;i++)
    if(i==1)
      cout<<"AC"<<"*"<<a[i]<<endl;
  if(i==2)
    cout<<"WA"<<"*"<<a[i]<<endl;
  if(i==3)
    cout<<"TLE"<<"*"<<a[i]<<endl;
  if(i==4)
    cout<<"RE"<<"*"<<a[i]<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:6: error: 'i' was not declared in this scope
   24 |   if(i==2)
      |      ^
a.cc:26:6: error: 'i' was not declared in this scope
   26 |   if(i==3)
      |      ^
a.cc:28:6: error: 'i' was not declared in this scope
   28 |   if(i==4)
      |      ^
a.cc: At global scope:
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<stdio.h>
#include<string.h>
int main()
{ int N,i,C0=0,C1=0,C2=0,C3=0;
 char S[100000];
 scanf("%d",&N);
 for(i=0;i<N;i++)
 { scanf("%s",S)
   if(S[0]=='A')
     C0 = C0+1;
   else if(S[0]=='W')
     C1 = C1+1;
   else if(S[0]=='T')
     C2=C2+1;
   else 
     C3=C3+1;
 }
 printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d",C0,C1,C2,C3);
   return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before 'if'
    8 |  { scanf("%s",S)
      |                 ^
      |                 ;
    9 |    if(S[0]=='A')
      |    ~~            
main.c:11:4: error: 'else' without a previous 'if'
   11 |    else if(S[0]=='W')
      |    ^~~~
Language: C++

read n;
AC=0;
TLE=0;
WA=0;
RE=0;

while read line ;
do
    if [ $line = "AC" ] ; then
        AC=$(($AC+1));
    elif [ $line = "TLE" ] ; then
        TLE=$(($TLE+1));
    elif [ $line = "WA" ] ; then
        WA=$(($WA+1));
    else
        RE=$(($RE+1));
    fi;
done;
    echo AC x $AC;
    echo TLE x $TLE;
    echo WA x $WA;
    echo RE x $RE;


Compiler output:
a.cc:1:1: error: 'read' does not name a type
    1 | read n;
      | ^~~~
a.cc:2:1: error: 'AC' does not name a type
    2 | AC=0;
      | ^~
a.cc:3:1: error: 'TLE' does not name a type
    3 | TLE=0;
      | ^~~
a.cc:4:1: error: 'WA' does not name a type
    4 | WA=0;
      | ^~
a.cc:5:1: error: 'RE' does not name a type
    5 | RE=0;
      | ^~
a.cc:7:1: error: expected unqualified-id before 'while'
    7 | while read line ;
      | ^~~~~
a.cc:8:1: error: expected unqualified-id before 'do'
    8 | do
      | ^~
a.cc:9:27: error: 'then' does not name a type
    9 |     if [ $line = "AC" ] ; then
      |                           ^~~~
a.cc:11:5: error: 'elif' does not name a type
   11 |     elif [ $line = "TLE" ] ; then
      |     ^~~~
a.cc:11:30: error: 'then' does not name a type
   11 |     elif [ $line = "TLE" ] ; then
      |                              ^~~~
a.cc:13:5: error: 'elif' does not name a type
   13 |     elif [ $line = "WA" ] ; then
      |     ^~~~
a.cc:13:29: error: 'then' does not name a type
   13 |     elif [ $line = "WA" ] ; then
      |                             ^~~~
a.cc:15:5: error: expected unqualified-id before 'else'
   15 |     else
      |     ^~~~
a.cc:17:5: error: 'fi' does not name a type
   17 |     fi;
      |     ^~
a.cc:18:1: error: 'done' does not name a type
   18 | done;
      | ^~~~
a.cc:19:5: error: 'echo' does not name a type
   19 |     echo AC x $AC;
      |     ^~~~
a.cc:20:5: error: 'echo' does not name a type
   20 |     echo TLE x $TLE;
      |     ^~~~
a.cc:21:5: error: 'echo' does not name a type
   21 |     echo WA x $WA;
      |     ^~~~
a.cc:22:5: error: 'echo' does not name a type
   22 |     echo RE x $RE;
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
  int n,i;
  int c0=0,c1=0,c2=0,c3=0;
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    scanf("%s",s);
    if(s=="AC") c0++;
    else if(s=="WA") c1++;
    else if(s=="TLE") c2++;
    else if(s=="RE") c3++;
  }
  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:10:16: error: 's' undeclared (first use in this function)
   10 |     scanf("%s",s);
      |                ^
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
  int n,i;
  int c0=0,c1=0,c2=0,c3=0;
  char s[3];
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",s);
    if(s=="AC") c0++;
    else if(s=="WA") c1++;
    else if(s=="TLE") c2++;
    else(s=="RE") c3++;
  }
  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:14:18: error: expected ';' before 'c3'
   14 |     else(s=="RE") c3++;
      |                  ^~~
      |                  ;
Language: C

#include<stdio.h>
int main()
{
  int n,i;
  int c0=0,c1=0,c2=0,c3=0;
  char s[3];
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",s);
    if(s=="AC") c0++;
    else if(s=="WA") c1++;
    else if(s=="TLE") c2++;
    else(s=="RE") c3++;
  }
  printf("AC×5d WA×%d TLE×%d RE×%d ",c0,c1,c2,c3);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:18: error: expected ';' before 'c3'
   14 |     else(s=="RE") c3++;
      |                  ^~~
      |                  ;
Language: C

#include<stdio.h>
int main()
{
  int n,i;
  int c0=0,c1=0,c2=0,c3=0;
  char s[3];
  
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%s",s);
    if(s=="AC") c0++;
    else if(s=="WA") c1++;
    else if(s=="TLE") c2++;
    else(s=="RE") c3++;
  }
  printf("AC×5d\nWA×%d\nTLE×%d\nRE×%d\n",c0,c1,c2,c3);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:14:18: error: expected ';' before 'c3'
   14 |     else(s=="RE") c3++;
      |                  ^~~
      |                  ;
Language: Java

mport java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        int count = Integer.parseInt(line);
      
      int ac = 0;
      int wa = 0;
      int tle = 0;
      int re = 0;
      for(int i=0;i<count;i++){
        String judge = sc.nextLine();
        if(judge.equals("AC")){
            ++ac;
        } else if(judge.equals("WA")){
            ++wa;
        } else if(judge.equals("TLE")){
            ++tle;
        } else {
            ++re;
        }
      }
      
      System.out.println("AC x "+String.valueOf(ac));
      System.out.println("WA x "+String.valueOf(wa));
      System.out.println("TLE x "+String.valueOf(tle));
      System.out.println("RE x "+String.valueOf(re));
    }
}

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

#include <iostream>
#include <string>
using namespace std;
using   nu11p0::literals::operator""_crc32;
 
 
int main() {
    int n;
    cin >> n;
    int a=0, w=0, t=0, r=0;
  	for(int i=0; i<n; i++){
      string s;
      cin >> s;
    switch(nu11p0::crc32(s)){
      case "AC"_crc32:
        a++;
        break;
      case "WA"_crc32:
        w++;
        break;
      case "TLE"_crc32:
        t++;
        break;
      case "RE"_crc32:
        r++;
        break;
    }
    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:9: error: 'nu11p0' has not been declared
    4 | using   nu11p0::literals::operator""_crc32;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:14:12: error: 'nu11p0' has not been declared
   14 |     switch(nu11p0::crc32(s)){
      |            ^~~~~~
a.cc:15:12: error: unable to find string literal operator 'operator""_crc32' with 'const char [3]', 'long unsigned int' arguments
   15 |       case "AC"_crc32:
      |            ^~~~~~~~~~
a.cc:18:12: error: unable to find string literal operator 'operator""_crc32' with 'const char [3]', 'long unsigned int' arguments
   18 |       case "WA"_crc32:
      |            ^~~~~~~~~~
a.cc:21:12: error: unable to find string literal operator 'operator""_crc32' with 'const char [4]', 'long unsigned int' arguments
   21 |       case "TLE"_crc32:
      |            ^~~~~~~~~~~
a.cc:24:12: error: unable to find string literal operator 'operator""_crc32' with 'const char [3]', 'long unsigned int' arguments
   24 |       case "RE"_crc32:
      |            ^~~~~~~~~~
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
using   nu11p0::literals::operator""_crc32;

 
int main() {
    int n;
    cin >> n;
    int a=0, w=0, t=0, r=0;
  	for(int i=0; i<n; i++){
      string s;
      cin >> s;
    switch(nu11p0::crc32(s)){
      case 'AC'_crc32:
        a++;
        break;
      case 'WA'_crc32:
        w++;
        break;
      case 'TLE'_crc32:
        t++;
        break;
      case 'RE'_crc32:
        r++;
        break;
    }
    cout << "AC x "<< a << endl;
    cout << "WA x "<< w << endl;
	cout << "TLE x "<< t << endl;
 	cout << "RE x "<< r << endl;
}

Compiler output:
a.cc:15:12: warning: multi-character character constant [-Wmultichar]
   15 |       case 'AC'_crc32:
      |            ^~~~~~~~~~
a.cc:18:12: warning: multi-character character constant [-Wmultichar]
   18 |       case 'WA'_crc32:
      |            ^~~~~~~~~~
a.cc:21:12: warning: multi-character character constant [-Wmultichar]
   21 |       case 'TLE'_crc32:
      |            ^~~~~~~~~~~
a.cc:24:12: warning: multi-character character constant [-Wmultichar]
   24 |       case 'RE'_crc32:
      |            ^~~~~~~~~~
a.cc:4:9: error: 'nu11p0' has not been declared
    4 | using   nu11p0::literals::operator""_crc32;
      |         ^~~~~~
a.cc: In function 'int main()':
a.cc:14:12: error: 'nu11p0' has not been declared
   14 |     switch(nu11p0::crc32(s)){
      |            ^~~~~~
a.cc:15:12: error: unable to find character literal operator 'operator""_crc32' with 'int' argument
   15 |       case 'AC'_crc32:
      |            ^~~~~~~~~~
a.cc:18:12: error: unable to find character literal operator 'operator""_crc32' with 'int' argument
   18 |       case 'WA'_crc32:
      |            ^~~~~~~~~~
a.cc:21:12: error: unable to find character literal operator 'operator""_crc32' with 'int' argument
   21 |       case 'TLE'_crc32:
      |            ^~~~~~~~~~~
a.cc:24:12: error: unable to find character literal operator 'operator""_crc32' with 'int' argument
   24 |       case 'RE'_crc32:
      |            ^~~~~~~~~~
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int n;
    cin >> n;
    int a=0, w=0, t=0, r=0;
  	for(int i=0; i<n; i++){
      string s;
      cin >> s;
    switch(s){
      case 'AC':
        a++;
        break;
      case 'WA':
        w++;
        break;
      case 'TLE':
        t++;
        break;
      case 'RE':
        r++;
        break;
    }
    cout << "AC x "<< a << endl;
    cout << "WA x "<< w << endl;
	cout << "TLE x "<< t << endl;
 	cout << "RE x "<< r << endl;
}

Compiler output:
a.cc:13:12: warning: multi-character character constant [-Wmultichar]
   13 |       case 'AC':
      |            ^~~~
a.cc:16:12: warning: multi-character character constant [-Wmultichar]
   16 |       case 'WA':
      |            ^~~~
a.cc:19:12: warning: multi-character character constant [-Wmultichar]
   19 |       case 'TLE':
      |            ^~~~~
a.cc:22:12: warning: multi-character character constant [-Wmultichar]
   22 |       case 'RE':
      |            ^~~~
a.cc: In function 'int main()':
a.cc:12:12: error: switch quantity not an integer
   12 |     switch(s){
      |            ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main() {
    int　n;
    cin >> n;
    int a=0, w=0, t=0, r=0;
  	for(int i=0; i<n; i++){
      string s;
      cin >> s;
    switch(s){
      case 'AC':
        a++;
        break;
      case 'WA':
        w++;
        break;
      case 'TLE':
        t++;
        break;
      case 'RE':
        r++;
        break;
    }
    cout << "AC x "<< a << endl;
    cout << "WA x "<< w << endl;
	cout << "TLE x "<< t << endl;
 	cout << "RE x "<< r << endl;
}

Compiler output:
a.cc:6:5: error: extended character 　 is not valid in an identifier
    6 |     int　n;
      |     ^
a.cc:13:12: warning: multi-character character constant [-Wmultichar]
   13 |       case 'AC':
      |            ^~~~
a.cc:16:12: warning: multi-character character constant [-Wmultichar]
   16 |       case 'WA':
      |            ^~~~
a.cc:19:12: warning: multi-character character constant [-Wmultichar]
   19 |       case 'TLE':
      |            ^~~~~
a.cc:22:12: warning: multi-character character constant [-Wmultichar]
   22 |       case 'RE':
      |            ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'int\U00003000n' was not declared in this scope
    6 |     int　n;
      |     ^~~~~~
a.cc:7:12: error: 'n' was not declared in this scope
    7 |     cin >> n;
      |            ^
a.cc:12:12: error: switch quantity not an integer
   12 |     switch(s){
      |            ^
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n;
    cin >> n;
    int ac = 0,wa = 0;tle = 0,re = 0;
    for(int i = 0;i < n;i++){
          string s;
          cin >> s;
          switch(s){
                  case "AC":
                        ac++;
                        break;
                  case "WA":
                        wa++;
                        break;
                  case "TLE":
                       tle++;
                       break;
                  case "RE":
                        re++;
                        break;
                  default:
                  break;
          }
          
          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:6:23: error: 'tle' was not declared in this scope
    6 |     int ac = 0,wa = 0;tle = 0,re = 0;
      |                       ^~~
a.cc:6:31: error: 're' was not declared in this scope
    6 |     int ac = 0,wa = 0;tle = 0,re = 0;
      |                               ^~
a.cc:10:18: error: switch quantity not an integer
   10 |           switch(s){
      |                  ^
Language: C++

#include <iostream>
using namespace std;


int main(){
	int n;
  	int ac=0, wa=0, tle=0, re=0;
  	string temp;
  	cin >> n;
  	for (int i=0;i<n;i++){
      cin >> temp;
      switch (temp){
        case "AC":
          ac++;
          break;
        case "WA":
          wa++;
          break;
        case "TLE":
          tle++;
          break;
        case "RE":
          re++;
      }
    }
  cout << "AC x " << ac << endl;
  cout << "WA x " << wa << endl;
  cout << "TLE x " << tle << endl;
  cout << "RE x " << re << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: switch quantity not an integer
   12 |       switch (temp){
      |               ^~~~
Language: C++

#include <iostream>
using namespace std;


int main(){
	int n;
  	int ac=0, wa=0, tle=0, re=0;
  	string temp;
  	cin >> n;
  	for (int i=0;i<n;i++){
      cin >> temp;
      switch (temp){
        case "AC":
          ac++;
          break;
        case "WA":
          wa++;
          break;
        case "TLE":
          tle++;
          break;
        case "RE";
          re++;
      }
    }
  cout << "AC x " << ac << endl;
  cout << "WA x " << wa << endl;
  cout << "TLE x " << tle << endl;
  cout << "RE x " << re << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: switch quantity not an integer
   12 |       switch (temp){
      |               ^~~~
a.cc:22:18: error: expected ':' before ';' token
   22 |         case "RE";
      |                  ^
      |                  :
Language: C++

#include<iostream>
#include<math.h>
using namespace std;

int main() {
    int n;
	cin>>n;
    map<string,int> m;
    m["AC"]=0;
    m["WA"]=0;
    m["TLE"]=0;
    m["RE"]=0;
    while(n--) {
        string s;
        cin>>s;
        m[s]++;
    }
    cout<<"AC x "<<m["AC"]<<endl;
    cout<<"WA x "<<m["WA"]<<endl;
    cout<<"TLE x "<<m["TLE"]<<endl;
    cout<<"RE x "<<m["RE"]<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'map' was not declared in this scope
    8 |     map<string,int> m;
      |     ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include<math.h>
  +++ |+#include <map>
    3 | using namespace std;
a.cc:8:15: error: expected primary-expression before ',' token
    8 |     map<string,int> m;
      |               ^
a.cc:8:16: error: expected primary-expression before 'int'
    8 |     map<string,int> m;
      |                ^~~
a.cc:9:5: error: 'm' was not declared in this scope
    9 |     m["AC"]=0;
      |     ^