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

#include <bits/stdc++.h>

int main(){
    int N,
        ac = 0,
        wa = 0,
        tle = 0,
        re = 0;
    string s[100000];
    cin >> N;
    for (int i = 0; i < N; i++){
        cin >> s[i];
        if (s[i] == "AC"){
            ac++;
        }else if(s[i] == "WA"){
            wa++;
        }else if(s[i] == "TLE"){
            tle++;
        }else if(s[i] == "RE"){
            re++;
        }
    }
    std::cout << "AC x " << ac << endl;
    std::cout << "WA x " << wa << endl;
    std::cout << "TLE x " << tle << endl;
    std::cout << "RE x " << re << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'string' was not declared in this scope
    9 |     string s[100000];
      |     ^~~~~~
a.cc:9:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 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/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     cin >> N;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:16: error: 's' was not declared in this scope
   12 |         cin >> s[i];
      |                ^
a.cc:23:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |     std::cout << "AC x " << ac << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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 i;
	int C0 = 0, C1 = 0, C2 = 0, C3 = 0;
	cin >> N ;
	char A[N][4];
	for (i = 0; i < N;i++) {
		cin >> A[i];
	}
	for (i = 0; i < N; i++) {
	
		if (A[i][0]=="A") {
			C0++;
		
		}
		else if (A[i][0]=="W") {
			C1++;
		}
		else if(A[i][0]=="T")
		{
			C2++;
		}
		else if (A[i][0]=="R") {
			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: In function 'int main()':
a.cc:17:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if (A[i][0]=="A") {
      |                     ~~~~~~~^~~~~
a.cc:21:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                 else if (A[i][0]=="W") {
      |                          ~~~~~~~^~~~~
a.cc:24:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 else if(A[i][0]=="T")
      |                         ~~~~~~~^~~~~
a.cc:28:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |                 else if (A[i][0]=="R") {
      |                          ~~~~~~~^~~~~
Language: C

複数行どうやってとるねん！

#include <string.h>
#include <stdio.h>
int main(void)
{
	int n;
	char str[256+1];
  	scanf ("%d",&n);
	while (scanf("%256s", str) == 1) { /* 読み込めるあいだ繰り返す */
		s[("[%s]\n", str); /* ひとつずつ関数に渡す */
	}
	return 0;
}

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

int main()
{
	int n;
	char *str[100000] = {0};

  // 文字列の入力
	scanf("%d",&n);
	for(int i = 0; i < n; i++) scanf("%s", &str[i]);
    { 
		i++;
	}    

Compiler output:
main.c:1:27: error: expected ';' before 'typedef'
    1 | 複数行どうやってとるねん！
      |                           ^
      |                           ;
main.c: In function 'main':
main.c:11:17: error: 's' undeclared (first use in this function)
   11 |                 s[("[%s]\n", str); /* ひとつずつ関数に渡す */
      |                 ^
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:34: error: expected ']' before ';' token
   11 |                 s[("[%s]\n", str); /* ひとつずつ関数に渡す */
      |                                  ^
      |                                  ]
main.c:11:35: error: expected ';' before '}' token
   11 |                 s[("[%s]\n", str); /* ひとつずつ関数に渡す */
      |                                   ^
      |                                   ;
   12 |         }
      |         ~                          
main.c: At top level:
main.c:19:5: error: redefinition of 'main'
   19 | int main()
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int(void)'
    5 | int main(void)
      |     ^~~~
main.c: In function 'main':
main.c:28:17: error: 'i' undeclared (first use in this function)
   28 |                 i++;
      |                 ^
main.c:29:9: error: expected declaration or statement at end of input
   29 |         }
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,i;
  cin>>n;
  char arr1[]={"AC","WA","TLE","RE"};
  int arr2[]={0,0,0,0};
  char r;
  for(i=0;i<n;i++){
    cin>>r;
    if(r=="AC")arr2[0]++;
    else if(r=="WA")arr2[1]++;
    else if(r=="TLE")arr2[2]++;
    else if(r=="RE") arr2[3]++;
  }
  for(i=0;i<arr1.size();i++){
    cout<<arr1[i]<<" "<<"x"<<" "<<arr2[i];
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: too many initializers for 'char []'
    6 |   char arr1[]={"AC","WA","TLE","RE"};
      |                                    ^
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(r=="AC")arr2[0]++;
      |        ~^~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(r=="WA")arr2[1]++;
      |             ~^~~~~~
a.cc:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if(r=="TLE")arr2[2]++;
      |             ~^~~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(r=="RE") arr2[3]++;
      |             ~^~~~~~
a.cc:16:18: error: request for member 'size' in 'arr1', which is of non-class type 'char [1]'
   16 |   for(i=0;i<arr1.size();i++){
      |                  ^~~~
Language: C++

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

using namespace std;
using ll = long long;
ll gcd(ll a, ll b);
int main(){
cin.tie(0);
string k;
int n,result[4]={0,0,0,0};
  cin >>n;
  for(int i=1;i<=n;i++){
    cin >>k;
    if(k=="AC")result[0]++;
    else if(k=="WA")result[1]++;
    else if(k=="TLE")reslut[2]++;
    else if(k=="RE")result[3]++;
  }
cout <<"AC x "<<result[0]<<endl;
  cout <<"WA x "<<result[1]<<endl;
  cout <<"TLE x "<<result[2]<<endl;
  cout <<"RE x "<<result[3]<<endl;
return 0;
}






ll gcd(ll a, ll b){

   if (a%b == 0)
   {
       return(b);
   }
   else
   {
       return(gcd(b, a%b));
   }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: 'reslut' was not declared in this scope; did you mean 'result'?
   18 |     else if(k=="TLE")reslut[2]++;
      |                      ^~~~~~
      |                      result
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n
       cin.ignore();
    int a=0,w=0,t=0,r=0;
    while(n--)
    {
        string st;
        getline(cin,st);
        if(st=="AC") a++;
        //else if(t=="AC") a++;
        if(st=="WA") w++;
        if(st=="TLE") t++;
        if(st=="RA") r++;
    }
    cout<<"AC "<<"x "<<a<<endl;
    cout<<"WA "<<"x "<<w<<endl;
    cout<<"TLE "<<"x "<<t<<endl;
    cout<<"RA "<<"x "<<r<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cin'
    6 |     cin>>n
      |           ^
      |           ;
    7 |        cin.ignore();
      |        ~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void)
{
  int N;
  cin>>N;
  string inp;
  int AC,WA,TLE,RE;
  for(int i=0;i<N;i++)
  {
    cin>>inp;
    if((inp.compare("AC"))
       {
      	AC++;
       }  
    if((inp.compare("WA"))
       {
       WA++;
       } 
    if((inp.compare("TLE")){
      TLE++;}
    if((inp.compare("RE")){
      RE++;}
  }
  
  cout<<"AC x "<<AC<<endl;
  cout<<"WA x "<<WA<<endl;
  cout<<"TLE x "<<TLE<<endl;
  cout<<"RE x "<<RE<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ')' before '{' token
   13 |     if((inp.compare("AC"))
      |       ~                   ^
      |                           )
   14 |        {
      |        ~                   
a.cc:25:3: error: expected primary-expression before '}' token
   25 |   }
      |   ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void)
{
  int N;
  cin>>N;
  string inp;
  int AC,WA,TLE,RE;
  for(int i=0;i<n;i++)
  {
    cin>>inp;
    if((inp.compare("AC"))
       {
      	AC++;
       }  
    if((inp.compare("WA"))
       {
       WA++;
       } 
    if((inp.compare("TLE")){
      TLE++;}
    if((inp.compare("RE")){
      RE++;}
  }
  
  cout<<"AC x "<<AC<<endl;
  cout<<"WA x "<<WA<<endl;
  cout<<"TLE x "<<TLE<<endl;
  cout<<"RE x "<<RE<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'n' was not declared in this scope
   10 |   for(int i=0;i<n;i++)
      |                 ^
a.cc:13:27: error: expected ')' before '{' token
   13 |     if((inp.compare("AC"))
      |       ~                   ^
      |                           )
   14 |        {
      |        ~                   
a.cc:25:3: error: expected primary-expression before '}' token
   25 |   }
      |   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,i;
  cin>>n;
  char arr1[4]={"AC","WA","TLE","RE"};
  int arr2[4]={0,0,0,0};
  char r;
  for(i=0;i<n;i++){
    cin>>r;
    if(r=="AC")arr2[0]++;
    else if(r=="WA")arr2[1]++;
    else if(r=="TLE")arr2[2]++;
    else if(r=="RE") arr2[3]++;
  }
  for(i=0;i<4;i++){
    cout<<arr1[i]<<" "<<"x"<<" "<<arr2[i];
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: too many initializers for 'char [4]'
    6 |   char arr1[4]={"AC","WA","TLE","RE"};
      |                                     ^
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(r=="AC")arr2[0]++;
      |        ~^~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(r=="WA")arr2[1]++;
      |             ~^~~~~~
a.cc:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if(r=="TLE")arr2[2]++;
      |             ~^~~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(r=="RE") arr2[3]++;
      |             ~^~~~~~
Language: C++

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

int main() {

	int N=3;
	char A[100000][4];
	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:17:27: warning: multi-character character constant [-Wmultichar]
   17 |                 if (A[i]=='AC') {
      |                           ^~~~
a.cc:21:32: warning: multi-character character constant [-Wmultichar]
   21 |                 else if (A[i]=='WA') {
      |                                ^~~~
a.cc:24:31: warning: multi-character character constant [-Wmultichar]
   24 |                 else if(A[i]=='TLE')
      |                               ^~~~~
a.cc:28:32: warning: multi-character character constant [-Wmultichar]
   28 |                 else if (A[i]=='RE') {
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:17:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if (A[i]=='AC') {
      |                     ~~~~^~~~~~
a.cc:21:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                 else if (A[i]=='WA') {
      |                          ~~~~^~~~~~
a.cc:24:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 else if(A[i]=='TLE')
      |                         ~~~~^~~~~~~
a.cc:28:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |                 else if (A[i]=='RE') {
      |                          ~~~~^~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int a,w,t,r;
  vector<string>v(n);
  for(int i=0;i<n;++i)
  {v.push_back(v[i]);}
  for(int i=0;i<n;++i)
  
    if(v[i]=="AC")
      a++;
    if(v[i]=="WA")
      
      w++;
      
      if(v[i]=="TLE")
        t++;
        if(v[i]=="RE")
          r++;
  }
  cout<<"AC"<<"X"<<a<<endl;
  cout<<"WA"<<"X"<<w<<endl;  
  cout<<"TLE"<<"X"<<t<<endl;  
  cout<<"RE"<<"X"<<r<<endl;
  
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     if(v[i]=="WA")
      |          ^
a.cc:21:12: error: 'i' was not declared in this scope
   21 |       if(v[i]=="TLE")
      |            ^
a.cc:23:14: error: 'i' was not declared in this scope
   23 |         if(v[i]=="RE")
      |              ^
a.cc: At global scope:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout<<"AC"<<"X"<<a<<endl;
      |   ^~~~
a.cc:27:3: error: 'cout' does not name a type
   27 |   cout<<"WA"<<"X"<<w<<endl;
      |   ^~~~
a.cc:28:3: error: 'cout' does not name a type
   28 |   cout<<"TLE"<<"X"<<t<<endl;
      |   ^~~~
a.cc:29:3: error: 'cout' does not name a type
   29 |   cout<<"RE"<<"X"<<r<<endl;
      |   ^~~~
a.cc:32:3: error: expected unqualified-id before 'return'
   32 |   return 0;
      |   ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
  int c1=0,c2=0,c3=0,c4=0,n;
  cin>>n;
  string ch;
  while(n!=0)
  {
    cin>>ch;
    if(ch=="AC")
      c1++;
    else if(ch=="WA")
      c2++;
    else if(ch=="TLE")
      c3++;
    else
      c4++;
  }
  cout<<"C"<< <<'x'<< <<c1<<endl;
  cout<<"WA"<< <<'x'<< <<c2<<endl;
  cout<<"TLE"<< <<'x'<< <<c3<<endl;
  cout<<"RE"<< <<'x'<< <<c4<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: expected primary-expression before '<<' token
   21 |   cout<<"C"<< <<'x'<< <<c1<<endl;
      |               ^~
a.cc:21:23: error: expected primary-expression before '<<' token
   21 |   cout<<"C"<< <<'x'<< <<c1<<endl;
      |                       ^~
a.cc:22:16: error: expected primary-expression before '<<' token
   22 |   cout<<"WA"<< <<'x'<< <<c2<<endl;
      |                ^~
a.cc:22:24: error: expected primary-expression before '<<' token
   22 |   cout<<"WA"<< <<'x'<< <<c2<<endl;
      |                        ^~
a.cc:23:17: error: expected primary-expression before '<<' token
   23 |   cout<<"TLE"<< <<'x'<< <<c3<<endl;
      |                 ^~
a.cc:23:25: error: expected primary-expression before '<<' token
   23 |   cout<<"TLE"<< <<'x'<< <<c3<<endl;
      |                         ^~
a.cc:24:16: error: expected primary-expression before '<<' token
   24 |   cout<<"RE"<< <<'x'<< <<c4<<endl;
      |                ^~
a.cc:24:24: error: expected primary-expression before '<<' token
   24 |   cout<<"RE"<< <<'x'<< <<c4<<endl;
      |                        ^~
Language: C

#include <bits/stdc++.h>

using namespace std;

int main() {
  int N;
  string S[N];
  map<string, int> ans_num;
  string ans[] = {"AC", "WA", "TLE", "RE"};
  for (int i = 0; i < 4; i++) {
    ans_num[ans[i]] = 0;
  }

  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> S[i];
    if (S[i] == "AC") {
      ans_num[ans[0]] += 1;
    } else if (S[i] == "WA") {
      ans_num[ans[1]] += 1;
    } else if (S[i] == "TLE") {
      ans_num[ans[2]] += 1;
    } else if (S[i] == "RE") {
      ans_num[ans[3]] += 1;
    }
  }

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

  return 0;
}

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

#include<iostream>
using namespace std;
int main(){
  int n,i;
  cin>>n;
  char arr1[4]={"AC","WA","TLE","RE"};
  int arr2[4]={0,0,0,0};
  char r;
  for(i=0;i<n;i++){
    if(r=="AC")arr2[0]++;
    else if(r=="WA")arr2[1]++;
    else if(r=="TLE")arr2[2]++;
    else if(r=="RE") arr2[3]++;
  }
  for(i=0;i<4;i++){
    cout<<arr1[i]<<" "<<"x"<<" "<<arr2[i];
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:37: error: too many initializers for 'char [4]'
    6 |   char arr1[4]={"AC","WA","TLE","RE"};
      |                                     ^
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(r=="AC")arr2[0]++;
      |        ~^~~~~~
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(r=="WA")arr2[1]++;
      |             ~^~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(r=="TLE")arr2[2]++;
      |             ~^~~~~~~
a.cc:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     else if(r=="RE") arr2[3]++;
      |             ~^~~~~~
Language: Java

import java.util.*;
class b
{
  Scanner sc=new Scanner(System.in);
  int n=sc.nextInt();
  String s=sc.nextLine();
  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 <stdio.h>
#include <string.h>
#include <stdlib.h>

long n,count;
char str[100000][4];
int main(void)
{
scanf("%ld", &n);
for(int cnt=0;cnt<n;cnt++){
  scanf("%s", str[cnt]);
}
qsort(str, n, 4, strcmp);

    for (int i = 0; i < n; i++)
    {
        if (str[i]==str[i+1])
            count++;
            else {
              printf("%s×%d", str[i],count);
              count=0;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:18: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
   13 | qsort(str, n, 4, strcmp);
      |                  ^~~~~~
      |                  |
      |                  int (*)(const char *, const char *)
In file included from main.c:3:
/usr/include/stdlib.h:971:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const char *, const char *)'
  971 |                    __compar_fn_t __compar) __nonnull ((1, 4));
      |                    ~~~~~~~~~~~~~~^~~~~~~~
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C++

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

int main() {

	int N=3;
	char A[100000][];
	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: In function 'int main()':
a.cc:8:14: error: declaration of 'A' as multidimensional array must have bounds for all dimensions except the first
    8 |         char A[100000][];
      |              ^
a.cc:13:24: error: 'A' was not declared in this scope
   13 |                 cin >> A[i];
      |                        ^
a.cc:17:21: error: 'A' was not declared in this scope
   17 |                 if (A[i]=="AC") {
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t, a, b, c = 0, d = 0, e = 0, f = ­0;
    cin >> t;
    while (t--)
    {
        string s;
        cin >> s;
        if (s == "AC")
            c++;
        else if (s == "WA")
            d++;
        else if (s == "TLE")
            e++;
        else
            f++;
    }
    cout << "AC x " << c << endl;
    cout << "WA x " << d << endl;
    cout << "TLE x " << e << endl;
    cout << "RE x " << f << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:43: error: '\U000000ad0' was not declared in this scope
    5 |     int t, a, b, c = 0, d = 0, e = 0, f = ­0;
      |                                           ^~
Language: C++

#include<bits/stc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int a,w,t,r;
  vector<string>v(n);
  for(int i=0;i<n;++i)
  {v.push_back(v[i]);}
  for(int i=0;i<n;++i)
  
    if(v[i]=="AC")
      a++;
    if(v[i]=="WA")
      
      w++;
      
      if(v[i]=="TLE")
        t++;
        if(v[i]=="RE")
          r++;
  }
  cout<<"AC"<<"X"<<a<<endl;
  cout<<"WA"<<"X"<<w<<endl;  
  cout<<"TLE"<<"X"<<t<<endl;  
  cout<<"RE"<<"X"<<r<<endl;
  
 
  return 0;
}


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

#include<stdio.h>
#include<stdlib.h>
 
int main(){
	int i, nums;
  	int AC = 0;
  	int WA = 0;
  	int TLE = 0;
  	int RE = 0;
	scanf("%d",&nums);
  	for(i = 0; i < nums; i++){
      scanf("%s", &str);
      if(strcmp(str, "AC\n") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA\n") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE\n") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE\n") == 0){
        	RE++;
      }
      else if(strcmp(str, "AC") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE") == 0){
        	RE++;
      }
    }  	
  	printf("AC × %d\n", AC);
  	printf("WA × %d\n", WA);
  	printf("TLE × %d\n", TLE);
  	printf("RE × %d\n", RE);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: 'str' undeclared (first use in this function)
   12 |       scanf("%s", &str);
      |                    ^~~
main.c:12:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:10: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   13 |       if(strcmp(str, "AC\n") == 0){
      |          ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    2 | #include<stdlib.h>
  +++ |+#include <string.h>
    3 |
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.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:14:25: error: expected ')' before 'c0'
   14 |     if(strcmp(s[N],"AC")
      |       ~                 ^
      |                         )
   15 |        c0++;
      |        ~~                
main.c:22:8: error: expected expression before '}' token
   22 |        }
      |        ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void)
{
  int N;
  cin>>N;
  string inp;
  int AC,WA,TLE,RE;
  for(int i=0;i<n;i++)
  {
    cin>>inp;
    if((inp.compare("AC"))
      AC++;
    if((inp.compare("WA"))
      WA++;
    if((inp.compare("TLE"))
      TLE++;
    if((inp.compare("RE"))
      RE++;
  }
  
  cout<<"AC x "<<AC<<endl;
  cout<<"WA x "<<WA<<endl;
  cout<<"TLE x "<<TLE<<endl;
  cout<<"RE x "<<RE<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'n' was not declared in this scope
   10 |   for(int i=0;i<n;i++)
      |                 ^
a.cc:13:27: error: expected ';' before 'AC'
   13 |     if((inp.compare("AC"))
      |                           ^
      |                           ;
   14 |       AC++;
      |       ~~                   
a.cc:13:20: warning: ignoring return value of 'int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   13 |     if((inp.compare("AC"))
      |        ~~~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3393:7: note: declared here
 3393 |       compare(const _CharT* __s) const _GLIBCXX_NOEXCEPT
      |       ^~~~~~~
a.cc:15:5: error: expected primary-expression before 'if'
   15 |     if((inp.compare("WA"))
      |     ^~
a.cc:14:12: error: expected ')' before 'if'
   14 |       AC++;
      |            ^
      |            )
   15 |     if((inp.compare("WA"))
      |     ~~      
a.cc:13:7: note: to match this '('
   13 |     if((inp.compare("AC"))
      |       ^
a.cc:17:28: error: expected ';' before 'TLE'
   17 |     if((inp.compare("TLE"))
      |                            ^
      |                            ;
   18 |       TLE++;
      |       ~~~                   
a.cc:17:20: warning: ignoring return value of 'int std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   17 |     if((inp.compare("TLE"))
      |        ~~~~~~~~~~~~^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3393:7: note: declared here
 3393 |       compare(const _CharT* __s) const _GLIBCXX_NOEXCEPT
      |       ^~~~~~~
a.cc:19:5: error: expected primary-expression before 'if'
   19 |     if((inp.compare("RE"))
      |     ^~
a.cc:18:13: error: expected ')' before 'if'
   18 |       TLE++;
      |             ^
      |             )
   19 |     if((inp.compare("RE"))
      |     ~~       
a.cc:17:7: note: to match this '('
   17 |     if((inp.compare("TLE"))
      |       ^
Language: C++

#include<stdio.h>
#include<stdlib.h>
 
int main(){
	int i, nums;
  	int AC = 0;
  	int WA = 0;
  	int TLE = 0;
  	int RE = 0;
	scanf("%d",&nums);
  	for(i = 0; i < nums; i++){
      scanf("%s", &str);
      if(strcmp(str, "AC\n") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA\n") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE\n") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE\n") == 0){
        	RE++;
      }
      else if(strcmp(str, "AC") == 0){
        	AC++;
      }
      else if(strcmp(str, "WA") == 0){
        	WA++;
      }
      else if(strcmp(str, "TLE") == 0){
        	TLE++;
      }
      else if(strcmp(str, "RE") == 0){
        	RE++;
      }
    }  	
  	printf("AC × %d\n", AC);
  	printf("WA × %d\n", WA);
  	printf("TLE × %d\n", TLE);
  	printf("RE × %d\n", RE);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |       scanf("%s", &str);
      |                    ^~~
      |                    std
a.cc:13:10: error: 'strcmp' was not declared in this scope
   13 |       if(strcmp(str, "AC\n") == 0){
      |          ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	int n;
  cin >>n;
    	int c1=0;
      int c2=0;
      int c3=0;
      int c4=0;
  	while(n--){
    	string a;
      	cin >> a;
      	if(a=="AC"){c1++;}
      if(a=="WA"){c2++;}
      if(a=="TLE"){c3++;}
      if(a=="RE"){c4++;}
    }
  	cout <<"AC x "<<c1<<"\nWA x "<<c2<<"\nTLE x "<<c3<<"\nRE x "<<c4<<"";
TLE x 0
RE x 0"
	return 0;
}


Compiler output:
a.cc:22:7: warning: missing terminating " character
   22 | RE x 0"
      |       ^
a.cc:22:7: error: missing terminating " character
a.cc: In function 'int main()':
a.cc:21:1: error: 'TLE' was not declared in this scope
   21 | TLE x 0
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef vector<int> vi;
const int MX = 2e5 + 5;
#define f(i, x, n) for (int i = x; i < n; i++)
#define int long long
#define w(t)  \
    int t;    \
    cin >> t; \
    while (t--)
#define pb push_back
#define endl "\n"
#define yes cout << "YES" << endl
#define no cout << "NO" << endl

int32_t main()
{
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#else
    // online submission
#endif
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    int t, a, b, c = 0, d = 0, e = 0, f = ­0;
    cin >> t;
    while (t--)
    {
        string s;
        cin >> s;
        if (s == "AC")
            c++;
        else if (s == "WA")
            d++;
        else if (s == "TLE")
            e++;
        else
            f++;
    }
    cout << "AC x " << c << endl;
    cout << "WA x " << d << endl;
    cout << "TLE x " << e << endl;
    cout << "RE x " << f << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:29:43: error: '\U000000ad0' was not declared in this scope
   29 |     int t, a, b, c = 0, d = 0, e = 0, f = ­0;
      |                                           ^~
Language: C++

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

int main() {

	int N=3;
	int A[100000];
	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:17:27: warning: multi-character character constant [-Wmultichar]
   17 |                 if (A[i]=='AC') {
      |                           ^~~~
a.cc:21:32: warning: multi-character character constant [-Wmultichar]
   21 |                 else if (A[i]=='WA') {
      |                                ^~~~
a.cc:24:31: warning: multi-character character constant [-Wmultichar]
   24 |                 else if(A[i]=='TLE')
      |                               ^~~~~
a.cc:28:32: warning: multi-character character constant [-Wmultichar]
   28 |                 else if (A[i]=='RE') {
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin >> N ;
      |         ^~~
Language: C++

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

cout<< "AC"<<" x "<<a<<endl;
cout<< "WA"<<" x "<<b<<endl;
cout<< "TLE"<<" x "<<c<<endl;
cout<< "RE"<<" x "<<d<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s[i]=="AC")a++;
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     else if(s[i]=="WA")b++;
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     else if(s[i]=="TLE")c++;
a.cc:12:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     else if(s[i]=="RE")d++;
Language: C++

#include<bits/stc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  int a,w,t,r;
  vector<string>v(n);
  for(int i=0;i<n;++i)
  {v.push_back(v[i]);}
  for(int i=0;i<n;++i)
  {
    if(v[i]=='AC')
      a++;
    if(v[i]=='WA')
      
      w++;
      
      if(v[i]=='TLE')
        t++;
        if(v[i]=='RE')
          r++;
  }
  cout<<"AC"<<"X"<<a<<endl;
  cout<<"WA"<<"X"<<w<<endl;  
  cout<<"TLE"<<"X"<<t<<endl;  
  cout<<"RE"<<"X"<<r<<endl;
  
 
  return 0;
}


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

import java.util.*;
class b
{
  public static void main(String args[])
  {
  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: cannot find symbol
  String s=sc.nextString();
             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
1 error
Language: C

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

int main(){
    int num;
    scanf("%d", &num);

    for(int i = 0; i < num; i++){
        char word[2];

    }



    return 0;
}

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

int main(void){
	int num;
  	int ignore = scanf("%d",&num);
  	int count[4] = {0};
  
  	for(int i = 0; i<num; i++){
  		char input[2];
      	ignore = scanf("%s",input);
      	if(strcmp(input,"AC") == 0){
        	count[0]++;
        }else if(strcmp(input, "WA") == 0){
          	count[1]++;
        }else if(strcmp(input, "TLE") == 0){
          	count[2]++;
        }else if(strcmp(input, "RE") == 0){
          	count[3]++;
        }
    }
  	printf("AC x %d\n", count[0]);
  	printf("WA x %d\n", count[1]);
  	printf("TLE x %d\n", count[2]);
  	printf("RE x %d", count[3]);
  	ignore++;
  	return 0;
}

Compiler output:
main.c:23:5: error: redefinition of 'main'
   23 | int main(void){
      |     ^~~~
main.c:5:5: note: previous definition of 'main' with type 'int()'
    5 | int main(){
      |     ^~~~
Language: C++

# include <iostream>
using namespace 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: In function 'int main()':
a.cc:14:11: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   14 |     if(ch="AC")
      |           ^~~~
      |           |
      |           const char*
a.cc:16:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   16 |     else if(ch="WA")
      |                ^~~~
      |                |
      |                const char*
a.cc:18:16: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |     else if(ch="TLE")
      |                ^~~~~
      |                |
      |                const char*
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	int n;
    	int c1=0;
      int c2=0;
      int c3=0;
      int c4=0;
  	while(n--){
    	string a;
      	cin >> a;
      	if(a=="AC"){c1++;}
      if(a=="WA"){c2++;}
      if(a=="TLE"){c3++;}
      if(a=="RE"){c4++;}
    }
  	cout <<"AC x "<<c1<<"\nWA x "<<c2<<"\nTLE x "<<c3<<"\nRE x "<<c4<<"";
TLE x 0
RE x 0"
	return 0;
}


Compiler output:
a.cc:21:7: warning: missing terminating " character
   21 | RE x 0"
      |       ^
a.cc:21:7: error: missing terminating " character
a.cc: In function 'int main()':
a.cc:20:1: error: 'TLE' was not declared in this scope
   20 | TLE x 0
      | ^~~
Language: C++

using namespace std;
#include<iostream>
int main()
{
  int n;
  cin>>n;
  int ac=0,wa=0,tle=0,re=0;
  while(n--)
  {
    string s;
    cin>>s;
    if(s=="AC")
        ac++;
    else if(s="WA")
        wa++;
    else if("TLE"==s)
        tle;
    else
        re++;
  }
  cout<<"AC x "<<ac<<endl;
  cout<<"WA x "<<wa<<endl;
  cout<<"TLE x "<<tle<<endl;
  cout<<"RE x "<<re<<endl;
  return 0;
}

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

#include <iostream>

using namespace std;

void out (string s, int num) {
  cout << s << " x " << num << endl;
}

int main () {
  int count;
  cin >> count;
  int ac= 0,wa =0,tle =0,re=0;
  for (int i = 0; i < count ; ++i) {
    string s;
    cin >> s;
    if (s =="AC") {
    	++ac;
    }
    else if (s == "WA") {
      ++wa;
    }
    else if (s =="TLE") {
      ++tle;
    }
    else if (s =="RE") {
      ++re;
    }
  }
  out("AC",ac);
  out("WA",wa);
  out("TLE",tle);
  out("RE",re);
  
}#include <iostream>

using namespace std;

void out (string s, int num) {
  cout << s << " x " << num << endl;
}

int main () {
  int count;
  cin >> count;
  int ac= 0,wa =0,tle =0,re=0;
  for (int i = 0; i < count ; ++i) {
    string s;
    cin >> s;
    if (s =="AC") {
    	++ac;
    }
    else if (s == "WA") {
      ++wa;
    }
    else if (s =="TLE") {
      ++tle;
    }
    else if (s =="RE") {
      ++re;
    }
  }
  out("AC",ac);
  out("WA",wa);
  out("TLE",tle);
  out("RE",re);
  
}

Compiler output:
a.cc:34:2: error: stray '#' in program
   34 | }#include <iostream>
      |  ^
a.cc:34:3: error: 'include' does not name a type
   34 | }#include <iostream>
      |   ^~~~~~~
a.cc:38:6: error: redefinition of 'void out(std::string, int)'
   38 | void out (string s, int num) {
      |      ^~~
a.cc:5:6: note: 'void out(std::string, int)' previously defined here
    5 | void out (string s, int num) {
      |      ^~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main () {
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main () {
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define in cin>>
#define out cout<<
#define change endl

int main()
{
   int n,a=0,t=0,w=0,r=0;
    in n;#include<bits/stdc++.h>
using namespace std;
#define in cin>>
#define out cout<<
#define change endl

int main(void)
{
   int n;cin>>n;
vector<char> v;
    map<char,int> m;
for(int i=0;i<n;i++)
{ 
string s;cin>>s;v.push_back(s[0]);
}
for(int i=0;i<n;i++)
{
m[v[i]]++;
}
    cout<<"AC × "<<m['A']<<endl;
    cout<<"WA × "<<m['W']<<endl;
    cout<<"TLE × "<<m['T']<<endl;
    cout<<"RE × "<<m['R']<<endl;
}
    while(n--)
    {
    string s;in s;
    if(s[0]=='A') a++;else 
if(s[0]=='T') t++;else 
      if(s[0]=='W') w++;else 
      if(s[0]=='R') r++;
}
    out "AC × "<<a;change;
    out "WA × "<<w;change;
    out "TLE × "<<t;change;
    out "RE × "<<r;

}

Compiler output:
a.cc:10:10: error: stray '#' in program
   10 |     in n;#include<bits/stdc++.h>
      |          ^
a.cc: In function 'int main()':
a.cc:10:11: error: 'include' was not declared in this scope
   10 |     in n;#include<bits/stdc++.h>
      |           ^~~~~~~
a.cc:10:19: error: 'bits' was not declared in this scope
   10 |     in n;#include<bits/stdc++.h>
      |                   ^~~~
a.cc:10:24: error: 'stdc' was not declared in this scope; did you mean 'std'?
   10 |     in n;#include<bits/stdc++.h>
      |                        ^~~~
      |                        std
a.cc:11:1: error: expected primary-expression before 'using'
   11 | using namespace std;
      | ^~~~~
a.cc:17:1: error: a function-definition is not allowed here before '{' token
   17 | {
      | ^
a.cc:42:26: error: statement cannot resolve address of overloaded function
   42 |     out "AC × "<<a;change;
      |                          ^
a.cc:43:26: error: statement cannot resolve address of overloaded function
   43 |     out "WA × "<<w;change;
      |                          ^
a.cc:44:27: error: statement cannot resolve address of overloaded function
   44 |     out "TLE × "<<t;change;
      |                           ^
Language: C++

# include <iostream>
using namespace 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: In function 'int main()':
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")
      |             ~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: no match for 'operator[]' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   20 |     cout<<"AC x "<<cout[0]<<endl;
      |                        ^
a.cc:22:24: error: no match for 'operator[]' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   22 |     cout<<"WA x "<<cout[0]<<endl;
      |                        ^
a.cc:24:25: error: no match for 'operator[]' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   24 |     cout<<"TLE x "<<cout[0]<<endl;
      |                         ^
a.cc:26:24: error: no match for 'operator[]' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   26 |     cout<<"RE x "<<cout[0]<<endl;
      |                        ^
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: In function 'int main()':
a.cc:17:19: error: switch quantity not an integer
   17 |         switch(s[i]){
      |                ~~~^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<string.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:14:25: error: expected ')' before 'c0'
   14 |     if(strcmp(s[N],"AC")
      |       ~                 ^
      |                         )
   15 |        c0++;
      |        ~~                
main.c:28:32: error: expected declaration or statement at end of input
   28 |                                }
      |                                ^
main.c:28:32: error: expected declaration or statement at end of input
Language: C++

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

int main(void)
{
  int i,j;
  int ac=0;
  int tle =0;
  int wa =0;
  int 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++;
    }
    cout << "AC × "<< ac <<endl;
    cout << "WA × "<< wa <<endl;
    cout << "TLE × "<< tle <<endl;
    cout << "RE × "<< re <<endl;
 

Compiler output:
a.cc: In function 'int main()':
a.cc:32:33: error: expected '}' at end of input
   32 |     cout << "RE × "<< re <<endl;
      |                                 ^
a.cc:16:23: note: to match this '{'
   16 |   for(int k=0;k<i;k++){
      |                       ^
a.cc:32:33: error: expected '}' at end of input
   32 |     cout << "RE × "<< re <<endl;
      |                                 ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^