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

import java.util.*;
class b
{
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  String s=sc.nextString();
  int count=0,j=0,k=0,g=0,m=0;
    for(int i=0;i<n;i++)
    {
      if(s=="AC")j++;
   else if(s=="WA")k++;
     else if(s=="TLE")g++;
      else m++;
    }
    System.out.println("AC x "+j);
     System.out.println("WA x "+k);
     System.out.println("TLE x "+g);
     System.out.println("RE x "+m);
}
    
    
    


Compiler output:
Main.java:8: error: illegal start of type
    for(int i=0;i<n;i++)
    ^
Main.java:8: error: > or ',' expected
    for(int i=0;i<n;i++)
                   ^
Main.java:8: error: <identifier> expected
    for(int i=0;i<n;i++)
                     ^
Main.java:15: error: <identifier> expected
    System.out.println("AC x "+j);
                      ^
Main.java:15: error: illegal start of type
    System.out.println("AC x "+j);
                       ^
Main.java:16: error: <identifier> expected
     System.out.println("WA x "+k);
                       ^
Main.java:16: error: illegal start of type
     System.out.println("WA x "+k);
                        ^
Main.java:17: error: <identifier> expected
     System.out.println("TLE x "+g);
                       ^
Main.java:17: error: illegal start of type
     System.out.println("TLE x "+g);
                        ^
Main.java:18: error: <identifier> expected
     System.out.println("RE x "+m);
                       ^
Main.java:18: error: illegal start of type
     System.out.println("RE x "+m);
                        ^
11 errors
Language: C++

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

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

    string s[n];

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

    for(int i=0; i<n; i++){
        switch(s[i]){
            case 'AC':
                ac++;
                break;
            case 'WA':
                wa++;
                break;
            case 'TLE':
                tle++;
                break;
            case 'RE':
                re++;
                break;
        }
    }

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


}

Compiler output:
a.cc:18:18: warning: multi-character character constant [-Wmultichar]
   18 |             case 'AC':
      |                  ^~~~
a.cc:21:18: warning: multi-character character constant [-Wmultichar]
   21 |             case 'WA':
      |                  ^~~~
a.cc:24:18: warning: multi-character character constant [-Wmultichar]
   24 |             case 'TLE':
      |                  ^~~~~
a.cc:27:18: warning: multi-character character constant [-Wmultichar]
   27 |             case 'RE':
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:17:19: error: switch quantity not an integer
   17 |         switch(s[i]){
      |                ~~~^
Language: Java

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Map<String, Integer> mp = new HashMap<>();

        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();

        mp.put("AC", 0);
        mp.put("WA", 0);
        mp.put("TLE", 0);
        mp.put("RE", 0);

        while (t>0){

            String in = sc.next();

            mp.put(in, mp.get(in)+1);

            t--;
        }

        for(Map.Entry<String, Integer> entry : mp.entrySet()){
            System.out.println( entry.getKey() + " x " + entry.getValue());
        }
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
        Map<String, Integer> mp = new HashMap<>();
        ^
  symbol:   class Map
  location: class Main
Main.java:7: error: cannot find symbol
        Map<String, Integer> mp = new HashMap<>();
                                      ^
  symbol:   class HashMap
  location: class Main
Main.java:26: error: package Map does not exist
        for(Map.Entry<String, Integer> entry : mp.entrySet()){
               ^
3 errors
Language: C++

# include <iostream>
using namesapce std;

int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n=0,a[4]={0};
  cin>>n;
  char ch;
  for(int i=0;i<n;i++)
  {
    cin>>ch;
    if(ch=="AC")
      a[0]++;
    else if(ch=="WA")
      a[1]++;
    else if(ch=="TLE")
      a[2]++;
    else
      a[3]++;
  }
  cout<<"AC"<<" "<<"x"<<" "<<a[0]<<endl;
  cout<<"WA"<<" "<<"x"<<" "<<a[1]<<endl;
  cout<<"TLE"<<" "<<"x"<<" "<<a[2]<<endl;
  cout<<"RE"<<" "<<"x"<<" "<<a[3]<<endl;
  return 0;
}
  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'ios_base' has not been declared
    6 |   ios_base::sync_with_stdio(false);
      |   ^~~~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin.tie(NULL);
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if(ch=="AC")
      |        ~~^~~~~~
a.cc:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(ch=="WA")
      |             ~~^~~~~~
a.cc:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     else if(ch=="TLE")
      |             ~~^~~~~~~
a.cc:23:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |   cout<<"AC"<<" "<<"x"<<" "<<a[0]<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |   cout<<"AC"<<" "<<"x"<<" "<<a[0]<<endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {

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

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

Compiler output:
a.cc:18:27: warning: multi-character character constant [-Wmultichar]
   18 |                 if (A[i]=='AC') {
      |                           ^~~~
a.cc:22:32: warning: multi-character character constant [-Wmultichar]
   22 |                 else if (A[i]=='WA') {
      |                                ^~~~
a.cc:25:31: warning: multi-character character constant [-Wmultichar]
   25 |                 else if(A[i]=='TLE')
      |                               ^~~~~
a.cc:29:32: warning: multi-character character constant [-Wmultichar]
   29 |                 else if (A[i]=='RE') {
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:30:29: error: expected ';' before '}' token
   30 |                         C3++
      |                             ^
      |                             ;
   31 | 
   32 |                 }
      |                 ~
Language: Java

import java.util.*;
class b
{
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  String s=sc.nextString();
  int count=0,j=0,k=0,g=0,m=0;
  if(n>=1 && n<=100000)
  {
    for(int i=0;i<n;i++)
    {
      if(s=="AC")j++;
   else if(s=="WA")k++;
     else if(s=="TLE")g++;
      else m++;
    }
    System.out.println("AC x "+j);
     System.out.println("WA x "+k);
     System.out.println("TLE x "+g);
     System.out.println("RE x "+m);
  }
}
    
    
    

Compiler output:
Main.java:8: error: illegal start of type
  if(n>=1 && n<=100000)
  ^
Main.java:8: error: <identifier> expected
  if(n>=1 && n<=100000)
      ^
Main.java:8: error: <identifier> expected
  if(n>=1 && n<=100000)
              ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    char s[10000];
    cin>>n;
    for(i=0;i<n;i++){
        cin>>s[i];
    }
    ac=count(s.begin(),s.end(),'AC');
    wa=count(s.begin(),s.end(),'WA');
    tle=count(s.begin(),s.end(),'TLE');
    re=count(s.begin(),s.end(),'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:15:32: warning: multi-character character constant [-Wmultichar]
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                                ^~~~
a.cc:16:32: warning: multi-character character constant [-Wmultichar]
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                                ^~~~
a.cc:17:33: warning: multi-character character constant [-Wmultichar]
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                                 ^~~~~
a.cc:18:32: warning: multi-character character constant [-Wmultichar]
   18 |     re=count(s.begin(),s.end(),'RE');
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:15:16: error: request for member 'begin' in 's', which is of non-class type 'char [10000]'
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                ^~~~~
a.cc:15:26: error: request for member 'end' in 's', which is of non-class type 'char [10000]'
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                          ^~~
a.cc:16:16: error: request for member 'begin' in 's', which is of non-class type 'char [10000]'
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                ^~~~~
a.cc:16:26: error: request for member 'end' in 's', which is of non-class type 'char [10000]'
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                          ^~~
a.cc:17:17: error: request for member 'begin' in 's', which is of non-class type 'char [10000]'
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                 ^~~~~
a.cc:17:27: error: request for member 'end' in 's', which is of non-class type 'char [10000]'
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                           ^~~
a.cc:18:16: error: request for member 'begin' in 's', which is of non-class type 'char [10000]'
   18 |     re=count(s.begin(),s.end(),'RE');
      |                ^~~~~
a.cc:18:26: error: request for member 'end' in 's', which is of non-class type 'char [10000]'
   18 |     re=count(s.begin(),s.end(),'RE');
      |                          ^~~
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<string> s(n);
    int a = 0, w = 0, t = 0, r = 0;
    for(int i = 0; i < n; i++){
        cin >> s.at(i);
        if(s.at(i) == "AC") a++;
        else if(s.at(i) == "WA") w++;
        else if(s.at(i) == "TLE") t++;
        else r++;
    }
    cout << "AC x " << a;"\n" << "WA x " << w"\n" << "TLE x " << t"\n" << "RE x " << r << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: invalid operands of types 'const char [2]' and 'const char [6]' to binary 'operator<<'
   16 |     cout << "AC x " << a;"\n" << "WA x " << w"\n" << "TLE x " << t"\n" << "RE x " << r << endl;
      |                          ~~~~ ^~ ~~~~~~~
      |                          |       |
      |                          |       const char [6]
      |                          const char [2]
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   12 |     if(strcmp(s[N],AC)
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:12:20: error: 'AC' undeclared (first use in this function)
   12 |     if(strcmp(s[N],AC)
      |                    ^~
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:23: error: expected ')' before 'c0'
   12 |     if(strcmp(s[N],AC)
      |       ~               ^
      |                       )
   13 |        c0++;
      |        ~~              
main.c:26:32: error: expected declaration or statement at end of input
   26 |                                }
      |                                ^
main.c:26:32: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    char s[4];
    cin>>n;
    for(i=0;i<n;i++){
        cin>>s[i];
    }
    ac=count(s.begin(),s.end(),'AC');
    wa=count(s.begin(),s.end(),'WA');
    tle=count(s.begin(),s.end(),'TLE');
    re=count(s.begin(),s.end(),'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:15:32: warning: multi-character character constant [-Wmultichar]
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                                ^~~~
a.cc:16:32: warning: multi-character character constant [-Wmultichar]
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                                ^~~~
a.cc:17:33: warning: multi-character character constant [-Wmultichar]
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                                 ^~~~~
a.cc:18:32: warning: multi-character character constant [-Wmultichar]
   18 |     re=count(s.begin(),s.end(),'RE');
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:15:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                ^~~~~
a.cc:15:26: error: request for member 'end' in 's', which is of non-class type 'char [4]'
   15 |     ac=count(s.begin(),s.end(),'AC');
      |                          ^~~
a.cc:16:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                ^~~~~
a.cc:16:26: error: request for member 'end' in 's', which is of non-class type 'char [4]'
   16 |     wa=count(s.begin(),s.end(),'WA');
      |                          ^~~
a.cc:17:17: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                 ^~~~~
a.cc:17:27: error: request for member 'end' in 's', which is of non-class type 'char [4]'
   17 |     tle=count(s.begin(),s.end(),'TLE');
      |                           ^~~
a.cc:18:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   18 |     re=count(s.begin(),s.end(),'RE');
      |                ^~~~~
a.cc:18:26: error: request for member 'end' in 's', which is of non-class type 'char [4]'
   18 |     re=count(s.begin(),s.end(),'RE');
      |                          ^~~
Language: C++

#include <iostream>

using namespace std;

int countA(char* my_str){
    int i, count = 0;
    for(i = 0;my_str[i]!='\0';i++){
        if(my_str[i] == 'a'){
            count++;
        }
    }
    return count;
}

int main(){
    char str1[] = "AC";
    char str2[] = "WA";
    char str3[] = "TLE";
    cher str4[] = "RE"; 
    cout << "AC x " << countA(str1) << endl;
    cout << "WA x " << countA(str2) << endl;
    cout << "TLE x " << countA(str3) << endl;
    cout << "RE x " << countA(str4) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'cher' was not declared in this scope; did you mean 'char'?
   19 |     cher str4[] = "RE";
      |     ^~~~
      |     char
a.cc:23:31: error: 'str4' was not declared in this scope; did you mean 'str3'?
   23 |     cout << "RE x " << countA(str4) << endl;
      |                               ^~~~
      |                               str3
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<string> s(n);
    int a = 0, w = 0, t = 0, r = 0;
    for(int i = 0; i < n; i++){
        cin >> s.at(i);
        if(s.at(i) == "AC") a++;
        else if(s.at(i) == "WA") w++;
        else if(s.at(i) == "TLE") t++;
        else r++;
    }
    cout << "AC x " << a"\n" << "WA x " << w"\n" << "TLE x " << t"\n" << "RE x " << r << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before string constant
   16 |     cout << "AC x " << a"\n" << "WA x " << w"\n" << "TLE x " << t"\n" << "RE x " << r << endl;
      |                         ^~~~
      |                         ;
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<string> s(n);
    int a = 0, w = 0, t = 0, r = 0;
    for(int i = 0; i < n; i++){
        cin >> s.at(i);
        if(s.at(i) == "AC") a++;
        else if(s.at(i) == "WA") w++;
        else if(s.at(i) == "TLE") t++;
        else r++;
    }
    cout << "AC x " << a\n << "WA x " << w\n << "TLE x " << t\n << "RE x " << r << endl;
}


Compiler output:
a.cc:16:25: error: stray '\' in program
   16 |     cout << "AC x " << a\n << "WA x " << w\n << "TLE x " << t\n << "RE x " << r << endl;
      |                         ^
a.cc:16:43: error: stray '\' in program
   16 |     cout << "AC x " << a\n << "WA x " << w\n << "TLE x " << t\n << "RE x " << r << endl;
      |                                           ^
a.cc:16:62: error: stray '\' in program
   16 |     cout << "AC x " << a\n << "WA x " << w\n << "TLE x " << t\n << "RE x " << r << endl;
      |                                                              ^
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before 'n'
   16 |     cout << "AC x " << a\n << "WA x " << w\n << "TLE x " << t\n << "RE x " << r << endl;
      |                         ^~
      |                         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    char s[4];
    cin>>n;
    for(i=0;i<n;i++){
        cin>>s[i];
    }
    ac=count(s.begin(),send(),'AC');
    wa=count(s.begin(),send(),'WA');
    tle=count(s.begin(),send(),'TLE');
    re=count(s.begin(),send(),'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:15:31: warning: multi-character character constant [-Wmultichar]
   15 |     ac=count(s.begin(),send(),'AC');
      |                               ^~~~
a.cc:16:31: warning: multi-character character constant [-Wmultichar]
   16 |     wa=count(s.begin(),send(),'WA');
      |                               ^~~~
a.cc:17:32: warning: multi-character character constant [-Wmultichar]
   17 |     tle=count(s.begin(),send(),'TLE');
      |                                ^~~~~
a.cc:18:31: warning: multi-character character constant [-Wmultichar]
   18 |     re=count(s.begin(),send(),'RE');
      |                               ^~~~
a.cc: In function 'int main()':
a.cc:15:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   15 |     ac=count(s.begin(),send(),'AC');
      |                ^~~~~
a.cc:15:24: error: 'send' was not declared in this scope
   15 |     ac=count(s.begin(),send(),'AC');
      |                        ^~~~
a.cc:16:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   16 |     wa=count(s.begin(),send(),'WA');
      |                ^~~~~
a.cc:17:17: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   17 |     tle=count(s.begin(),send(),'TLE');
      |                 ^~~~~
a.cc:18:16: error: request for member 'begin' in 's', which is of non-class type 'char [4]'
   18 |     re=count(s.begin(),send(),'RE');
      |                ^~~~~
Language: C++

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

int main(void)
{
  int N;
  std::cin >> N;
  
  std::vector<std::string> strList;
  std::string str;
  for(int i=0; i<N;i++)
  {
    std::cin >> str;
    strList.push_back(str);
  }
  
  int counta[4] = {0,0,0,0};
  
  for(int i=0; i<N;i++)
  {
    if(strList[i] == "AC")
    {
      counta[0]++;
    }
    
    if(strList[i] == "WA")
    {
      counta[1]++;
    }

        if(strList[i] == "LTE")
    {
      counta[2]++;
    }

        if(strList[i] == "RE")
    {
      counta[3]++;
    }

  }
  
  
  std::cout << "AC x " <<counta[0]<<endl;
  std::cout << "WA x " <<counta[1]<<endl;
  std::cout << "LTE x " <<counta[2]<<endl;
  std::cout << "RE x " <<counta[3]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   45 |   std::cout << "AC x " <<counta[0]<<endl;
      |                                     ^~~~
      |                                     std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<string> s(n);
    int a = 0, w = 0, t = 0, r = 0;
    for(int i = 0; i < n; i++){
        cin >> s.at(i);
        if(s.at(i) == "AC") a++;
        else if(s.at(i) == "WA") w++;
        else if(s.at(i) == "TLE") t++;
        else r++;
    }
    cout << "AC x " << a << \n << "WA x " << w << \n << "TLE x " << t << \n << "RE x " << r << endl;
}


Compiler output:
a.cc:16:29: error: stray '\' in program
   16 |     cout << "AC x " << a << \n << "WA x " << w << \n << "TLE x " << t << \n << "RE x " << r << endl;
      |                             ^
a.cc:16:51: error: stray '\' in program
   16 |     cout << "AC x " << a << \n << "WA x " << w << \n << "TLE x " << t << \n << "RE x " << r << endl;
      |                                                   ^
a.cc:16:74: error: stray '\' in program
   16 |     cout << "AC x " << a << \n << "WA x " << w << \n << "TLE x " << t << \n << "RE x " << r << endl;
      |                                                                          ^
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = Integer.parseInt(scan.nextLine());
	String[] judge = {"AC", "WA", "TLE", "RE"};
    int[] count = {0, 0, 0, 0};
    
    for (int i=0; i<N; i++) {
      String tmp = scan.newLine();
      
      switch(tmp) {
        case "AC":
            count[0]++;
         	break;
        case "WA":
            count[1]++;
         	break;
        case "TLE":
            count[2]++;
         	break;
        case "RE":
            count[3]++;
         	break;
      }
    }
    
    for (int i=0; i<count.length(); i++) {
      System.out.println(judge[i] + " x " + count[i]);
    }
  }
}


Compiler output:
Main.java:11: error: cannot find symbol
      String tmp = scan.newLine();
                       ^
  symbol:   method newLine()
  location: variable scan of type Scanner
Main.java:29: error: cannot find symbol
    for (int i=0; i<count.length(); i++) {
                         ^
  symbol:   method length()
  location: variable count of type int[]
2 errors
Language: C++

#include <iostream>
#include <string>

int main() {
  int ac=0;
  int wa=0;
  int tle=0;
  int re=0;
  std::string input;
  while(std::cin >> input) {
    if(input == "AC") {
      ++ac;
    } else if(input == "WA") {
      ++wa;
    } else if(input == "TLE") {
      ++tle;
    } else if(input == "RE") {
      ++re;
    }
  }
  std::cout << "AC x " << ac << std::endl;
  std::cout << "WA x " << wa <<std::endl;
  std::cout << "TLE x " << tle <<std::endl;
  std::cout << "RE x " << re <<std::endl;
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |   return;
      |   ^~~~~~
Language: C

#include <iostream>
#include <vector>
#include <unordered_set>
#include <set>
#include <cstring>
#include <map>
#include <cmath>
#include <algorithm>
#include <queue>

using namespace std;

using ll = long long;
const ll INF = 1e18 + 1;





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

    ll n;
    cin >> n;
    ll ac = 0, wa = 0, tle = 0, re = 0;

    for (int i = 0; i < n; ++i) {
        string str;
        cin >> str;

        if (str == "AC") {
            ac++;
        } else if (str =="WA") {
            wa++;
        } else if (str == "TLE") {
            tle++;
        } else if (str == "RE") {
            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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>

int main() {
  int ac=0;
  int wa=0;
  int tle=0;
  int re=0;
  std::string input;
  while(std::cin >> input;) {
    if(input == "AC") {
      ++ac;
    } else if(input == "WA") {
      ++wa;
    } else if(input == "TLE") {
      ++tle;
    } else if(input == "RE") {
      ++re;
    }
  }
  std::cout << "AC x " << ac << std::endl;
  std::cout << "WA x " << wa <<std::endl;
  std::cout << "TLE x " << tle <<std::endl;
  std::cout << "RE x " << re <<std::endl;
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ')' before ';' token
   10 |   while(std::cin >> input;) {
      |        ~                 ^
      |                          )
a.cc:10:27: error: expected primary-expression before ')' token
   10 |   while(std::cin >> input;) {
      |                           ^
a.cc:25:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   25 |   return;
      |   ^~~~~~
Language: C++

#include <iostream>
#include<cstring>

using namespace std;

int main()
{
    int n,f[1000]={0},a[100];
    string b;
    cin>>t;
    for(int i=0;i<n;i++){
    cin>>b;
    a[i]=b[0];
    f[a[i]]++;
    }
    cout<<"AC x "<<f['A']<<endl;
    cout<<"WA x "<<f['W']<<endl;
    cout<<"TLE x "<<f['T']<<endl;
    cout<<"RE x "<<f['R']<<endl;
}

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

#include<stdio.h>
int main()
{
    int N,i,AC=0,WA=0,TLE=0,RE=0;
	char kazu[3];
    scanf("%d",&N);
    for(i=0;i<N;i++)
    {
        scanf("%s",&kazu);
        if(!strcmp(kazu, "AC"))
        {
            AC++;
        }
        if(!strcmp(kazu,"WA"))
        {
            WA++;
        }
         if(!strcmp(kazu, "TLE"))
        {
            TLE++;
        }
         if(!strcmp(kazu, "RE"))
        {
            RE++;
        }
        
    }
printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d",AC,WA,TLE,RE);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'strcmp' was not declared in this scope
   10 |         if(!strcmp(kazu, "AC"))
      |             ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | int main()
a.cc:14:13: error: 'strcmp' was not declared in this scope
   14 |         if(!strcmp(kazu,"WA"))
      |             ^~~~~~
a.cc:14:13: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:18:14: error: 'strcmp' was not declared in this scope
   18 |          if(!strcmp(kazu, "TLE"))
      |              ^~~~~~
a.cc:18:14: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:14: error: 'strcmp' was not declared in this scope
   22 |          if(!strcmp(kazu, "RE"))
      |              ^~~~~~
a.cc:22:14: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<string> s(n);
    int a = 0, w = 0, t = 0, r = 0;
    for(int i = 0; i < n; i++){
        cin >> s.at(i);
        if(s.at(i) == "AC") a++;
        else if(s.at(i) == "WA") w++;
        else if(s.at(i) == "TLE") t++;
        else r++;
    }
    cout << "AC x " << a << /n << "WA x " << w << /n << "TLE x " << t << /n << "RE x " << r << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected primary-expression before '/' token
   16 |     cout << "AC x " << a << /n << "WA x " << w << /n << "TLE x " << t << /n << "RE x " << r << endl;
      |                             ^
a.cc:16:51: error: expected primary-expression before '/' token
   16 |     cout << "AC x " << a << /n << "WA x " << w << /n << "TLE x " << t << /n << "RE x " << r << endl;
      |                                                   ^
a.cc:16:74: error: expected primary-expression before '/' token
   16 |     cout << "AC x " << a << /n << "WA x " << w << /n << "TLE x " << t << /n << "RE x " << r << endl;
      |                                                                          ^
Language: C++

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

int main(void)
{
  int i,j;
  int ac,tle,wa,re;
  ac =0; tle =0; wa =0; re =0;
  cin >> i;
  string d[i];
  for(j=0; j<i;j++){
   cin >> d[i];
  }
  for(int k=0;k<i;k++){
    if(d[k] == "AC"){ ac++;
    }
    else if(d[k] == "WA"){
     wa++;
    }
    else if(d[k] == "TLE"){
     tle++;
    }
    else if(d[k] == "re"){
     re++;
    }
    print("AC × %d\n",ac);
    print("WA × %d\n",wa);
    print("TLE × %d\n",tle);
    print("RE × %d\n",re);
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   26 |     print("AC × %d\n",ac);
      |     ^~~~~
      |     rint
a.cc:30:4: error: expected '}' at end of input
   30 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main() {
  int n,ac,wa,tle,re;
  ac = 0;
  wa = 0;
  tle = 0;
  re = 0;
  
  cin >> n;
  
  vector<string> a(n);
  
  for(int i=0;i<n;i++){
    cin >> a[i];
    if(a[i]="AC")ac++;
    else if(a[i]="WA")wa++;
    else if(a[i]="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:
a.cc: In function 'int main()':
a.cc:17:12: error: could not convert '(& a.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(a[i]="AC")ac++;
a.cc:18:17: error: could not convert '(& a.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |     else if(a[i]="WA")wa++;
a.cc:19:17: error: could not convert '(& a.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"TLE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |     else if(a[i]="TLE")tle++;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   12 |     if(strcmp(s[N],AC)
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:12:20: error: 'AC' undeclared (first use in this function)
   12 |     if(strcmp(s[N],AC)
      |                    ^~
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:16: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |     if(strcmp(s[N],AC)
      |               ~^~~
      |                |
      |                char
main.c:12:16: note: expected 'const char *' but argument is of type 'char'
main.c:12:23: error: expected ')' before 'c0'
   12 |     if(strcmp(s[N],AC)
      |       ~               ^
      |                       )
   13 |        c0++;
      |        ~~              
main.c:26:32: error: expected declaration or statement at end of input
   26 |                                }
      |                                ^
main.c:26:32: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    char s[4];
    cin>>n;
    for(i=0;i<n;i++){
        cin>>s[i];
        if(s[i]=="AC") ac++;
        if(s[i]=="WA") wa++;
        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:17:22: error: stray '\3' in program
   17 |         if(s[i]=="RE"<U+0003>) re++;
      |                      ^~~~~~~~
a.cc: In function 'int main()':
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |         if(s[i]=="AC") ac++;
      |            ~~~~^~~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(s[i]=="WA") wa++;
      |            ~~~~^~~~~~
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(s[i]=="TLE") tle++;
      |            ~~~~^~~~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(s[i]=="RE") re++;
      |            ~~~~^~~~~~
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = Integer.parseInt(scan.nextLine());
	String[] judge = {"AC", "WA", "TLE", "RE"};
    int[] count = {0, 0, 0, 0};
    
    for (int i=0; i<N; i++) {
      String tmp = scan.newLine();
      
      switch(tmp) {
          case: "AC"
            count[0]++;
         	break;
          case: "WA"
            count[1]++;
         	break;
          case: "TLE"
            count[2]++;
         	break;
          case: "RE"
            count[3]++;
         	break;
      }
    }
    
    for (int i=0; i<count.length(); i++) {
      System.out.println(judge[i] + " x " + count[i]);
    }
  }
}

Compiler output:
Main.java:14: error: illegal start of expression
          case: "AC"
              ^
Main.java:14: error: not a statement
          case: "AC"
                ^
Main.java:14: error: ';' expected
          case: "AC"
                    ^
Main.java:17: error: illegal start of expression
          case: "WA"
              ^
Main.java:17: error: not a statement
          case: "WA"
                ^
Main.java:17: error: ';' expected
          case: "WA"
                    ^
Main.java:20: error: illegal start of expression
          case: "TLE"
              ^
Main.java:20: error: not a statement
          case: "TLE"
                ^
Main.java:20: error: ';' expected
          case: "TLE"
                     ^
Main.java:23: error: illegal start of expression
          case: "RE"
              ^
Main.java:23: error: not a statement
          case: "RE"
                ^
Main.java:23: error: ';' expected
          case: "RE"
                    ^
12 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N;
  string str;
  cin >> N >> str;
  int A = 0;
  int W = 0;
  int T = 0;
  int R = 0;
  
  for(int i = 0; i < N; i++){
    if(str.at(i) == 'AC'){
      A++;
    }
    if(str.at(i) == 'WA'){
      W++;
    }
    if(str.at(i) == 'TLE'){
      T++;
    }
    if(str.at(i) == 'RE'){
      R++;
    }
  }
  cin >> A >> W >> T >> 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:14:21: warning: multi-character character constant [-Wmultichar]
   14 |     if(str.at(i) == 'AC'){
      |                     ^~~~
a.cc:17:21: warning: multi-character character constant [-Wmultichar]
   17 |     if(str.at(i) == 'WA'){
      |                     ^~~~
a.cc:20:21: warning: multi-character character constant [-Wmultichar]
   20 |     if(str.at(i) == 'TLE'){
      |                     ^~~~~
a.cc:23:21: warning: multi-character character constant [-Wmultichar]
   23 |     if(str.at(i) == 'RE'){
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:29:19: error: 'x' was not declared in this scope
   29 |   cout << "AC" << x << A << endl;
      |                   ^
Language: C++

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

int main(void)
{
  int i,j;
  int ac,tle,wa,re;
  ac =0; tle =0; wa =0; re =0;
  cin >> i;
  string d[i];
  for(j=0; j<i;j++){
   cin >> d[i];
  }
  for(int k=0;k<i;k++){
    if(d[k] == "AC"){ ac++;
    }
    else if(d[k] == "WA"){
     wa++;
    }
    else if(d[k] == "TLE"){
     tle++:
    }
    else if(d[k] == "re"){
     re++:
    }
    print("AC × %d\n",ac);
    print("WA × %d\n",wa);
    print("TLE × %d\n",tle);
    print("RE × %d\n",re);
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: expected ';' before ':' token
   21 |      tle++:
      |           ^
      |           ;
a.cc:24:10: error: expected ';' before ':' token
   24 |      re++:
      |          ^
      |          ;
a.cc:26:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   26 |     print("AC × %d\n",ac);
      |     ^~~~~
      |     rint
a.cc:30:4: error: expected '}' at end of input
   30 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.*;
import java.io.*;

public class B {

    public static void main(String[] args)throws Exception {
        InputReader in = new InputReader (System.in);
        PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out));
        // Code starts from here //
        int t = in.nextInt();
        int ac = 0, wa = 0, tle = 0, re = 0;
        for (int i = 0; i < t; i++) {
            String s = in.next();
            if(s.equals("AC")) ac++;
            else if(s.equals("WA")) wa++;
            else if(s.equals("TLE")) tle++;
            else if(s.equals("RE")) re++;
        }
        pw.printf("AC x %d\n", ac);
        pw.printf("WA x %d\n", wa);
        pw.printf("TLE x %d\n", tle);
        pw.printf("RE x %d\n", re);


        pw.close();
    }





    /****************************************
     ******* IO STUFF STARTS FROM HERE ******
     ****************************************/

    static void debug(Object...obj) {
        System.err.println(Arrays.deepToString
                (obj));
    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new
                    InputStreamReader(stream));
            tokenizer = null;
        }

        //InputReader in = new InputReader(new FileReader("File_Name"));
        public InputReader(FileReader file) {
            reader = new BufferedReader(file);
            tokenizer = null;
        }

        public String next() {

            try {
                while (tokenizer == null || !
                        tokenizer.hasMoreTokens())
                    tokenizer = new StringTokenizer
                            (reader.readLine());
            } catch (IOException e) {
                return null;
            }
            return tokenizer.nextToken();
        }

        public String nextLine() {
            String line = null;
            try {
                tokenizer = null;
                line =  reader.readLine();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
            return line;
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public double nextDouble() {
            return Double.parseDouble(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public boolean hasNext(){
            try {
                while (tokenizer == null || !
                        tokenizer.hasMoreTokens())
                    tokenizer = new StringTokenizer
                            (reader.readLine());
            }
            catch (Exception e) {
                return false;
            }
            return true;
        }
    }
}

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

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

Compiler output:
a.cc:14:21: warning: multi-character character constant [-Wmultichar]
   14 |     if(str.at(i) == 'AC'){
      |                     ^~~~
a.cc:17:21: warning: multi-character character constant [-Wmultichar]
   17 |     if(str.at(i) == 'WA'){
      |                     ^~~~
a.cc:20:21: warning: multi-character character constant [-Wmultichar]
   20 |     if(str.at(i) == 'TLE'){
      |                     ^~~~~
a.cc:23:21: warning: multi-character character constant [-Wmultichar]
   23 |     if(str.at(i) == 'RE'){
      |                     ^~~~
a.cc:29:19: error: extended character × is not valid in an identifier
   29 |   cout << "AC" << × << A << endl;
      |                   ^
a.cc:30:19: error: extended character × is not valid in an identifier
   30 |   cout << "WA" << × << W << endl;
      |                   ^
a.cc:31:20: error: extended character × is not valid in an identifier
   31 |   cout << "TLE" << × << T << endl;
      |                    ^
a.cc:32:19: error: extended character × is not valid in an identifier
   32 |   cout << "RE" << × << R << endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:29:19: error: '\U000000d7' was not declared in this scope
   29 |   cout << "AC" << × << A << endl;
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int i,n;
    int ac=0;
    int wa=0;
    int tle=0;
    int re=0;
    char s[4];
    cin>>n;
    for(i=0;i<n;i++){
        cin>>s[i];
        if(s[i]=='AC') ac++;
        if(s[i]=='WA') wa++;
        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:14:18: warning: multi-character character constant [-Wmultichar]
   14 |         if(s[i]=='AC') ac++;
      |                  ^~~~
a.cc:15:18: warning: multi-character character constant [-Wmultichar]
   15 |         if(s[i]=='WA') wa++;
      |                  ^~~~
a.cc:16:18: warning: multi-character character constant [-Wmultichar]
   16 |         if(s[i]=='TLE') tle++;
      |                  ^~~~~
a.cc:17:18: warning: multi-character character constant [-Wmultichar]
   17 |         if(s[i]=='RE') re++;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:22:29: error: expected '}' at end of input
   22 |     cout<<"RE x "<<re<<endl;
      |                             ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int count=0,count1=0;score2=0;ken3=0;
  for(int i=0;i<n;i++){
    string ss;
    cin >> ss;
    if(ss=="AC")count++;
    if(ss=="WA")count1++;
    if(ss=="TLE")score2++;
    if(ss=="RE")ken3++;
    
    i++;
  }
  cout << "AC" << " " << "x" << " " << count << endl;
  cout << "WA" << " " << "x" << " " << count1 << endl;
  cout << "TLE" << " " << "x" << " " << score2 << endl;
  cout << "RE" << " " << "x" << " " << ken3 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'score2' was not declared in this scope
    6 |   int count=0,count1=0;score2=0;ken3=0;
      |                        ^~~~~~
a.cc:6:33: error: 'ken3' was not declared in this scope
    6 |   int count=0,count1=0;score2=0;ken3=0;
      |                                 ^~~~
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
      String s[]=new String[n];
      int x[]=new int[4];
      for(int i=0;i<4;i++)
      {x[i]=0;}
      for(int i=0;i<n;i++)
      {s[i]=sc.nextLine();
      if(s[i]=="AC")
        ++x[0];
       if(s[i]=="WA")
        ++x[1];
       if(s[i]=="TLE")
        ++x[2];
       if(s[i]=="RE")
        ++x[3];
      }
      for(int i=0;i<4;i++)
      {
        if(i=0)
        System.out.println("AC x "+x[i]);
        if(i=1)
        System.out.println("WA x "+x[i]);
        if(i=2)
        System.out.println("TLE x "+x[i]);
        if(i=3)
        System.out.println("RE x "+x[i]);
      }
    }
}

Compiler output:
Main.java:29: error: incompatible types: int cannot be converted to boolean
        if(i=0)
            ^
Main.java:31: error: incompatible types: int cannot be converted to boolean
        if(i=1)
            ^
Main.java:33: error: incompatible types: int cannot be converted to boolean
        if(i=2)
            ^
Main.java:35: error: incompatible types: int cannot be converted to boolean
        if(i=3)
            ^
4 errors