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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int a=0,b=0,c=0,d=0;
  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"){
      b+=1;}
    else if (vec.at(i)=="TLE"){
      c+=1;}
    else {d+=1;}
  }
  cout<<"AC"+"×"+a<<endl;
  cout<<"WA"+"×"+b<<endl;
  cout<<"TLE"+"×"+c<<endl;    
  cout<<"RE"+"×"+d<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   18 |   cout<<"AC"+"×"+a<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
a.cc:19:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   19 |   cout<<"WA"+"×"+b<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
a.cc:20:14: error: invalid operands of types 'const char [4]' and 'const char [3]' to binary 'operator+'
   20 |   cout<<"TLE"+"×"+c<<endl;
      |         ~~~~~^~~~
      |         |     |
      |         |     const char [3]
      |         const char [4]
a.cc:21:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   21 |   cout<<"RE"+"×"+d<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  int a=0,b=0,c=0,d=0;
  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"){
      b+=1;}
    else if (vec.at(i)=="TLE"){
      c+=1;}
    else {d+=1;}
  }
  cout<<"AC"+"×"+a<<endl;
  cout<<"WA"+"×"+b<<endl;
  cout<<"TLE"+"×"+c<<endl;    
  cout<<"RE"+"×"+d<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before 'if'
    9 |     cin>>vec.at(i)
      |                   ^
      |                   ;
   10 |       if(vec.at(i)=="AC"){
      |       ~~           
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else if (vec.at(i)=="WA"){
      |     ^~~~
a.cc:18:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   18 |   cout<<"AC"+"×"+a<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
a.cc:19:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   19 |   cout<<"WA"+"×"+b<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
a.cc:20:14: error: invalid operands of types 'const char [4]' and 'const char [3]' to binary 'operator+'
   20 |   cout<<"TLE"+"×"+c<<endl;
      |         ~~~~~^~~~
      |         |     |
      |         |     const char [3]
      |         const char [4]
a.cc:21:13: error: invalid operands of types 'const char [3]' and 'const char [3]' to binary 'operator+'
   21 |   cout<<"RE"+"×"+d<<endl;
      |         ~~~~^~~~
      |         |    |
      |         |    const char [3]
      |         const char [3]
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,-1,sizeof(x))
const int INF = 1e9 + 1;
const ll MOD = 1e9 + 7;
const double PI = 3.141592653589793;
const int MAX_N = 2e5;

int main(){
  int n;
  cin >> n;
  int a = 0 , w= 0 , t=0, r=0;
  rep(i, n){
    stirng s;
    cin >> s;
    if(s == "AC") a++;
    if(s == "WA") w++;
    if(s == "TLE") t++;
    if(s == "RE") r++;
  }
  cout <<" AC x "<< a <<endl;
  cout <<"WA x "<< w << endl;
  cout << "TLE x "<<t<<endl;
  cout << "RE x " << r << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  cin >> N;
  for(int i = 0; i < N; i++){
    string S;
    cin >> S[i];
  }
  for(int i = 0; i < N; i++){
    if(S[i] == "AC"){
      A++;
    }else if(S[i] == "WA"){
      W++;
    }else if(S[i] == "TLE"){
      T++;
    }else if(S[i] == "RE"){
      R++;
    }
  }
  cout << "AC × " << A << endl;
  cout << "WA × " << W << endl;
  cout << "TLE × " << T << endl;
  cout << "RE × " << R << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'S' was not declared in this scope
   16 |     if(S[i] == "AC"){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  cin >> N;
  for(int i = 0; i < N; i++){
    string S[i];
    cin >> S[i];
  }
  for(int i = 0; i < N; i++){
    if(S[i] == "AC"){
      A++;
    }else if(S[i] == "WA"){
      W++;
    }else if(S[i] == "TLE"){
      T++;
    }else if(S[i] == "RE"){
      R++;
    }
  }
  cout << "AC × " << A << endl;
  cout << "WA × " << W << endl;
  cout << "TLE × " << T << endl;
  cout << "RE × " << R << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'S' was not declared in this scope
   16 |     if(S[i] == "AC"){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  cin >> N;
  for(int i = 0; i < N; i++){
    string S[];
    cin >> S[i];
  }
  for(int i = 0; i < N; i++){
    if(S[i] == "AC"){
      A++;
    }else if(S[i] == "WA"){
      W++;
    }else if(S[i] == "TLE"){
      T++;
    }else if(S[i] == "RE"){
      R++;
    }
  }
  cout << "AC × " << A << endl;
  cout << "WA × " << W << endl;
  cout << "TLE × " << T << endl;
  cout << "RE × " << R << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: array size missing in 'S'
   12 |     string S[];
      |            ^
a.cc:16:8: error: 'S' was not declared in this scope
   16 |     if(S[i] == "AC"){
      |        ^
Language: C++

/**
 *    author: gxfireball       
**/
#include <bits/stdc++.h>
#define ll long long
#define endl '\n'
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); 
using namespace std;

void solve(){
   int n;
   cin>>n;
   string str;
   int c0=0,c1=0,c2=0,c3=0;
   while(n--){
       cin>>str;
       if(str == "AC"){
           c0++;
       }
       if(str=="WA"){
           c1++;
       }
       if(str=="TLE"){
           c2++;
       }
       if(str=="RE"){
           c3++;
       }
   }

   cout<<"AC x "<<c0<<endl;
   cout<<"WA x "<<c1<<endl;
   cout<<"TLE x "<<c2<<endl;
   cout<<"RE x "<<c3<<endl;

}

int main(){
    fastio;
    int t;
    t = 1;
    //cin>>t;
    while(t--){
    	solve();

Compiler output:
a.cc: In function 'int main()':
a.cc:44:17: error: expected '}' at end of input
   44 |         solve();
      |                 ^
a.cc:43:15: note: to match this '{'
   43 |     while(t--){
      |               ^
a.cc:44:17: error: expected '}' at end of input
   44 |         solve();
      |                 ^
a.cc:38:11: note: to match this '{'
   38 | int main(){
      |           ^
Language: C++

#pragma GCC optimize "trapv"
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define vi vector<int>
#define vll vector<ll>
#define pb push_back
#define ld long double
#define mp make_pair
#define pii pair<int,int>
#define mod 1000000007
#define rep(i,n) for(int i=0;i<n;i++)
#define all(v) v.begin(),v.end()
#define input(arr,n) for(ll i1=0;i1<n;i1++ )cin>>arr[i1]
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
using namespace __gnu_pbds; 
#define ordered_set tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>//s.order_of_key(val) *s.find_by_order(ind)
int main()
{
    fio;
    ll n;
    cin>>n;
    string s[n];
    rep(i,n)
    {
        cin>>s[i];
    }
    unordered_map<string,ll> m;
    rep(i,n)
    {
        m[s[i]]++;
    }
    ll AC,WA,TLE,RE;
    for(auto x:m)
    {
        if(x.first=="AC")
        AC=x.second;
        else if(x.first=="WA")
        WA=x.second;
        else if(x.first=="TLE")

Compiler output:
a.cc: In function 'int main()':
a.cc:45:32: error: expected statement at end of input
   45 |         else if(x.first=="TLE")
      |                                ^
a.cc:45:32: error: expected '}' at end of input
a.cc:40:5: note: to match this '{'
   40 |     {
      |     ^
a.cc:45:32: error: expected '}' at end of input
   45 |         else if(x.first=="TLE")
      |                                ^
a.cc:24:1: note: to match this '{'
   24 | {
      | ^
Language: C++

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

  int N;

  int ac_counter = 0;
  int wa_counter = 0;
  int tle_counter = 0;
  int re_counter = 0;

  cin >> N;

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

  for (int i = 0; i < N; i++) { 
    if (vec.at(i) == "AC") {
      ac_counter =+ 1;
    }

    if (vec.at(i) == "WA") {
      wa_counter =+ 1;
    }

    if (vec.at(i) == "TLE") {
      tle_counter =+ 1;
    }

    if (vec.at(i) == "RE") {
      re_counter =+ 1;
    }
  }

  cout << "AC x " + ac_counter << endl;
  cout << "WA x " + wa_counter << endl;
  cout << "TLE x " + tle_counter << endl;
  cout << "RE x " + re_counter << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if (vec.at(i) == "AC") {
      |         ~~~~~~~~~~^~~~~~~
a.cc:25:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     if (vec.at(i) == "WA") {
      |         ~~~~~~~~~~^~~~~~~
a.cc:29:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |     if (vec.at(i) == "TLE") {
      |         ~~~~~~~~~~^~~~~~~~
a.cc:33:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   33 |     if (vec.at(i) == "RE") {
      |         ~~~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  vector<string> S(N);
  cin >> N;
  int ac = 0;
  int wa = 0;
  int tle = 0;
  int re = 0;
  for(int i = 0; i < N; i++) cin >> S[i];
  for(int i = 0; i < N; i++) {
    if(S[i] == "AC") {
      ac++;
    } else if(S[i] == "WA") {
      wa++;
    } else if(S[i] == "TLE") {
      tle++;
    } else 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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<string> S(N);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:16: error: expected primary-expression before '>' token
    6 |   vector<string> S(N);
      |                ^
a.cc:6:18: error: 'S' was not declared in this scope
    6 |   vector<string> S(N);
      |                  ^
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 c;
    cin>>c;
    if(c=="AC"){
      a++;}
    else if(c=="WA"){
    b++;
    }
    else if(c=="TLE"){
    c++;
    }
    else if(c=="RE"){
    d++;
    }
  }
  cout<<"AC"<<" "<<'x'<<" "<<a<<endl;
  cout<<"WA"<<" "<<'x'<<" "<<b<<endl;
  cout<<"TLE"<<" "<<'x'<<" "<<c<<endl;
  cout<<"RE"<<" "<<'x'<<" "<<d<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:6: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   16 |     c++;
      |     ~^~
Language: Java

import java.util.Scanner;

public class test {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int[] result = {0,0,0,0};
        int n = sc.nextInt();
        for (int i=0;i<n;i++){
            String s = sc.next();
            if(s.equals("AC")) result[0]++;
            else if (s.equals("WA")) result[1]++;
            else if (s.equals("TLE")) result[2]++;
            else result[3]++;
        }
        System.out.println("AC x "+result[0]);
        System.out.println("WC x "+result[1]);
        System.out.println("TLE x "+result[2]);
        System.out.println("RE x "+result[3]);
        
    }
}


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

#include <iostream>

using namespace std;

int main(){
	int n;
  	cin>>n;
  	int wac=0,rec=0,acc=0,tlec=0;
  	vector<string> verdict(n);
  	for(int i=0;i<n;i++){
    	cin>>verdict[i];
      	if(verdict[i] == "AC") acc++;
      	if(verdict[i] == "WA") wac++;
      	if(verdict[i] == "RE") rec++;
      	if(verdict[i] == "TLE") tlec++;
      
    }
  	cout<<"AC"<<" x "<<acc<<endl;
  	cout<<"WA"<<" x "<<wac<<endl;
  	cout<<"TLE"<<" x "<<tlec<<endl;
   	cout<<"RE"<<" x "<<rec<<endl;
  
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vector' was not declared in this scope
    9 |         vector<string> verdict(n);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:9:22: error: expected primary-expression before '>' token
    9 |         vector<string> verdict(n);
      |                      ^
a.cc:9:24: error: 'verdict' was not declared in this scope
    9 |         vector<string> verdict(n);
      |                        ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> count(4,0);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> count(4,0);
      |          ^~~
a.cc:9:20: error: expected ';' before ')' token
    9 |   for(int i=0<n;i++){
      |                    ^
      |                    ;
a.cc:12:7: error: 'count' was not declared in this scope
   12 |       count[0]++;
      |       ^~~~~
a.cc:14:7: error: 'count' was not declared in this scope
   14 |       count[1]++;
      |       ^~~~~
a.cc:16:7: error: 'count' was not declared in this scope
   16 |       count[2]++;
      |       ^~~~~
a.cc:18:7: error: 'count' was not declared in this scope
   18 |       count[3]++;
      |       ^~~~~
a.cc:20:18: error: 'count' was not declared in this scope
   20 |   cout<<"AC x "<<count[0]<<endl;
      |                  ^~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int N;
  cin >> N;
  
  int ans[N];
  for(int i = 0; i < N; i++) cin >> ans[i];
  
  int count_ac, count_wa, count_tle, count_re;
  count_ac=0;
  count_wa=0;
  count_tle=0;
  count_re=0;
  
  for(int i = 0; i < N; i++){
    if(ans[i] == "AC"){
      count_ac++;
    }
    if(ans[i] == "WA"){
      count_wa++;
    }
    if(ans[i] == "TLE"){
      count_tle++;
    }
    if(ans[i] == "RE"){
      count_re++;
    }
  }
  
  cout << "AC" << "x" << count_ac << endl;
  cout << "WA" << "x" << count_wa << endl;
  cout << "TLE" << "x" << count_tle << endl;
  cout << "RE" << "x" << count_re << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     if(ans[i] == "AC"){
      |        ~~~~~~~^~~~~~~
a.cc:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(ans[i] == "WA"){
      |        ~~~~~~~^~~~~~~
a.cc:24:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     if(ans[i] == "TLE"){
      |        ~~~~~~~^~~~~~~~
a.cc:27:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |     if(ans[i] == "RE"){
      |        ~~~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int N;
  cin >> N;
  
  int ans[N];
  for(int i = 0; i < N; i++) cin >> ans[i];
  
  int count_ac, count_wa, count_tle, count_re;
  count_ac=0;
  count_wa=0;
  count_tle=0;
  count_re=0;
  
  for(int i = 0; i < N; i++){
    if(ans[i] == "AC"){
      count_ac++;
    }
    if(ans[i] == "WA"){
      count_wa++;
    }
    if(ans[i] == "TLE"){
      count_tle++;
    }
    if(ans[i] == "RE"){
      count_re++;
    }
  }
  
  cout << "AC" << "x"　<< count_ac << endl;
  cout << "WA" << "x"　<< count_wa << endl;
  cout << "TLE" << "x"　<< count_tle << endl;
  cout << "RE" << "x"　<< count_re << endl;
  return 0;
}

Compiler output:
a.cc:32:19: error: extended character 　 is not valid in an identifier
   32 |   cout << "AC" << "x"　<< count_ac << endl;
      |                   ^
a.cc:33:19: error: extended character 　 is not valid in an identifier
   33 |   cout << "WA" << "x"　<< count_wa << endl;
      |                   ^
a.cc:34:20: error: extended character 　 is not valid in an identifier
   34 |   cout << "TLE" << "x"　<< count_tle << endl;
      |                    ^
a.cc:35:19: error: extended character 　 is not valid in an identifier
   35 |   cout << "RE" << "x"　<< count_re << endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     if(ans[i] == "AC"){
      |        ~~~~~~~^~~~~~~
a.cc:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(ans[i] == "WA"){
      |        ~~~~~~~^~~~~~~
a.cc:24:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     if(ans[i] == "TLE"){
      |        ~~~~~~~^~~~~~~~
a.cc:27:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |     if(ans[i] == "RE"){
      |        ~~~~~~~^~~~~~~
a.cc:32:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   32 |   cout << "AC" << "x"　<< count_ac << endl;
      |                   ^~~~~
a.cc:33:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   33 |   cout << "WA" << "x"　<< count_wa << endl;
      |                   ^~~~~
a.cc:34:20: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   34 |   cout << "TLE" << "x"　<< count_tle << endl;
      |                    ^~~~~
a.cc:35:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [2]', 'long unsigned int' arguments
   35 |   cout << "RE" << "x"　<< count_re << endl;
      |                   ^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  
  int ans[N];
  for(int i = 0; i < N; i++) cin >> ans[i];
  
  int count_ac, count_wa, count_tle, count_re;
  count_ac=0;
  count_wa=0;
  count_tle=0;
  count_re=0;
  
  for(int i = 0; i < N; i++){
    if(ans[i] == "AC"){
      count_ac++;
    }
    if(ans[i] == "WA"){
      count_wa++;
    }
    if(ans[i] == "TLE"){
      count_tle++;
    }
    if(ans[i] == "RE"){
      count_re++;
    }
  }
  
  cout << "AC" << " x "　<< count_ac << endl;
  cout << "WA" << " x "　<< count_wa << endl;
  cout << "TLE" << " x "　<< count_tle << endl;
  cout << "RE" << " x "　<< count_re << endl;
  return 0;
}

Compiler output:
a.cc:32:19: error: extended character 　 is not valid in an identifier
   32 |   cout << "AC" << " x "　<< count_ac << endl;
      |                   ^
a.cc:33:19: error: extended character 　 is not valid in an identifier
   33 |   cout << "WA" << " x "　<< count_wa << endl;
      |                   ^
a.cc:34:20: error: extended character 　 is not valid in an identifier
   34 |   cout << "TLE" << " x "　<< count_tle << endl;
      |                    ^
a.cc:35:19: error: extended character 　 is not valid in an identifier
   35 |   cout << "RE" << " x "　<< count_re << endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     if(ans[i] == "AC"){
      |        ~~~~~~~^~~~~~~
a.cc:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |     if(ans[i] == "WA"){
      |        ~~~~~~~^~~~~~~
a.cc:24:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     if(ans[i] == "TLE"){
      |        ~~~~~~~^~~~~~~~
a.cc:27:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |     if(ans[i] == "RE"){
      |        ~~~~~~~^~~~~~~
a.cc:32:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   32 |   cout << "AC" << " x "　<< count_ac << endl;
      |                   ^~~~~~~
a.cc:33:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   33 |   cout << "WA" << " x "　<< count_wa << endl;
      |                   ^~~~~~~
a.cc:34:20: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   34 |   cout << "TLE" << " x "　<< count_tle << endl;
      |                    ^~~~~~~
a.cc:35:19: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   35 |   cout << "RE" << " x "　<< count_re << endl;
      |                   ^~~~~~~
Language: C++

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

int main(){
  int n;
  cin>>n;
  map<string,int> m;
  m.insert(pair<string,int>("AC",0));
  m.insert(pair<string,int>("WA",0));
  m.insert(pair<string,int>("TLE",0));
  m.insert(pair<string,int>("RE",0));
  while(n--){
    string s;
    cin>>s;
    m[s]++;
  }
  for(map<string,int>::iterator it=m.begin();i!=m.end();i++){
    cout<<i->first<<" x "<<i->second<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:46: error: 'i' was not declared in this scope; did you mean 'it'?
   17 |   for(map<string,int>::iterator it=m.begin();i!=m.end();i++){
      |                                              ^
      |                                              it
Language: C++

#include <iostream>
#include <string>
 
main()
{
  int n = 0;
  std::cin >> n;
  
  string[] as = new string[4]{"AC","WA","TLE","RE"};
  int[] ac = new int[4]{0,0,0,0};
  string s;
  for(auto i = 0; i< n; ++i)
  {
    std::cin >> s;
    
    for(auto j = 0; j < 4; ++j)
    {
      if(s == as[j])
      {
        ++ac[j];
        break;
      }
    }
  }
  
  for(auto j = 0; j < 4; ++j)
  {
    std::cout << as[j] << " x " << ac[j] << std::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:9:3: error: 'string' was not declared in this scope
    9 |   string[] as = new string[4]{"AC","WA","TLE","RE"};
      |   ^~~~~~
a.cc:9:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:10: error: expected primary-expression before ']' token
    9 |   string[] as = new string[4]{"AC","WA","TLE","RE"};
      |          ^
a.cc:10:6: error: structured binding declaration cannot have type 'int'
   10 |   int[] ac = new int[4]{0,0,0,0};
      |      ^~
a.cc:10:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:6: error: empty structured binding declaration
a.cc:10:9: error: expected initializer before 'ac'
   10 |   int[] ac = new int[4]{0,0,0,0};
      |         ^~
a.cc:11:9: error: expected ';' before 's'
   11 |   string s;
      |         ^~
      |         ;
a.cc:14:17: error: 's' was not declared in this scope
   14 |     std::cin >> s;
      |                 ^
a.cc:18:15: error: 'as' was not declared in this scope; did you mean 'abs'?
   18 |       if(s == as[j])
      |               ^~
      |               abs
a.cc:20:11: error: 'ac' was not declared in this scope
   20 |         ++ac[j];
      |           ^~
a.cc:28:18: error: 'as' was not declared in this scope; did you mean 'abs'?
   28 |     std::cout << as[j] << " x " << ac[j] << std::endl;
      |                  ^~
      |                  abs
a.cc:28:36: error: 'ac' was not declared in this scope
   28 |     std::cout << as[j] << " x " << ac[j] << std::endl;
      |                                    ^~
Language: C++

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

int main(){
  int n;
  cin>>n;
  map<string,int> m;
  m.insert(pair<string,int>("AC",0));
  m.insert(pair<string,int>("WA",0));
  m.insert(pair<string,int>("TLE",0));
  m.insert(pair<string,int>("RE",0));
  while(n--){
    string s;
    cin>>s;
    m[s]++;
  }
  for(map<string,int>::iterator it=m.begin();i!m.end();i++){
    cout<<i->first<<" x "<<i->second<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:46: error: 'i' was not declared in this scope; did you mean 'it'?
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                              ^
      |                                              it
a.cc:17:47: error: expected ';' before '!' token
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                               ^
      |                                               ;
a.cc:17:47: error: no match for 'operator!' (operand type is 'std::map<std::__cxx11::basic_string<char>, int>::iterator' {aka 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> > >::iterator'})
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                               ^~~~~~~~
a.cc:17:47: note: candidate: 'operator!(bool)' (built-in)
a.cc:17:47: note:   no known conversion for argument 1 from 'std::map<std::__cxx11::basic_string<char>, int>::iterator' {aka 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> > >::iterator'} to 'bool'
a.cc:17:55: error: expected ')' before ';' token
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |      ~                                                ^
      |                                                       )
a.cc:17:56: error: 'i' was not declared in this scope
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                                        ^
Language: C++

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

int main(){
  int n;
  cin>>n;
  map<string,int> m;
  m.insert(pair<string,int>("AC",0));
  m.insert(pair<string,int>("WA",0));
  m.insert(pair<string,int>("TLE",0));
  m.insert(pair<string,int>("RE",0));
  while(n--){
    string s;
    cin>>s;
    map[s]++;
  }
  for(map<string,int>::iterator it=m.begin();i!m.end();i++){
    cout<<i->first<<" x "<<i->second<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: conflicting declaration 'auto s'
   15 |     map[s]++;
      |         ^
a.cc:13:12: note: previous declaration as 'std::string s'
   13 |     string s;
      |            ^
a.cc:15:11: error: expected initializer before '++' token
   15 |     map[s]++;
      |           ^~
a.cc:17:46: error: 'i' was not declared in this scope; did you mean 'it'?
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                              ^
      |                                              it
a.cc:17:47: error: expected ';' before '!' token
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                               ^
      |                                               ;
a.cc:17:47: error: no match for 'operator!' (operand type is 'std::map<std::__cxx11::basic_string<char>, int>::iterator' {aka 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> > >::iterator'})
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                               ^~~~~~~~
a.cc:17:47: note: candidate: 'operator!(bool)' (built-in)
a.cc:17:47: note:   no known conversion for argument 1 from 'std::map<std::__cxx11::basic_string<char>, int>::iterator' {aka 'std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, int> >, std::less<std::__cxx11::basic_string<char> >, std::allocator<std::pair<const std::__cxx11::basic_string<char>, int> > >::iterator'} to 'bool'
a.cc:17:55: error: expected ')' before ';' token
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |      ~                                                ^
      |                                                       )
a.cc:17:56: error: 'i' was not declared in this scope
   17 |   for(map<string,int>::iterator it=m.begin();i!m.end();i++){
      |                                                        ^
Language: C++

#include <iostream>

main()
{
  int n = 0;
  std::cin >> n;
  
  string as[] = new string[4]{"AC","WA","TLE","RE"};
  string ac[] = new int[4]{0,0,0,0};
  string s;
  for(auto i = 0; i< n; ++i)
  {
    std::cin >> s;
    
    for(auto j = 0; j < 4; ++j)
    {
      if(s == as[j])
      {
        ++ac[j];
        break;
      }
    }
  }
  
  for(auto j = 0; j < 4; ++j)
  {
    std::cout << as[j] << " x " << ac[j] << std::endl;
  }
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string as[] = new string[4]{"AC","WA","TLE","RE"};
      |   ^~~~~~
a.cc:8:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:9: error: expected ';' before 'ac'
    9 |   string ac[] = new int[4]{0,0,0,0};
      |         ^~~
      |         ;
a.cc:10:9: error: expected ';' before 's'
   10 |   string s;
      |         ^~
      |         ;
a.cc:13:17: error: 's' was not declared in this scope
   13 |     std::cin >> s;
      |                 ^
a.cc:17:15: error: 'as' was not declared in this scope; did you mean 'abs'?
   17 |       if(s == as[j])
      |               ^~
      |               abs
a.cc:19:11: error: 'ac' was not declared in this scope
   19 |         ++ac[j];
      |           ^~
a.cc:27:18: error: 'as' was not declared in this scope; did you mean 'abs'?
   27 |     std::cout << as[j] << " x " << ac[j] << std::endl;
      |                  ^~
      |                  abs
a.cc:27:36: error: 'ac' was not declared in this scope
   27 |     std::cout << as[j] << " x " << ac[j] << std::endl;
      |                                    ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:12: error: implicit declaration of function 'strcm' [-Wimplicit-function-declaration]
    9 |         if(strcm(str, "AC") == 0)
      |            ^~~~~
Language: Java

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int count = 0;
        int count1 = 0;
        int count2 = 0;
        int count3 = 0;
        while(n-->0){
            String s = sc.nextLine();
            if(s.contains("AC")){
                count++;
            }
            else if(s.contains("WA")){
                count1++;
            }
            else if(s.contains("TLE")){
                count2++;
            }
            else if(s.contains("RE")){
                count3 = count3 + 1;
            }

        }
        System.out.println("AC" + " x " + count);
        System.out.println("WA" + " x " + count1);
        System.out.println("TLE" + " x " + count2);
        System.out.println("RE" + " x " + count3);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#incluede <string>

using namespace std;

int main() {
	int n, a, w, t, r;
    n = a = w = t = r = 0;
  	string str;
    cin >> n;
    while (n-- > 0) {
    	cin >> str;
      	if (str == "AC") {
        	a++;
        } else if (str == "WA") {
        	w++;
        } else if (str == "TLE") {
        	t++;
        } else if (str == "RE") {
        	r++;
        }
    }
  	cout << "AC x " << a << endl;
  cout << "WA x " << w << endl;
  cout << "TLE x " << t << endl;
  cout << "RE x " << r << endl;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incluede; did you mean #include?
    2 | #incluede <string>
      |  ^~~~~~~~
      |  include
Language: C++

#include <iostream>
#include <string>


using namespace std;
void main() {
  string str;
  int n, ac = 0, wa = 0, tle = 0, re = 0;
  cin >> n; 
  while (--n != 0) {
  	cin >> str;
    switch (str):
    case "AC":
      ac++;
    case "WA":
      wa++;
    case "TLE":
      tle++;
    case "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:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:13: error: switch quantity not an integer
   12 |     switch (str):
      |             ^~~
a.cc:12:17: error: expected primary-expression before ':' token
   12 |     switch (str):
      |                 ^
a.cc:15:5: error: case label '"WA"' not within a switch statement
   15 |     case "WA":
      |     ^~~~
a.cc:17:5: error: case label '"TLE"' not within a switch statement
   17 |     case "TLE":
      |     ^~~~
a.cc:19:5: error: case label '"RE"' not within a switch statement
   19 |     case "RE":
      |     ^~~~
Language: Java

import java.util.*;

public class VirtualMachineError
{
	public static void main(String[] args)
	{
		Scanner console = new Scnanner(System.in);
		int n = console.nextInt();
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		for(int i = 0; i < n; i ++)
		{
			String temp = console.next();
			if(temp.equals("AC"))
			{
				ac ++;
			}
			else if(temp.equals("WA"))
			{
				wa ++;
			}
			else if(temp.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.print("RE  X  " + re);		
	}
}


Compiler output:
Main.java:3: error: class VirtualMachineError is public, should be declared in a file named VirtualMachineError.java
public class VirtualMachineError
       ^
Main.java:7: error: cannot find symbol
		Scanner console = new Scnanner(System.in);
		                      ^
  symbol:   class Scnanner
  location: class VirtualMachineError
2 errors
Language: Java

import java.util.Scanner;

public class JudgeStatusSummary {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int C0 = 0;
		int C1 = 0;
		int C2 = 0;
		int C3 = 0;
		
		int N = scan.nextInt();
		for(int i=1; i<=N; i++) {
			String S = scan.next();
			
			switch(S) {
			case "AC":
				C0+=1;
				break;
			case "WA":
				C1+=1;
				break;
			case "TLE":
				C2+=1;
				break;
			case "RE":
				C3+=1;
				break;
			}
		}
		
		System.out.println("AC ×　"+C0);
		System.out.println("WA ×　"+C1);
		System.out.println("TLE ×　"+C2);
		System.out.println("RE ×　"+C3);
		
	}

}


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

public class Main {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int C0 = 0;
		int C1 = 0;
		int C2 = 0;
		int C3 = 0;
		
		int N = scan.nextInt();
		for(int i=1; i<=N; i++) {
			String S = scan.next();
			
			switch(S) {
			case "AC":
				C0+=1;
				break;
			case "WA":
				C1+=1;
				break;
			case "TLE":
				C2+=1;
				break;
			case "RE":
				C3+=1;
				break;
			}
		}
		
		System.out.println("AC ×　"+C0);
		System.out.println("WA ×　"+C1);
		System.out.println("TLE ×　"+C2);
		System.out.println("RE ×　"+C3);
		
	}

}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++


using namespace std;
int main(void){
int N;
cin >> N;

int C0 = 0;
int C1 = 0;
int C2 = 0;
int C3 = 0;

for(int i = 0; i < N; i++){
string S;
cin >> S;
if(S == " AC "){
C0++;
}
if(S == " WA "){
    C1++;
}
if(S == " TLE "){
    C2++;
}

    if(S == " RE "){
        C3++;
    }
cout<< " AC x " << C0 << endl;
   cout<< " WA x " << C1 << endl;
     cout<< " TLE x " << C2 << endl;
    cout<< " RE x " << C3 << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> N;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:13:1: error: 'string' was not declared in this scope
   13 | string S;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:14:8: error: 'S' was not declared in this scope
   14 | cin >> S;
      |        ^
a.cc:28:1: error: 'cout' was not declared in this scope
   28 | cout<< " AC x " << C0 << endl;
      | ^~~~
a.cc:28:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:26: error: 'endl' was not declared in this scope
   28 | cout<< " AC x " << C0 << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C

#include <iostream>
using namespace std;
int main(void){
    
    int N;
    cin >> N;
    
    int C0 = 0;
    int C01 = 0;
    int C02 = 0;
    int C3 = 0;
    
    for(int i = 0; i < N; i++){
        string s;
        cin >> s;
        if(S == "AC") {
            C0++;
        }
        if(S == "WA") {
            C1++;
        }
        if(S == "TLE"){
            C2++;
        }
        if(S == "RE"){
            C3++
        }
    }
    cout << "AC x " << C0 << endl;
    cout << "WA x " << C1 << endl;
    cout << "TLE x " << C2 << endl;
    cout << "RE x " << C3 << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int N;
    cin >> N;
    vector<string> S(N);
    vector<string> J(3);
    J = {"AC","WA","TLE","RE"};
    vector<int> C(3);
    rep(i, N + 1){
	cin >> S(i);
	rep(m, 4){
	    if(S(i) == J(m)){
		C(m) += 1;
	    }
	}
    }
    rep(i, 4){
	cout << J(i) + "*" + C(i) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   13 |         cin >> S(i);
      |                ~^~~
a.cc:15:17: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |             if(S(i) == J(m)){
      |                ~^~~
a.cc:15:25: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   15 |             if(S(i) == J(m)){
      |                        ~^~~
a.cc:16:18: error: no match for call to '(std::vector<int>) (int&)'
   16 |                 C(m) += 1;
      |                 ~^~~
a.cc:21:18: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                 ~^~~
a.cc:21:31: error: no match for call to '(std::vector<int>) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                              ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int N;
    cin >> N;
    std::vector<int> int(S(N));
    std::vector<int> int(J(3));
    J = {"AC","WA","TLE","RE"};
    vector<int> C(3);
    rep(i, N + 1){
	cin >> S(i);
	rep(m, 4){
	    if(S(i) == J(m)){
		C(m) += 1;
	    }
	}
    }
    rep(i, 4){
	cout << J(i) + "*" + C(i) << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before 'int'
    8 |     std::vector<int> int(S(N));
      |                      ^~~
a.cc:9:22: error: expected primary-expression before 'int'
    9 |     std::vector<int> int(J(3));
      |                      ^~~
a.cc:10:5: error: 'J' was not declared in this scope
   10 |     J = {"AC","WA","TLE","RE"};
      |     ^
a.cc:13:16: error: 'S' was not declared in this scope
   13 |         cin >> S(i);
      |                ^
a.cc:16:18: error: no match for call to '(std::vector<int>) (int&)'
   16 |                 C(m) += 1;
      |                 ~^~~
a.cc:21:31: error: no match for call to '(std::vector<int>) (int&)'
   21 |         cout << J(i) + "*" + C(i) << endl;
      |                              ~^~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n, a, w, t, r;
    string c[n];
    cin >> n;
    for(int z=0;z<n;z++){
        cin>>c[z];
    }
    for(z=0;z<n;z++){
        if(c[z]=="AC"){
            a+=1;
        }
        if else(c[z]=="WA"){
            w+=1;
        }
        if else(c[z]=="TLE"){
            t+=1;
        }
        else{
            r+=1;
        }
    }
    cout<<"AC x "<<a<<endl;
    cout<<"WA x "<<a<<endl;
    cout<<"TLE x "<<t<<endl;
    cout<<"RE x "<<r<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'z' was not declared in this scope
   10 |     for(z=0;z<n;z++){
      |         ^
a.cc:14:12: error: expected '(' before 'else'
   14 |         if else(c[z]=="WA"){
      |            ^~~~
      |            (
a.cc:17:12: error: expected '(' before 'else'
   17 |         if else(c[z]=="TLE"){
      |            ^~~~
      |            (
a.cc:20:9: error: 'else' without a previous 'if'
   20 |         else{
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N; int c1=0;int c2=0;int c3=0;int c4=0; string s;
  cin>>N;
  for (int i=0; i<n-1;++i){
    cin>>s;
    while(s == "AC")++c1;
    while(s == "WA")++c2;
    while(s == "TLE")++c3;
    while(s == "RE")++c4;  
  }
  cout<<"AC "<<"x "<<c1<<endl;
  cout<<"WA "<<"x "<<c2<<endl;
  cout<<"TLE "<<"x "<<c3<<endl;
  cout<<"RE "<<"x "<<c4<<endl;
 return 0;
}

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

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

int main(){
  int n;
  cin >> n;
  vector<string> vec(n);
  int ac = 0;
  int wa = 0;
  int tle = 0;
  int re = 0;
  for(int i = 0; i < n; i++) cin vec.at(i);
  for(int i = 0; i < vec.size(); i++){
    if(vec.at(i) == "AC") ac++;
    if(vec.at(i) == "WA") wa++;
    if(vec.at(i) == "TLE") tle++;
    if(vec.at(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:13:33: error: expected ';' before 'vec'
   13 |   for(int i = 0; i < n; i++) cin vec.at(i);
      |                                 ^~~~
      |                                 ;
Language: C

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

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


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