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

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

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",%s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: unknown type name 'string'; did you mean 'stdin'?
    7 |   string s[a];
      |   ^~~~~~
      |   stdin
main.c:9:15: error: expected expression before '%' token
    9 |    scanf("%s",%s[i]);
      |               ^
main.c:13:11: warning: comparison between pointer and integer
   13 |    if(s[i]=="AC")ac++;
      |           ^~
main.c:14:11: warning: comparison between pointer and integer
   14 |    if(s[i]=="WA")wa++;
      |           ^~
main.c:15:11: warning: comparison between pointer and integer
   15 |    if(s[i]=="TLE")tle++;
      |           ^~
main.c:16:11: warning: comparison between pointer and integer
   16 |    if(s[i]=="RE")re++;
      |           ^~
Language: C

#include<stdio.h> 

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",%s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'; did you mean 'stdin'?
    6 |   string s[a];
      |   ^~~~~~
      |   stdin
main.c:8:15: error: expected expression before '%' token
    8 |    scanf("%s",%s[i]);
      |               ^
main.c:12:11: warning: comparison between pointer and integer
   12 |    if(s[i]=="AC")ac++;
      |           ^~
main.c:13:11: warning: comparison between pointer and integer
   13 |    if(s[i]=="WA")wa++;
      |           ^~
main.c:14:11: warning: comparison between pointer and integer
   14 |    if(s[i]=="TLE")tle++;
      |           ^~
main.c:15:11: warning: comparison between pointer and integer
   15 |    if(s[i]=="RE")re++;
      |           ^~
Language: C

#include<stdio.h>
#include<bits/stdc++.h> 

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",%s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

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

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

int main (void){
  int a;
  scanf("%d",&a);
  string s[a];
  for(int i=0;i<a;i++){
   scanf("%s",%s[i]);
 }
  int ac=0,wa=0,tle=0,re=0;
  for(int i=0;i<a;i++){
   if(s[i]=="AC")ac++;
   if(s[i]=="WA")wa++;
   if(s[i]=="TLE")tle++;
   if(s[i]=="RE")re++;
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'; did you mean 'stdin'?
    6 |   string s[a];
      |   ^~~~~~
      |   stdin
main.c:8:15: error: expected expression before '%' token
    8 |    scanf("%s",%s[i]);
      |               ^
main.c:12:13: error: 'AC' undeclared (first use in this function); did you mean 'ac'?
   12 |    if(s[i]==AC)ac++;
      |             ^~
      |             ac
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  
  char s;
  char a,b,c,d;
  int e,f,g,h;
  
  a="AC";
  b="WA";
  c="TLE";
  d="RE";
  
  for(int i=0;i<n;i++)
  {
    cin>>s;
    
    if(s==a)
      e++;
    else if(s==b)
      f++;
    else if(s==c)
      g++;
    else
      h++;
  }
  
  cout<<a<<" x "<<e<<endl;
  cout<<b<<" x "<<f<<endl;
  cout<<c<<" x "<<g<<endl;
  cout<<d<<" x "<<h<<endl;
  
  
  
  return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   13 |   a="AC";
      |     ^~~~
      |     |
      |     const char*
a.cc:14:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |   b="WA";
      |     ^~~~
      |     |
      |     const char*
a.cc:15:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 |   c="TLE";
      |     ^~~~~
      |     |
      |     const char*
a.cc:16:5: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   16 |   d="RE";
      |     ^~~~
      |     |
      |     const char*
Language: C

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

int main(void)
{
	int i,n,C0,C1,C2,C3;
	char str[100];

	C0 = C1 = C2 = C3 = 0;
	
	scanf("%d",&n);

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

		if(str == "AC"){
			C0++;
		}
		else if(str =="WA"){
			C1++;
		}
		else if(str =="TLE"){
			C2++;
		}
		else if(str =="RE"){
			C3++;
		}
	}

	printf("AC * %d\nWA * %d\nTLE * %d\nRE * %d\n",C0,C1,C2,C3);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:32: error: expected ';' before 'if'
   14 |                 scanf("%s",str)
      |                                ^
      |                                ;
   15 | 
   16 |                 if(str == "AC"){
      |                 ~~
Language: C

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

int main(void)
{
	int i,n,C0,C1,C2,C3;
	char str[100];

	C0 = C1 = C2 = C3 = 0;
	
	scanf("%d",&n;)

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

		if(str == "AC"){
			C0++;
		}
		else if(str =="WA"){
			C1++;
		}
		else if(str =="TLE"){
			C2++;
		}
		else if(str =="RE"){
			C3++;
		}
	}

	printf("AC * %d\nWA * %d\nTLE * %d\nRE * %d\n",C0,C1,C2,C3);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ')' before ';' token
   11 |         scanf("%d",&n;)
      |              ~       ^
      |                      )
main.c:11:24: error: expected ';' before 'for'
   11 |         scanf("%d",&n;)
      |                        ^
      |                        ;
   12 | 
   13 |         for(i=0;i<n;i++){
      |         ~~~
Language: C

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

int main(void)
{
	int i,n,C0,C1,C2,C3;
	char str[100];

	C0 = C1 = C2 = C3 = 0;
	
	scanf("%d",&n)

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

		if(str == "AC"){
			C0++;
		}
		else if(str =="WA"){
			C1++;
		}
		else if(str =="TLE"){
			C2++;
		}
		else if(str =="RE"){
			C3++;
		}
	}

	printf("AC * %d\nWA * %d\nTLE * %d\nRE * %d\n",C0,C1,C2,C3);

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:23: error: expected ';' before 'for'
   11 |         scanf("%d",&n)
      |                       ^
      |                       ;
   12 | 
   13 |         for(i=0;i<n;i++){
      |         ~~~
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
    int n,c[4]={0};
    scanf("%d",&n);
    int char[4][n];
    int i=0;
    scans:
    scanf("%s",&s[i]);
    if(i<n)goto scans;
    i=0;
    countjudge:
    if(strcmp(s[i],"AC")==0)c[0]++;
    else if(strcmp(s[i],"WA")==0)c[1]++;
    else if(strcmp(s[i],"TLE")==0)c[2]++;
    else if(strcmp(s[i],"RE")==0)c[3]++;
    if(i<n)goto countjudge
    i=0;
    answer:
    printf("%d",c[i]);
    if(i<4)goto answer;
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: two or more data types in declaration specifiers
    6 |     int char[4][n];
      |         ^~~~
main.c:6:13: error: expected identifier or '(' before '[' token
    6 |     int char[4][n];
      |             ^
main.c:9:17: error: 's' undeclared (first use in this function)
    9 |     scanf("%s",&s[i]);
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:27: error: expected ';' before 'i'
   17 |     if(i<n)goto countjudge
      |                           ^
      |                           ;
   18 |     i=0;
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,a,w,t,r;
  a=0;w=0;t=0;r=0;
  cin >> n;
  vector<string>s(n);
  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 << 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:17:12: error: expected ';' before '}' token
   17 |         r++
      |            ^
      |            ;
   18 |         }
      |         ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   10 |         if(s(i)=="AC"){
      |            ~^~~
a.cc:12:19: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   12 |         }else if(s(i)=="WA"){
      |                  ~^~~
a.cc:14:19: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   14 |         }else if(s(i)=="TLE"){
      |                  ~^~~
a.cc:17:12: error: expected ';' before '}' token
   17 |         r++
      |            ^
      |            ;
   18 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
    9 |     cin >> s(i);
      |            ~^~~
a.cc:10:13: error: no match for call to '(std::vector<int>) (int&)'
   10 |         if(s(i)=="AC"){
      |            ~^~~
a.cc:12:19: error: no match for call to '(std::vector<int>) (int&)'
   12 |         }else if(s(i)=="WA"){
      |                  ~^~~
a.cc:14:19: error: no match for call to '(std::vector<int>) (int&)'
   14 |         }else if(s(i)=="TLE"){
      |                  ~^~~
a.cc:17:12: error: expected ';' before '}' token
   17 |         r++
      |            ^
      |            ;
   18 |         }
      |         ~
Language: C

#include <iostream>
#include <string.h>
using namespace std;
int main(void){
	int N;
	cin >> N;
	int c1=0;
	int c2=0;
	int c3=0;
	int c4=0;
	for(int i=0; i<N;i++){
		char s[256];
		cin >> s;
		if(!strcmp(s,"AC")){
			c1++;
		}else if(!strcmp(s,"WA")){
			c2++;
		}else if(!strcmp(s,"TLE")){
			c3++;
		}else if(!strcmp(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;
 
}
#include <iostream>
#include <string.h>
using namespace std;
int main(void){
	int N;
	cin >> N;
	int c1=0;
	int c2=0;
	int c3=0;
	int c4=0;
	for(int i=0; i<N;i++){
		char s[256];
		cin >> s;
		if(!strcmp(s,"AC")){
			c1++;
		}else if(!strcmp(s,"WA")){
			c2++;
		}else if(!strcmp(s,"TLE")){
			c3++;
		}else if(!strcmp(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:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

clude <iostream>
using namespace std;

int main() {
	string S[100000];
	char s[254];
	int N;
	int C[4] = { 0 };
	cin >> N;
	for (int i = 0; i < N; i++) {
		cin >> s;
		S[i] = s;
		if (S[i] == "AC") C[0]++;
		else if (S[i] == "WA")C[1]++;
		else if (S[i] == "TLE")C[2]++;
		else if (S[i] == "RE")C[3]++;
	}

	cout << "AC x " << C[0] << '\n';
	cout << "WA x " << C[1] << '\n';
	cout << "TLE x " << C[2] << '\n';
	cout << "RE x " << C[3] << '\n';

	return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <iostream>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string S[100000];
      |         ^~~~~~
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N;
      |         ^~~
a.cc:12:17: error: 'S' was not declared in this scope
   12 |                 S[i] = s;
      |                 ^
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << "AC x " << C[0] << '\n';
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n
  int s[4]={0,0,0,0};
  string str[n];
  for(int i=0;i<n;i++)
  {
    cin>>str[i];
    cout<<endl;
  }
  for(int i=0;i<n;i++)
  {
    if(str[i]=="AC")
      s[0]++;
    if(str[i]=="WA")
      s[1]++;
    if(str[i]=="TLE")
      s[2]++;
    if(str[i]=="RE")
      s[3]++;
  }
  cout<<"AC x "<<s[0]<<endl;
    cout<<"WA x "<<s[1]<<endl;
  cout<<"TLE x "<<s[2]<<endl;
  cout<<"RE x "<<s[3]<<endl;
}
    
    
    
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'int'
    6 |   cin>>n
      |         ^
      |         ;
    7 |   int s[4]={0,0,0,0};
      |   ~~~    
a.cc:17:7: error: 's' was not declared in this scope
   17 |       s[0]++;
      |       ^
a.cc:19:7: error: 's' was not declared in this scope
   19 |       s[1]++;
      |       ^
a.cc:21:7: error: 's' was not declared in this scope
   21 |       s[2]++;
      |       ^
a.cc:23:7: error: 's' was not declared in this scope
   23 |       s[3]++;
      |       ^
a.cc:25:18: error: 's' was not declared in this scope
   25 |   cout<<"AC x "<<s[0]<<endl;
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,c=0,c1=0,c2=0,c3=0;
  string str;
  cin>>n;
  for(int i=1;i<=n;i++){
    getline(cin,str);
    if(str=="AC")
      c++;
    else if(str=="WA")
      c1++;
    else if(str=="TLE")
      c2++;
    else if(str=="RE")
      c4++;
    str.clear();
  }
  cout<<"AC" "x" c<<"\n";
  cout<<"WA" "x" c1<<"\n";
  cout<<"TLE" "x" c2<<"\n";
  cout<<"RE" "x" c3<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'c4' was not declared in this scope; did you mean 'c3'?
   16 |       c4++;
      |       ^~
      |       c3
a.cc:19:17: error: expected ';' before 'c'
   19 |   cout<<"AC" "x" c<<"\n";
      |                 ^~
      |                 ;
a.cc:20:17: error: expected ';' before 'c1'
   20 |   cout<<"WA" "x" c1<<"\n";
      |                 ^~~
      |                 ;
a.cc:21:18: error: expected ';' before 'c2'
   21 |   cout<<"TLE" "x" c2<<"\n";
      |                  ^~~
      |                  ;
a.cc:22:17: error: expected ';' before 'c3'
   22 |   cout<<"RE" "x" c3<<"\n";
      |                 ^~~
      |                 ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  string s;
  int cAC = 0;
  int cRE = 0;
  int cTLE = 0;
  int cWA = 0;
  while(t--)
  {
    cin>>s;
    if( s.compare("AC") == 0 )
    {
      cAC++;
      continue;
    }
    if(s.compare("TLE") == 0)
      {
      cAC++;
      continue;
    }
    if(s.compare("WA") == 0)
     {
      cWA++;
      continue;
    }
    if(s.compare("RE") == 0)
     {
      cRE++;
      continue;
    }
  }
  
  cout<<"AC"<<" "<<"x"<<" "<<cAC<<"\n";
  cout<<"WA"<<" "<<"x"<<" "<<cWA<<"\n";
  cout<<"TLE"<<" "<<"x"<<" "<<cTLE<<"\n";
  cout<<"RE"<<" "<<"x"<<" "<<cRE;

Compiler output:
a.cc: In function 'int main()':
a.cc:40:34: error: expected '}' at end of input
   40 |   cout<<"RE"<<" "<<"x"<<" "<<cRE;
      |                                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  string s;
  int cAC = 0;
  int cRE = 0;
  int cTLE = 0;
  int cWA = 0;
  while(t--)
  {
    cin>>s;
    if( s.compare("AC") == 0 )
    {
      cAC++;
      continue;
    }
    if(s.compare("TLE") == 0)
      {
      cAC++;
      continue;
    }
    if(s.compare("WA") == 0)
     {
      cWA++;
      continue;
    }
    if(s.compare("RE") == 0)
     {
      cRE++;
      continue;
    }
  }
  
  cout<<"AC"<<" "<<x<<" "<<cAC<<"\n";
  cout<<"WA"<<" "<<x<<" "<<cWA<<"\n";
  cout<<"TLE"<<" "<<x<<" "<<cTLE<<"\n";
  cout<<"RE"<<" "<<x<<" "<<cRE;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: 'x' was not declared in this scope
   37 |   cout<<"AC"<<" "<<x<<" "<<cAC<<"\n";
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  string s;
  int cAC = 0;
  int cRE = 0;
  int cTLE = 0;
  int cWA = 0;
  while(t--)
  {
    cin>>s;
    if( s.compare("AC") == 0 )
    {
      cAC++;
      continue;
    }
    if(s.compare("TLE") == 0)
      {
      cAC++;
      continue;
    }
    if(s.compare("WA") == 0)
     {
      cWA++;
      continue;
    }
    if(s.compare("RE") == 0)
     {
      cRE++;
      continue;
    }
  }
  
  cout<<"AC"<<" "<<x<<" "<<cAC<<"\n";
  cout<<"WA"<<" "<<x<<" "<<cWA<<"\n";
  cout<<"TLE"<<" "<<x<<" "<<cTLE<<"\n";
  cout<<"RE"<<" "<<x<<" "<<cRE;
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: 'x' was not declared in this scope
   37 |   cout<<"AC"<<" "<<x<<" "<<cAC<<"\n";
      |                    ^
a.cc:40:32: error: expected '}' at end of input
   40 |   cout<<"RE"<<" "<<x<<" "<<cRE;
      |                                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long ac=0,wa=0,tle=0,re=0,n=0;
  cin>>n;
  string inp;
  for(int i=0;i<n;i++){
  cin>>inp;
    if(inp=="AC"){
      ac++;
    }
    if(inp=="WA"){
      wa++;
    }
    if(inp=="TLE"){
    tle++;
    }
    if(inp="RE"){
    re++;
    }
  }
  cout<<"AC x "<<ac<<"\n";
  cout<<"WA x "<<wa<<"\n";
  cout<<"TLE x "<<tle<<"\n";
  cout<<"RE x "<<re<<"\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: could not convert 'inp.std::__cxx11::basic_string<char>::operator=(((const char*)"RE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |     if(inp="RE"){
      |        ~~~^~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: Java

import java.util.*;
public class Main{
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> test_case = new ArrayList<>();
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            test_case.add(sc.nextLine());
        }
        Map<String,Integer> sum = new HashMap<>();
        sum = solve(test_case);

        System.out.println("AC x " + sum.get("AC") + "¥n"
                + "WA x " + sum.get("WA") + "¥n"
                + "TLE x " + sum.get("TLE" + "¥n"
                + "RE x " + sum.get("RE")
                ));
    }

    public static HashMap<String,Integer> solve (ArrayList<String> test_case){
        Map<String,Integer> sum = new HashMap<>();
        int ac = 0;
        int tle = 0;
        int wa = 0;
        int re = 0;
        for (String test : test_case) {
            switch(test){
                case "AC":
                    ac++;
                    sum.put("AC",ac);
                    break;
                case "TLE":
                    tle++;
                    sum.put("tle",tle);
                    break;
                case "WA":
                    wa++;
                    sum.put("WA",wa);
                    break;
                case "RE":
                    re++;
                    sum.put("RE",re);

            }
        }
        return sum;
    }

}

Compiler output:
Main.java:46: error: incompatible types: Map<String,Integer> cannot be converted to HashMap<String,Integer>
        return sum;
               ^
1 error
Language: C++

#include<stdio.h>
int main(void)
{
  int a,b;
  int cnt[4]={0};
  
   while((b=getchar())!=EDF){
     switch(b){
       case 'AT': cnt[0]++; break;
       case 'WA': cnt[1]++; break;
       case 'TLE': cnt[2]++; break;
       case 'RE': cnt[3]++; break;
     }
   }
  printf("AC×%d",cnt[0]);
  printf("WA×%d",cnt[1]);
  printf("TLE×%d",cnt[2]);
  printf("RE×%d",cnt[3]);
  
  return 0;
}


Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |        case 'AT': cnt[0]++; break;
      |             ^~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |        case 'WA': cnt[1]++; break;
      |             ^~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |        case 'TLE': cnt[2]++; break;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |        case 'RE': cnt[3]++; break;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:25: error: 'EDF' was not declared in this scope; did you mean 'EOF'?
    7 |    while((b=getchar())!=EDF){
      |                         ^~~
      |                         EOF
Language: C++

#include<stdio.h>
int main(void)
{
  int a,b;
  int cnt[4]={0};
  
   while((b=getchar())!=EDF){
     switch(b){
       case 'AT': cnt[0]++; break;
       case 'WA': cnt[1]++; break;
       case 'TLE': cnt[2]++; break;
       case 'RE': cnt[3]++; break;
     }
   }
  printf("AC×%d",cnt[0]);
  printf("WA×%d",cnt[1]);
  printf("TLE×%d",cnt[2]);
  printf("RE×%d",cnt[3]);
  
  return 0;
}

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |        case 'AT': cnt[0]++; break;
      |             ^~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |        case 'WA': cnt[1]++; break;
      |             ^~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |        case 'TLE': cnt[2]++; break;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |        case 'RE': cnt[3]++; break;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:25: error: 'EDF' was not declared in this scope; did you mean 'EOF'?
    7 |    while((b=getchar())!=EDF){
      |                         ^~~
      |                         EOF
Language: Java

import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int ac = 0, wa = 0, tle = 0, re = 0;
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			if (s.equals("AC")) ac++;
			if (s.equals("WA")) wa++;
			if (s.equals("TLE")) tle++;
			if (s.equals("RE")) re++;
		}
		System.out.format("AC x %d\n", ac);
		System.out.format("WA x %d\n", wa);
		System.out.format("TLE x %d\n", tle);
		System.out.format("RE x %d\n", re);
	}

}



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

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

int main(void) {
    int n; scanf("%d",&n);
    map<string, int> mp;
    for(int i=1;i<=n;i++){
        string s; cin >> s;
        mp[s]++;
    printf("AC x %d\nWA x %d\nTLE x %d\nRE x %d", mp["AC"], mp["WA"], mp["TLE"], mp["RE"]);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:6:16: note: to match this '{'
    6 | int main(void) {
      |                ^
Language: Java

public class Main {
    
    static final String keyAc = "AC";
    
    static final String keyWa = "WA";
    
    static final String keyTle = "TLE";
    
    static final String keyRe = "RE";
    
    static final String cntLiteral = "×";
    
    
    public static void main(String[] args) {
        
        //　入力された値を受け取る
        Scanner scanner = new Scanner(System.in);
        
        List<String> list = new ArrayList<>();
        
        int cntNum = Integer.parseInt(scanner.nextLine());
        
        for (int i = 0; i < cntNum ; i++) {
            String getData = scanner.nextLine();
            list.add(getData);
        }
        
        // 保持した値をイコールズメソッドで比較
        
        int cntAc = 0;
        
        int cntWa = 0;
        
        int cntTle = 0;
        
        int cntRe = 0;
        
        
        for(int cntupNum = 0; cntupNum< cntNum; cntupNum++){  
                
            switch(list.get(cntupNum)) {
                case keyAc:
                    cntAc++;
                    break;
                    
                case keyWa:
                    
                    cntWa++;
                    break;
                    
                case keyTle:
                    
                    cntTle++;
                    break;
                    
                case keyRe:
                    
                    cntRe++;
                    break;
                    
                
            }
            
            
        
        }

        System.out.println(keyAc+cntLiteral+cntAc);
        
        System.out.println(keyWa+cntLiteral+cntWa);
        
        System.out.println(keyTle+cntLiteral+cntTle);
        
        System.out.println(keyRe+cntLiteral+cntRe);
    }

}


Compiler output:
Main.java:17: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:17: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
Main.java:19: error: cannot find symbol
        List<String> list = new ArrayList<>();
        ^
  symbol:   class List
  location: class Main
Main.java:19: error: cannot find symbol
        List<String> list = new ArrayList<>();
                                ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

import java.io.IOException;
import java.util.Scanner;

public class Practice01_01 {
	public static void main(String[] args) throws IOException{
		Scanner scan = new Scanner(System.in);
		int ac = 0;
		int wa = 0;
		int tle = 0;
		int re = 0;
		int cnt = scan.nextInt();
		String result[] =new String[cnt];
		for(int i = 0; i <= cnt-1;i++) {
			result[i] = scan.next();
		}
		for(int i = 0;i < result.length;i++) {
			if(result[i].equals("AC")) {
				ac += 1;
			}else if(result[i].equals("WA")) {
				wa += 1;
			}else if(result[i].equals("TLE")) {
				tle += 1;
			}else if(result[i].equals("RE")) {
				re += 1;
			}
		}
		System.out.println("AC × "+ac);
		System.out.println("WA × "+wa);
		System.out.println("TLE × "+tle);
		System.out.println("RE × "+re);
	}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.*;
public class video
{   
static class FastReader 	
{		
BufferedReader br; 		
StringTokenizer st; 		
public FastReader() 		
{ 			
br = new BufferedReader(new	InputStreamReader(System.in)); 		
} 		
String next() 		
{ 			
while (st == null || !st.hasMoreElements()) 			
{ 				
try				
{ 					
st = new StringTokenizer(br.readLine()); 				
} 				
catch (IOException e) 				
{ 					
e.printStackTrace(); 				
} 			
} 			
return st.nextToken(); 		
} 
		
int nextInt() 		
{ 			
return Integer.parseInt(next()); 		
} 
		
long nextLong() 		
{ 			
return Long.parseLong(next()); 		
} 
		
double nextDouble() 		
{ 			
return Double.parseDouble(next()); 		
		 } 
		
		String nextLine() 		
		 { 			
String str = ""; 			
			 try			
			{ 				
				 str = br.readLine(); 			
			 } 			
			 catch (IOException e) 			
			 { 				
				 e.printStackTrace(); 			
			 } 			
			 return str; 		
		 } 	
	 }
	
	 public static void main(String[] args){
		 FastReader scan=new FastReader();
		  int t = scan.nextInt();
		  HashMap<String,Integer> map = new HashMap<>();
		  for(int i=0;i<t;i++){
				String s = scan.next();
					if(map.containsKey(s))map.put(s,map.get(s)+1);
					else map.put(s,1);
			}
		if(map.containsKey("AC"))System.out.println("AC x " + map.get("AC"));
		else System.out.println("AC x " + 0);
		if(map.containsKey("WA"))System.out.println("WA x " + map.get("WA"));
		else System.out.println("WA x " + 0);
		if(map.containsKey("TLE"))System.out.println("TLE x " + map.get("TLE"));
		else System.out.println("TLE x " + 0);
		if(map.containsKey("RE"))System.out.println("RE x " + map.get("RE"));
		else System.out.println("RE x " + 0);
		
	} 
} 


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

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

int main() {
	int n, c0=0, c1=0, c2=0, c3=0;
	cin >> n;
    str s;
	for (int i = 0; i < n; i++) {
        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:9:5: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |     str s;
      |     ^~~
      |     std
a.cc:11:16: error: 's' was not declared in this scope
   11 |         cin >> s;
      |                ^
Language: C++

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

int main() {
	int n, c0=0, c1=0, c2=0, c3=0;
	cin >> n;
    str si;
	for (int i = 0; i < n; i++) {
        cin >> si;
		if(si=="AC") c0++;
        if(si=="WA") c1++;
        if(si=="TLE") c2++;
        if(si=="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:9:5: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |     str si;
      |     ^~~
      |     std
a.cc:11:16: error: 'si' was not declared in this scope; did you mean 'i'?
   11 |         cin >> si;
      |                ^~
      |                i
Language: C

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

int main(void){
  int N;
  int i1 = 0;
  int i2 = 0;
  int i3 = 0;
  int i4 = 0;
  scanf("%d",%N);
  for(int i = 0; i < N; i++){
    char str[3];
    scanf("%s", str);
    if(strcmp("AC", str) == 0){
      i1++;
    }else if(strcmp("WA", str) == 0){
      i2++;
    }else if(strcmp("TLE", str) == 0){
      i3++;
    }else if(strcmp("RE", str) == 0){
      i4++;
    }
  }
  printf("AC x %d\n",i1);
  printf("WA x %d\n",i2);
  printf("TLE x %d\n",i3);
  printf("RE x %d\n",i4);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before '%' token
   10 |   scanf("%d",%N);
      |              ^
Language: C++

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

int main() {
  int n,c1=0,c2=0,c3=0,c4=0;
  string s,t;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> s;
    t=s;
    if(t=="AC"){
      c1++;
    }
    else if(t=="WA"){
      c2++;
    }
    else if(t=="TLE"){
      c3++;
    }
    else(t=="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:20:18: error: expected ';' before '{' token
   20 |     else(t=="RE"){
      |                  ^
      |                  ;
a.cc:20:11: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   20 |     else(t=="RE"){
      |         ~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

x#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, a, b) for (int i = a; i < b; i++)
typedef long long ll;
using namespace std;

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | x#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'x' does not name a type
    1 | x#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   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 | x#include <bits/stdc++.h>
a.cc:10:3: error: 'vector' was not declared in this scope
   10 |   vector<int> x(4);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | x#include <bits/stdc++.h>
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> x(4);
      |          ^~~
a.cc:12:5: error: 'string' was not declared in this scope
   12 |     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 | x#include <bits/stdc++.h>
a.cc:13:12: error: 's' was not declared in this scope
   13 |     cin >> s;
      |            ^
a.cc:14:19: error: 'x' was not declared in this scope
   14 |     if(s == "AC") x.at(0)++;
      |                   ^
a.cc:15:24: error: 'x' was not declared in this scope
   15 |     else if(s == "WA") x.at(1)++;
      |                        ^
a.cc:16:25: error: 'x' was not declared in this scope
   16 |     else if(s == "TLE") x.at(2)++;
      |                         ^
a.cc:17:24: error: 'x' was not declared in this scope
   17 |     else if(s == "RE") x.at(3)++;
      |                        ^
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout << "AC x " << x.at(0) << endl;
      |   ^~~~
a.cc:19:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:22: error: 'x' was not declared in this scope
   19 |   cout << "AC x " << x.at(0) << endl;
      |                      ^
a.cc:19:33: error: 'endl' was not declared in this scope
   19 |   cout << "AC x " << x.at(0) << endl;
      |                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | x#include <bits/stdc++.h>
Language: Java

import java.util.Scanner; 

public class Main_2 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int a = 0;
        int b = 0;
        int c = 0;
        int d = 0;

        for(int i = 0; i<N ;i++){
            String e = sc.next();
            if(e.equals("AC")) a++;
            if(e.equals("WA")) b++;
            if(e.equals("TLE")) c++;
            if(e.equals("RE")) d++;
        }

        System.out.println("AC x "+a);
        System.out.println("WA x "+b);
        System.out.println("TLE x "+c);
        System.out.println("RE x "+d);       

    }
}

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,d1,d2,d3,d4;
  	string s;
  	cin >> n;
    for(i=1;i<=n;i++)
    {
    	cin >> s;
      if(s=="AC") d1++;
      if(s=="WA") d2++;
      if(s=="TLE") d3++;
      if(s=="RE") d4++;
    }
  	cout << "AC x " << d1 <<  endl;
  cout << "WA x " << d2 << endl;
  cout << "TLE x " << d3 << endl;
  cout << "RE x " << d4 << endl;

}


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

#include <bits/stdc++.h>
using namespace std;
 
main () {
    int n; cin >> n;
    int ans[4] = {};

    string temp;
    while (n--){
        cin >> temp;
        switch (temp){
        case "AC":
            a[0]++;
            break;
        
        case "WA":
            a[1]++;
            break;

        case "TLE":
            a[2]++;
            break;
        
        default:
            a[3]++;
            break;
        }
    }
    cout << "AC x " << a[0] << endl;
    cout << "WA x " << a[1] << endl;
    cout << "TLE x " << a[2] << endl;
    cout << "RE x " << a[3];
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:17: error: switch quantity not an integer
   11 |         switch (temp){
      |                 ^~~~
a.cc:13:13: error: 'a' was not declared in this scope
   13 |             a[0]++;
      |             ^
a.cc:29:24: error: 'a' was not declared in this scope
   29 |     cout << "AC x " << a[0] << endl;
      |                        ^
Language: C

int n;
scanf("%d", n);
char s[n-1];
scanf("%s", s);
printf("AC x 10");
printf("WA x 0");
printf("TLE x 0");
printf("RE x 0");


Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d", n);
      |       ^~~~
main.c:2:13: error: expected declaration specifiers or '...' before 'n'
    2 | scanf("%d", n);
      |             ^
main.c:3:6: error: variably modified 's' at file scope
    3 | char s[n-1];
      |      ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%s", s);
      |       ^~~~
main.c:4:13: error: expected declaration specifiers or '...' before 's'
    4 | scanf("%s", s);
      |             ^
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | printf("AC x 10");
      |        ^~~~~~~~~
main.c:6:8: error: expected declaration specifiers or '...' before string constant
    6 | printf("WA x 0");
      |        ^~~~~~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("TLE x 0");
      |        ^~~~~~~~~
main.c:8:8: error: expected declaration specifiers or '...' before string constant
    8 | printf("RE x 0");
      |        ^~~~~~~~
Language: C

int N;
scanf("%d", N);
char S[N-1];
scanf("%s", s);
printf("AC x 10");
printf("WA x 0");
printf("TLE x 0");
printf("RE x 0");


Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d", N);
      |       ^~~~
main.c:2:13: error: expected declaration specifiers or '...' before 'N'
    2 | scanf("%d", N);
      |             ^
main.c:3:6: error: variably modified 'S' at file scope
    3 | char S[N-1];
      |      ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%s", s);
      |       ^~~~
main.c:4:13: error: unknown type name 's'
    4 | scanf("%s", s);
      |             ^
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | printf("AC x 10");
      |        ^~~~~~~~~
main.c:6:8: error: expected declaration specifiers or '...' before string constant
    6 | printf("WA x 0");
      |        ^~~~~~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("TLE x 0");
      |        ^~~~~~~~~
main.c:8:8: error: expected declaration specifiers or '...' before string constant
    8 | printf("RE x 0");
      |        ^~~~~~~~
Language: C

int N;
scanf("%d", N);
char S[N-1];
scanf("%s", s);
printf("AC x 10");
printf("WA x 0");
printf("TLE x 0");
printf("RE x 0");

Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d", N);
      |       ^~~~
main.c:2:13: error: expected declaration specifiers or '...' before 'N'
    2 | scanf("%d", N);
      |             ^
main.c:3:6: error: variably modified 'S' at file scope
    3 | char S[N-1];
      |      ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%s", s);
      |       ^~~~
main.c:4:13: error: unknown type name 's'
    4 | scanf("%s", s);
      |             ^
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | printf("AC x 10");
      |        ^~~~~~~~~
main.c:6:8: error: expected declaration specifiers or '...' before string constant
    6 | printf("WA x 0");
      |        ^~~~~~~~
main.c:7:8: error: expected declaration specifiers or '...' before string constant
    7 | printf("TLE x 0");
      |        ^~~~~~~~~
main.c:8:8: error: expected declaration specifiers or '...' before string constant
    8 | printf("RE x 0");
      |        ^~~~~~~~
Language: Java

import java.util.*;
 
class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    Map<String, Integer> countMap = new HashMap<>();
    for (int i = 0; i < N; i++) {
      String s = sc.next();
      countMap.merge(s, 1, Integer::sum);
    }
    String verdicts = {"AC", "WA", "TLE", "RE"};
    for (String verdict : verdicts) {
	    System.out.println(verdict + " x " + countMap.get(verdict, 0));
    }
  }
}

Compiler output:
Main.java:12: error: illegal initializer for String
    String verdicts = {"AC", "WA", "TLE", "RE"};
                      ^
Main.java:13: error: for-each not applicable to expression type
    for (String verdict : verdicts) {
                          ^
  required: array or java.lang.Iterable
  found:    String
Main.java:14: error: method get in interface Map<K,V> cannot be applied to given types;
	    System.out.println(verdict + " x " + countMap.get(verdict, 0));
	                                                 ^
  required: Object
  found:    String,int
  reason: actual and formal argument lists differ in length
  where K,V are type-variables:
    K extends Object declared in interface Map
    V extends Object declared in interface Map
3 errors
Language: C

  int n;
  int ac,wa,re = 0;
  int TLE = 0;
  
  char *a = "AC";
  char *b = "WA";
  char *c = "TLE";
  char *d = "RE";
  char s[255];
  scanf("%d",&n);
  for(int i=0;i<n;i++){
    scanf("%s",s);
    if (strcmp(s,a)==0) {
      ac+=1;
    } else if (strcmp(s,b)==0) {
      wa+=1;
    } else if (strcmp(s,c)==0) {
      tle+=1;
    } else {
      re+=1;
    }
  }
  printf("AC x %d\n",ac);
  printf("WA x %d\n",wa);
  printf("TLE x %d\n",tle);
  printf("RE x %d\n",re);
  return 0;
}
    

Compiler output:
main.c:10:9: error: expected declaration specifiers or '...' before string constant
   10 |   scanf("%d",&n);
      |         ^~~~
main.c:10:14: error: expected declaration specifiers or '...' before '&' token
   10 |   scanf("%d",&n);
      |              ^
main.c:11:3: error: expected identifier or '(' before 'for'
   11 |   for(int i=0;i<n;i++){
      |   ^~~
main.c:11:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 |   for(int i=0;i<n;i++){
      |                ^
main.c:11:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   11 |   for(int i=0;i<n;i++){
      |                    ^~
main.c:23:10: error: expected declaration specifiers or '...' before string constant
   23 |   printf("AC x %d\n",ac);
      |          ^~~~~~~~~~~
main.c:23:22: error: expected declaration specifiers or '...' before 'ac'
   23 |   printf("AC x %d\n",ac);
      |                      ^~
main.c:24:10: error: expected declaration specifiers or '...' before string constant
   24 |   printf("WA x %d\n",wa);
      |          ^~~~~~~~~~~
main.c:24:22: error: expected declaration specifiers or '...' before 'wa'
   24 |   printf("WA x %d\n",wa);
      |                      ^~
main.c:25:10: error: expected declaration specifiers or '...' before string constant
   25 |   printf("TLE x %d\n",tle);
      |          ^~~~~~~~~~~~
main.c:25:23: error: unknown type name 'tle'
   25 |   printf("TLE x %d\n",tle);
      |                       ^~~
main.c:26:10: error: expected declaration specifiers or '...' before string constant
   26 |   printf("RE x %d\n",re);
      |          ^~~~~~~~~~~
main.c:26:22: error: expected declaration specifiers or '...' before 're'
   26 |   printf("RE x %d\n",re);
      |                      ^~
main.c:27:3: error: expected identifier or '(' before 'return'
   27 |   return 0;
      |   ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C++

#include <bits/stdc++.h>
 
#define mp make_pair
#define eb emplace_back
#define ff first
#define ss second
 
using namespace std;
 
typedef long long ll;
typedef unsigned long long ull;
 
const int MAXN = 100;
//#define int long long
const int INF = 1e9;
 
signed main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
 
	int n;
  cin >> n;
  map<string, int> m;
  for (int i = 0; i < n; i++){
  	string s;
    cin >> s;
    if (!m.count(s)) m[s] = 0;
    ms[s]++;
  }
  if (!m.count("AC")) m["AC"] = 0;
  if (!m.count("WA")) m["WA"] = 0;
  if (!m.count("TLE")) m["TLE"] = 0;
  if (!m.count("RE")) m["RE"] = 0;
  cout << "AC x " << m["AC"] << '\n';
  cout << "WA x " << m["WA"] << '\n';
  cout << "TLE x " << m["TLE"] << '\n';
  cout << "RE x " << m["RE"] << '\n';
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:5: error: 'ms' was not declared in this scope; did you mean 's'?
   29 |     ms[s]++;
      |     ^~
      |     s