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

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2020/7/5 19:54
# @Version : 1.1
# @Author  : Jade
# @File    : a.py
# @Software: PyCharm
#

def main():
    n = int(input())
    print(1000 - n%1000)
if __name__ == '__main__':
    main()

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:3: error: invalid preprocessing directive #@
    3 | # @Time    : 2020/7/5 19:54
      |   ^
a.cc:4:3: error: invalid preprocessing directive #@
    4 | # @Version : 1.1
      |   ^
a.cc:5:3: error: invalid preprocessing directive #@
    5 | # @Author  : Jade
      |   ^
a.cc:6:3: error: invalid preprocessing directive #@
    6 | # @File    : a.py
      |   ^
a.cc:7:3: error: invalid preprocessing directive #@
    7 | # @Software: PyCharm
      |   ^
a.cc:13:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   13 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:10:1: error: 'def' does not name a type
   10 | def main():
      | ^~~
Language: C++

def main():
    x = int(input())

    print((10000 - x) % 1000)

if __name__ == '__main__':
    main()


Compiler output:
a.cc:6:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    6 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll,ll> pi;
typedef vector<pi> vp;
typedef set<ll> si;
typedef map<string, ll> msi;
#define REP(i,a,b) \
for(ll i=ll(a);i<=ll(b);i++)
#define DEP(i,a,b) \
for(ll i=ll(a);i>=ll(b);i--)
#define TR(c, it) \
for (auto it = (c).begin(); it != (c).end(); it++)
#define mp make_pair
#define pb push_back
#define F first
#define S second
ll mod 1e9+7;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  
  int T;
  T=1;
  while(T--)
  {
      ll n,i,j,k,l,m;
      cin>>n;
      string s;
    cout<<n%1000;
  }
  return 0;
}

Compiler output:
a.cc:19:8: error: expected initializer before numeric constant
   19 | ll mod 1e9+7;
      |        ^~~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
int main()
{
    //ios_base::sync_with_stdio(false);
    ll t;
    cin>>t;
    while(t--)
    {
        ll n, m, a, b;
        cin>>n;
        cout<<max(1000 - n, 0)<<"\n";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: no matching function for call to 'max(long long int, int)'
   14 |         cout<<max(1000 - n, 0)<<"\n";
      |               ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:14:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   14 |         cout<<max(1000 - n, 0)<<"\n";
      |               ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:14:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   14 |         cout<<max(1000 - n, 0)<<"\n";
      |               ~~~^~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

void Main()
{
  int n;
  cin >> n;
  
  printf("%d" n % 1000);
}

int main()
{
  std::cout << std::fixed << std::setprecision(15);
  Main();
}



Compiler output:
a.cc: In function 'void Main()':
a.cc:15:14: error: expected ')' before 'n'
   15 |   printf("%d" n % 1000);
      |         ~    ^~
      |              )
Language: C

#include<bits/stdc++.h>

#define REP(i,s,n) for(int i=s;i<n;++i)
#define rep(i,n) REP(i,0,n)
#define fst first
#define snd second
#define pb push_back
#define ALL(x) x.begin(),x.end()
#define EPS (1e-9)
#define equals(a,b) (fabs((a)-(b))<EPS)

using namespace std;

bool LT(double a,double b) { return !equals(a,b) && a < b; }
bool LTE(double a,double b) { return equals(a,b) || a < b; }

const string YES = "";
const string NO  = "";

typedef long long ll;
typedef pair<int,int> ii;

// A

void solve() {

}

int main() {
  int n;
  cin >> n;
  ll v = 0;
  while( v < n ) {
    v = v + 1000;
  }
  cout << v - n << endl;
  return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    ll n;
    string s;
    char c;
    cin>>n ;
    cout<<n%1000;
    
    
    cout<<  ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected primary-expression before ';' token
   15 |     cout<<  ;
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define db(x) cout << (x) << '\n';
#define all(x) x.begin(),x.end()
#define UNIQUE(x) sort(all(x)),x.resize(unique(all(x))-x.begin())
#define LB(v,x) lower_bound(all(v),x)
#define UB(v,x) upper_bound(all(v),x)
#define endl "\n"
#define F first
#define S second
#define PB push_back
#define PF push_front
#define int long long
#define double long double
#define trick int m = (l+r)>>1,lc=n<<1,rc=lc|1

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<vi> vii;

int dy[]={0,1,1,1,0,-1,-1,-1};
int dx[]={-1,-1,0,1,1,1,0,-1};
const int maxn = 1e5;
const int OO = 1e18;
const int mod = 1e9 + 7;
const double PI = acos(-1);

void maxself(int &a,int b)
{a=max(a,b);}
void minself(int &a,int b)
{a=min(a,b);}

vector<vi> g(maxn);


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

//	freopen("name.in","r",stdin);
//	freopen("name.out","w",stdout);

	int n;
	cin >> n;
	cout << min(0,1000-n);

	return 0;
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:49:20: error: no matching function for call to 'min(int, long long int)'
   49 |         cout << min(0,1000-n);
      |                 ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:49:20: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   49 |         cout << min(0,1000-n);
      |                 ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:49:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   49 |         cout << min(0,1000-n);
      |                 ~~~^~~~~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>

using namespace std;
typedef long long ll

#define REP(i,n) for(ll i=0;i<ll(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<ll(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=b;i--)
#define ALL(x) x.begin(),x.end()
#define SIZE(x) ll(x.size())

#define INF 1000000000000 //10^12
#define MOD 1000000007 //10^9+7:合同式の法
 
int main(){
    int n;
    cin >> n;

    n = n % 1000;
    cout << 1000 - n << endl;
    return 0;
}

Compiler output:
a.cc:17:1: error: expected initializer before 'int'
   17 | int main(){
      | ^~~
Language: C

#include <stdio.h>

int main()
{int A;
scanf("%d",&a);
printf("%d",a%1000);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'a' undeclared (first use in this function)
    5 | scanf("%d",&a);
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
int main(){
  int s;
  std::cin>>s;
  std::cout<<s%1000<<std::endl;
  retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'retrun' was not declared in this scope
    6 |   retrun 0;
      |   ^~~~~~
Language: C

#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <vector>
#include <math.h>
#include <numeric>
#include <queue>
#include <numeric>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <map>
#include <functional>
#include <limits>
#include <set>
#include <stack>
#include <cctype>
#define rep(i,a,b) for((i)=a;i<(int)(b);i++)

#define AAA (1000000007) 


using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pairII;


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

ll lcm(ll a, ll b) {
	return a / gcd(a, b) * b;
}
ll powD(ll a, ll b) {
	ll ans = 1;
	a %= AAA;
	for (int i = 0; i < b; i++)
	{
		ans *= a;
		ans %= AAA;
	}
	return ans;
}

int primeNumber(const int n) {
	//上から確認する
	for (int N = n; N >= 1; N--) {

		bool isPrime = true;
		//素数判定 i < sqrt(N)+1
		for (int i = 2; i * i <= N; i++) {
			if (N % i == 0) {
				isPrime = false;
				break;
			}
		}
		//もし素数なら
		if (isPrime) {
			return N;
		}
	}
}


int main() {
	int i, j, k;

	int N, M, K;

	cin >> N;
	cout << 1000 - N;



	return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |         if(c="AC")ac++;
      |            ~^~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:11:13: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |         if(c="WA")wa++;
      |            ~^~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:12:13: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"TLE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |         if(c="TLE")tle++;
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
a.cc:13:13: error: could not convert 'c.std::__cxx11::basic_string<char>::operator=(((const char*)"RE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |         if(c="RE")re++;
      |            ~^~~~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<algorithm>
#include<string>

using namespace std;

int main(void) {

    int n;
    int q = 0, p = 0, e = 0,g = 0;
    string s;
    // 検索先の文字列
    string a = "A"; // 検索文字列 // AC
    string w = "W"; // WA
    string t = "T"; // TLE
    string r = "R"; // RE

    cin >> n;

    cin >> s;

    for (int i = 0; i < n; i++) {

        cin >> str;

        
        if (str.find('A') == 0) {
            
            q++;

        }

        if (s.find('W') == 0) {

            p++;

        }

        if (s.find('T') == 0) {

            e++;

        }

        
        if (s.find('R') == 0) {

            g++;

        }


    }


    cout << "AC × " << q << endl;
    cout << "WA × " << p << endl;
    cout << "TLE × " << e << endl;
    cout << "RE × " << g << endl;

    
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: 'str' was not declared in this scope; did you mean 'std'?
   24 |         cin >> str;
      |                ^~~
      |                std
Language: C++

#include<iostream>
#include<algorithm>
#include<string>

using namespace std;

int main(void) {

    int n;
    int q = 0, p = 0, e = 0,g = 0;
    string str;
    // 検索先の文字列
    string a = "A"; // 検索文字列 // AC
    string w = "W"; // WA
    string t = "T"; // TLE
    string r = "R"; // RE

    cin >> n;

    cin >> s;

    for (int i = 0; i < n; i++) {

        cin >> str;

        
        if (str.find('A') == 0) {
            
            q++;

        }

        if (s.find('W') == 0) {

            p++;

        }

        if (s.find('T') == 0) {

            e++;

        }

        
        if (s.find('R') == 0) {

            g++;

        }


    }


    cout << "AC × " << q << endl;
    cout << "WA × " << p << endl;
    cout << "TLE × " << e << endl;
    cout << "RE × " << g << endl;

    
    return 0;
}



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

its/stdc++.h>
using namespace std;

int main(){
  int N;
  string S;
  int myAC=0;
  int myWA=0;
  int myRE=0;
  int myTLE=0;
  cin >> N;
  
  for (int i=0 ;i<N;i++){
    cin >> S;
    if (S == "AC"){
      myAC++;
    }else if(S == "WA"){
      myWA++;
    }else if(S == "TLE"){
      myTLE++;
    }else if(S == "RE"){
      myRE++;
    }
  }
  cout << "AC x " << myAC << endl << "WA x " << myWA << endl<< "TLE x "  << myTLE << endl<< "RE x "  << myRE << endl;
  
  return 0;
}

Compiler output:
a.cc:1:1: error: 'its' does not name a type
    1 | its/stdc++.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   cin >> N;
      |   ^~~
a.cc:14:12: error: 'S' was not declared in this scope
   14 |     cin >> S;
      |            ^
a.cc:25:3: error: 'cout' was not declared in this scope
   25 |   cout << "AC x " << myAC << endl << "WA x " << myWA << endl<< "TLE x "  << myTLE << endl<< "RE x "  << myRE << endl;
      |   ^~~~
a.cc:25:30: error: 'endl' was not declared in this scope
   25 |   cout << "AC x " << myAC << endl << "WA x " << myWA << endl<< "TLE x "  << myTLE << endl<< "RE x "  << myRE << endl;
      |                              ^~~~
Language: C

#include <stdio.h>
#include <string.h>
char x[10];
int a,w,t,r;
int main(){
	int n,i;
	scanf("%d",&n);
	while(n--){
		scanf("%s",x);
		if(s[0]=='A')a++;
		else if(s[0]=='W')w++;
		else if(s[0]=='T')t++;
		else if(s[0]=='R')r++;
	}
	printf("AC x %d\n",a);
	printf("WA x %d\n",w);
	printf("TLE x %d\n",t);
	printf("RE x %d\n",r);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:20: error: 's' undeclared (first use in this function)
   10 |                 if(s[0]=='A')a++;
      |                    ^
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

#define     fast()              ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define     ll                  long long int
#define     test()              ll t; cin>>t; while(t--) 
#define     lp0(i,begin,end)    for(ll i=begin;i<end;i++)
#define     lp1(i,begin,end)    for(ll i=begin;i<=end;i++)
#define     rlp(i,begin,end)    for(ll i=end;i>=begin;i--)
#define     prec(n)             fixed<<setprecision(n)
#define     initial(a,i)        memset(a,i,sizeof(a))
#define     pb                  push_back
#define     PI                  3.1415926535897932384626433832795
#define     MOD                 1000000007
#define     F                   first
#define     S                   second
#define     all(a)              (a).begin(),(a).end()
#define     BPC(x)              __builtin_popcountll(x)
#define     gcd(a,b)            __gcd(a,b)

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

ll power(ll x,ll n)
{
    ll result = 1;
    while (n)
    {
        if (n & 1)
            result = result * x;
        n = n / 2;
        x = x * x;
    }
    return result;
}
// Solution Function
void solution(ll compte)
{
    // cout<<compte<<"\n";
    ll n;
    cin>>n;
    ll ac=0;
    ll tle =0;
    ll wa=0;
    ll re=0;
    while(n--)
    {
        string s;
        cin>>s;
        if(s=="AC")
        ac++;
        else if(s=="TLE")
        tle++;
        else if(s=="RE")
        re++;
        else if(s=="WA")
        wa++;
    }
    cout<<"AC X "<<ac<<"\n";
    cout<<"WA X "<<wa<<"\n";
    cout<<"TLE X "<<tle<<"\n";
    cout<<"RE X "<<re<<"\n";    

// Driver Function
int main()
{
    ll compte = 1;
   // test()
    //{
        solution(compte);
        compte++;
    //}
    return 0;
}


Compiler output:
a.cc: In function 'void solution(long long int)':
a.cc:65:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   65 | int main()
      |         ^~
a.cc:65:9: note: remove parentheses to default-initialize a variable
   65 | int main()
      |         ^~
      |         --
a.cc:65:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:66:1: error: a function-definition is not allowed here before '{' token
   66 | {
      | ^
a.cc:74:2: error: expected '}' at end of input
   74 | }
      |  ^
a.cc:38:1: note: to match this '{'
   38 | {
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
	int n; cin >> n;
  	vector<string> s(n);
  	map<string,int> m;
  	for (string &i : s) {
      	cin >> i; m[i]++;
    }
  	cout << "AC x " << m["AC"] << endl;
  	cout << "WA x " << m["WA"] << endl;
  	cout << "TLE x " << m["TLE"] << endl;
 	cout <<< "RE x " << m["RE"] << endl;
    return 0;
}


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

#include<iostream>
#include<stdio.h>
using namespace std;
using ll=long long;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)
using P=pair<int,int>;
const int mod=1000000007;


int main(){
int n;
string a
int c0=0,c1=0,c2=0,c3=0;
cin>>n;
rep(i,n){
  cin>>a;
if(a=="AC") c0++;
if(a=="WA") c1++;
if(a=="TLE") c2++;
if(a=="RE") c3++;
}
cout<<"AC ×"<<c0<<endl;
cout<<"WA ×"<<c1<<endl;
cout<<"TLE ×"<<c2<<endl;
cout<<"RE ×"<<c3<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: expected initializer before 'int'
   16 | int c0=0,c1=0,c2=0,c3=0;
      | ^~~
a.cc:19:8: error: 'a' was not declared in this scope
   19 |   cin>>a;
      |        ^
a.cc:20:13: error: 'c0' was not declared in this scope
   20 | if(a=="AC") c0++;
      |             ^~
a.cc:21:13: error: 'c1' was not declared in this scope
   21 | if(a=="WA") c1++;
      |             ^~
a.cc:22:14: error: 'c2' was not declared in this scope
   22 | if(a=="TLE") c2++;
      |              ^~
a.cc:23:13: error: 'c3' was not declared in this scope
   23 | if(a=="RE") c3++;
      |             ^~
a.cc:25:15: error: 'c0' was not declared in this scope
   25 | cout<<"AC ×"<<c0<<endl;
      |               ^~
a.cc:26:15: error: 'c1' was not declared in this scope
   26 | cout<<"WA ×"<<c1<<endl;
      |               ^~
a.cc:27:16: error: 'c2' was not declared in this scope
   27 | cout<<"TLE ×"<<c2<<endl;
      |                ^~
a.cc:28:15: error: 'c3' was not declared in this scope
   28 | cout<<"RE ×"<<c3<<endl;
      |               ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
using ll=long long;
#include<algorithm>
#include<set>
#include<vector>
#define rep(i,n) for(int i=0;i<(n);i++)
using P=pair<int,int>;
const int mod=1000000007;


int main(){
int n;
string a;
cin>>n;
rep(i,n){
  cin>>a;
if(a=="AC")int c0++;
if(a=="WA")int c1++;
if(a=="TLE")int c2++;
if(a=="RE")int c3++;
}
cout<<"AC ×"<<c0<<endl;
cout<<"WA ×"<<c1<<endl;
cout<<"TLE ×"<<c2<<endl;
cout<<"RE ×"<<c3<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: expected initializer before '++' token
   19 | if(a=="AC")int c0++;
      |                  ^~
a.cc:20:18: error: expected initializer before '++' token
   20 | if(a=="WA")int c1++;
      |                  ^~
a.cc:21:19: error: expected initializer before '++' token
   21 | if(a=="TLE")int c2++;
      |                   ^~
a.cc:22:18: error: expected initializer before '++' token
   22 | if(a=="RE")int c3++;
      |                  ^~
a.cc:24:15: error: 'c0' was not declared in this scope
   24 | cout<<"AC ×"<<c0<<endl;
      |               ^~
a.cc:25:15: error: 'c1' was not declared in this scope
   25 | cout<<"WA ×"<<c1<<endl;
      |               ^~
a.cc:26:16: error: 'c2' was not declared in this scope
   26 | cout<<"TLE ×"<<c2<<endl;
      |                ^~
a.cc:27:15: error: 'c3' was not declared in this scope
   27 | cout<<"RE ×"<<c3<<endl;
      |               ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N;
  cin>> N;
  string S[N];
  int ac=0;
  int wa=0;
  int tle=0;
  int re=0;
  for(int i=0;i<N;i++){
  	if(S[i]=="AC"){
      int ac +=1;
    }
    else if(S[i]=="WA"){
      int wa +=1;
    }
    else if(S[i]=="TLE"){
      int tle +=1;
    }
    else if(S[i]=="RE"){
      int re +=1;
    }
  }
  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:14: error: expected initializer before '+=' token
   13 |       int ac +=1;
      |              ^~
a.cc:16:14: error: expected initializer before '+=' token
   16 |       int wa +=1;
      |              ^~
a.cc:19:15: error: expected initializer before '+=' token
   19 |       int tle +=1;
      |               ^~
a.cc:22:14: error: expected initializer before '+=' token
   22 |       int re +=1;
      |              ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cin'
    9 |   cin >> n;
      |   ^~~
Language: C++

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

int main(){
  map<string,int> judge;
  judge["AC"]=0;
  judge["WA"]=0;
  judge["TLE"]=0;
  judge["RE"]=0;
  string a;
  int b;
  cin>>b;
  while(b){
	  cin>>a;
	  judge[a]++;
	  b--;
  }
  cout<<"AC x "<<judge["AC"]<<endl;
  cout<<"WA x "<<judge["WA"]<<endl:
  cout<<"TLE x "<<judge["TLE"]<<endl;
  cout<<"RE x "<<judge["RE"]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:35: error: found ':' in nested-name-specifier, expected '::'
   21 |   cout<<"WA x "<<judge["WA"]<<endl:
      |                                   ^
      |                                   ::
a.cc:21:31: error: 'endl' is not a class, namespace, or enumeration
   21 |   cout<<"WA x "<<judge["WA"]<<endl:
      |                               ^~~~
Language: C++

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

int main(){
  map<string,int> judge;
  judge["AC"]=0;
  judge["WA"]=0;
  judge["TLE"]=0;
  judge["RE"]=0;
  string a;
  int b;
  cin>>b;
  while(b){
	  cin>>a;
	  judge[a]++;
	  b--;
  }
  cout<<"AC x "<<judge["AC"]<<endl;
  cout<<"WA x "<<judge["WA"]<<endl:
  cout<<"TLE x "<<judge["TLE"]<<endl;
  cout<<"RE x "<<judge["RE"]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'map' was not declared in this scope
    6 |   map<string,int> judge;
      |   ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include<iostream>
  +++ |+#include <map>
    2 | #include<string>
a.cc:6:13: error: expected primary-expression before ',' token
    6 |   map<string,int> judge;
      |             ^
a.cc:6:14: error: expected primary-expression before 'int'
    6 |   map<string,int> judge;
      |              ^~~
a.cc:7:3: error: 'judge' was not declared in this scope
    7 |   judge["AC"]=0;
      |   ^~~~~
a.cc:20:35: error: found ':' in nested-name-specifier, expected '::'
   20 |   cout<<"WA x "<<judge["WA"]<<endl:
      |                                   ^
      |                                   ::
a.cc:20:31: error: 'endl' is not a class, namespace, or enumeration
   20 |   cout<<"WA x "<<judge["WA"]<<endl:
      |                               ^~~~
Language: C++

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

int main(){
  map<string,int> judge;
  judge['AC']=0;
  judge['WA']=0;
  judge['TLE']=0;
  judge['RE']=0;
  string a;
  int b;
  cin>>b;
  while(b){
	  cin>>a;
	  judge[a]++;
	  b--;
  }
  cout<<"AC x "<<judge['AC']<<endl;
  cout<<"WA x "<<judge['WA']<<endl:
  cout<<"TLE x "<<judge['TLE']<<endl;
  cout<<"RE x "<<judge['RE']<<endl;
}

Compiler output:
a.cc:7:9: warning: multi-character character constant [-Wmultichar]
    7 |   judge['AC']=0;
      |         ^~~~
a.cc:8:9: warning: multi-character character constant [-Wmultichar]
    8 |   judge['WA']=0;
      |         ^~~~
a.cc:9:9: warning: multi-character character constant [-Wmultichar]
    9 |   judge['TLE']=0;
      |         ^~~~~
a.cc:10:9: warning: multi-character character constant [-Wmultichar]
   10 |   judge['RE']=0;
      |         ^~~~
a.cc:19:24: warning: multi-character character constant [-Wmultichar]
   19 |   cout<<"AC x "<<judge['AC']<<endl;
      |                        ^~~~
a.cc:20:24: warning: multi-character character constant [-Wmultichar]
   20 |   cout<<"WA x "<<judge['WA']<<endl:
      |                        ^~~~
a.cc:21:25: warning: multi-character character constant [-Wmultichar]
   21 |   cout<<"TLE x "<<judge['TLE']<<endl;
      |                         ^~~~~
a.cc:22:24: warning: multi-character character constant [-Wmultichar]
   22 |   cout<<"RE x "<<judge['RE']<<endl;
      |                        ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'map' was not declared in this scope
    6 |   map<string,int> judge;
      |   ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include<iostream>
  +++ |+#include <map>
    2 | #include<string>
a.cc:6:13: error: expected primary-expression before ',' token
    6 |   map<string,int> judge;
      |             ^
a.cc:6:14: error: expected primary-expression before 'int'
    6 |   map<string,int> judge;
      |              ^~~
a.cc:7:3: error: 'judge' was not declared in this scope
    7 |   judge['AC']=0;
      |   ^~~~~
a.cc:20:35: error: found ':' in nested-name-specifier, expected '::'
   20 |   cout<<"WA x "<<judge['WA']<<endl:
      |                                   ^
      |                                   ::
a.cc:20:31: error: 'endl' is not a class, namespace, or enumeration
   20 |   cout<<"WA x "<<judge['WA']<<endl:
      |                               ^~~~
Language: Java

import java.util.Scanner;
public class Main {
  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++){
    switch(scanner.next()){
      case "AC":
        ac++;
        break;
      case "WA":
        wa++;
        break;
      case "TLE":
        tle++;
        break;
      case "RE":
        re++;
        break;
      default:
        break;
    }
   }

   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
    switch(scanner.next()){
           ^
  symbol:   variable scanner
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main {
  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++){
    switch(n){
      case "AC":
        ac++;
        break;
      case "WA":
        wa++;
        break;
      case "TLE":
        tle++;
        break;
      case "RE":
        re++;
        break;
      default:
        break;
    }
   }

   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
  }
}


Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to int
      case "AC":
           ^
Main.java:12: error: incompatible types: String cannot be converted to int
      case "WA":
           ^
Main.java:15: error: incompatible types: String cannot be converted to int
      case "TLE":
           ^
Main.java:18: error: incompatible types: String cannot be converted to int
      case "RE":
           ^
4 errors
Language: Java

import java.util.Scanner;
public class Test2 {
  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++){
    switch(Scanner.next()){
      case "AC":
        ac++;
        break;
      case "WA":
        wa++;
        break;
      case "TLE":
        tle++;
        break;
      case "RE":
        RE++;
        break;
      default:
        break;
    }
   }

   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
  }
}


Compiler output:
Main.java:2: error: class Test2 is public, should be declared in a file named Test2.java
public class Test2 {
       ^
Main.java:8: error: non-static method next() cannot be referenced from a static context
    switch(Scanner.next()){
                  ^
Main.java:19: error: cannot find symbol
        RE++;
        ^
  symbol:   variable RE
  location: class Test2
3 errors
Language: Java

import java.util.Scanner;
public class Test2 {
  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++){
    switch(Scanner.next()){
      case "AC":
        ac++;
        break;
      case "WA":
        wa++;
        break;
      case "TLE":
        tle++;
        break;
      case "RE":
        RE++;
        break;
      default:
        break;
    }
   }

   System.out.println("AC x "+ac);
   System.out.println("WA x "+wa);
   System.out.println("TLE x "+tle);
   System.out.println("RE x "+re);
  }
}


Compiler output:
Main.java:7: error: ';' expected
   for(int i=0,i<n,i++){
                ^
Main.java:7: error: > or ',' expected
   for(int i=0,i<n,i++){
                    ^
Main.java:7: error: illegal start of expression
   for(int i=0,i<n,i++){
                      ^
3 errors
Language: C++

//list index out of rangeエラー表示用
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep1(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)

int main(){
  int n;
  cin >> n;
  string s;
  int AC = 0;
  int　WA = 0;
  int TLE = 0;
  int RE = 0;
  rep1(i, n){
    cin >> s;
    if(s = "AC")AC += 1;
    if(s = "WA")WA += 1;
    if(s = "TLE")TLE += 1;
    if(s = "RE")RE += 1;
  }
  cout << "AC" << " " << x << " " << AC << endl;
  cout << "WA" << " " << x << " " << WA << endl;
  cout << "TLE" << " " << x << " " << TLE << endl;
  cout << "RE" << " " << x << " " << RE << endl;
}



Compiler output:
a.cc:13:3: error: extended character 　 is not valid in an identifier
   13 |   int　WA = 0;
      |   ^
a.cc: In function 'int main()':
a.cc:13:3: error: 'int　WA' was not declared in this scope
   13 |   int　WA = 0;
      |   ^~~~~~~
a.cc:18:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"AC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |     if(s = "AC")AC += 1;
      |        ~~^~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:19:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"WA"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |     if(s = "WA")WA += 1;
      |        ~~^~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:19:17: error: 'WA' was not declared in this scope
   19 |     if(s = "WA")WA += 1;
      |                 ^~
a.cc:20:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"TLE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |     if(s = "TLE")TLE += 1;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:21:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   21 |     if(s = "RE")RE += 1;
      |        ~~^~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:23:26: error: 'x' was not declared in this scope
   23 |   cout << "AC" << " " << x << " " << AC << endl;
      |                          ^
a.cc:24:38: error: 'WA' was not declared in this scope
   24 |   cout << "WA" << " " << x << " " << WA << endl;
      |                                      ^~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int n,A=0,B=0,C=0,D=0;
  cin>>n;
  for(int i=0;i<n;i++){
    string s;
    cin>>s;
    if(s=="AC"){
    A++;
   }
 
       if(s=="WA"){
    B++;
  }

                 if(s=="TLE"){
    C++;
  }

     if(s=="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:28:21: error: 'X' was not declared in this scope
   28 |    cout<<"AC"<<" "<<X<<" "<<A<<endl;
      |                     ^
a.cc:30:20: error: 'TLE' was not declared in this scope
   30 |              cout<<TLE<<" "<<" "<<X<<C<<endl;
      |                    ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
cin>>n;
  int c0=0,c1=0,c2=0,c3=0;
  for(int i=0;i<n;i++)
  {
   string s;
    cin>>s;
    if(s=="AC")
      c0++;
    else if(s=="WA")
      c1++;
    else if(s=="TLE")
      C2++;
    else if(s=="RE")
      c3++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'C2' was not declared in this scope; did you mean 'c2'?
   17 |       C2++;
      |       ^~
      |       c2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
cin>>n;
  int c0=0,c1=0,c2=0,c3=0;
  for(int i=0;i<n;i++)
  {
   int s;
    cin>>s;
    if(s=='AC')
      c0++;
    else if(s=='WA')
      c1++;
    else if(s=='TLE')
      C2++;
    else if(s=='RE')
      c3++;
  }
  return 0;
}


Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     if(s=='AC')
      |           ^~~~
a.cc:14:16: warning: multi-character character constant [-Wmultichar]
   14 |     else if(s=='WA')
      |                ^~~~
a.cc:16:16: warning: multi-character character constant [-Wmultichar]
   16 |     else if(s=='TLE')
      |                ^~~~~
a.cc:18:16: warning: multi-character character constant [-Wmultichar]
   18 |     else if(s=='RE')
      |                ^~~~
a.cc: In function 'int main()':
a.cc:17:7: error: 'C2' was not declared in this scope; did you mean 'c2'?
   17 |       C2++;
      |       ^~
      |       c2
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
cin>>n;
  int c0=0,c1=0,c2=0,c3=0;
  for(int i=0;i<n;i++)
  {
   int s;
    cin>>s;
    if(s=="AC")
      c0++;
    else if(s=="WA")
      c1++;
    else if(s=="TLE")
      C2++;
    else if(s=="RE")
      c3++;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(s=="AC")
      |        ~^~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     else if(s=="WA")
      |             ~^~~~~~
a.cc:16:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(s=="TLE")
      |             ~^~~~~~~
a.cc:17:7: error: 'C2' was not declared in this scope; did you mean 'c2'?
   17 |       C2++;
      |       ^~
      |       c2
a.cc:18:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     else if(s=="RE")
      |             ~^~~~~~
Language: C

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

int main(){
  int a;
  char input[4];
  int ac = 0, wa = 0, tle = 0, re = 0;
  scanf("%d", &a);
  getchar();
  for(int i = 0; i < a; i++){
    gets(input);
    if(strcmp(input, "AC") == 0)
      ac++;
    else if(strcmp(input, "WA") == 0)
      wa++;
    else if(strcmp(input, "TLE") == 0)
      tle++;
    else if(strcmp(input, "RE") == 0)
      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;
}#include <stdio.h>
#include <string.h>

int main(){
  int a;
  char input[4];
  int ac = 0, wa = 0, tle = 0, re = 0;
  scanf("%d", &a);
  getchar();
  for(int i = 0; i < a; i++){
    gets(input);
    if(strcmp(input, "AC") == 0)
      ac++;
    else if(strcmp(input, "WA") == 0)
      wa++;
    else if(strcmp(input, "TLE") == 0)
      tle++;
    else if(strcmp(input, "RE") == 0)
      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:11:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   11 |     gets(input);
      |     ^~~~
      |     fgets
main.c: At top level:
main.c:28:2: error: stray '#' in program
   28 | }#include <stdio.h>
      |  ^
main.c:28:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   28 | }#include <stdio.h>
      |           ^
Language: C

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

int main(){
  int a;
  char input[4];
  int ac = 0; wa = 0; tle = 0; re = 0;
  scanf("%d", &a);
  for(int i = 0; i < a; i++){
    gets(input);
    if(strcmp(input, "AC") == 0)
      ac++;
    else if(strcmp(input, "WA") == 0)
      wa++;
    else if(strcmp(input, "TLE") == 0)
      tle++;
    else if(strcmp(input, "RE") == 0)
      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:15: error: 'wa' undeclared (first use in this function); did you mean 'a'?
    7 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |               ^~
      |               a
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: 'tle' undeclared (first use in this function)
    7 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |                       ^~~
main.c:7:32: error: 're' undeclared (first use in this function)
    7 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |                                ^~
main.c:10:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |     gets(input);
      |     ^~~~
      |     fgets
Language: C

#include <stdio.h>

int main(){
  int a;
  char input[4];
  int ac = 0; wa = 0; tle = 0; re = 0;
  scanf("%d", &a);
  for(int i = 0; i < a; i++){
    gets(input);
    if(strcmp(input, "AC") == 0)
      ac++;
    else if(strcmp(input, "WA") == 0)
      wa++;
    else if(strcmp(input, "TLE") == 0)
      tle++;
    else if(strcmp(input, "RE") == 0)
      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:15: error: 'wa' undeclared (first use in this function); did you mean 'a'?
    6 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |               ^~
      |               a
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:23: error: 'tle' undeclared (first use in this function)
    6 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |                       ^~~
main.c:6:32: error: 're' undeclared (first use in this function)
    6 |   int ac = 0; wa = 0; tle = 0; re = 0;
      |                                ^~
main.c:9:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |     gets(input);
      |     ^~~~
      |     fgets
main.c:10:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   10 |     if(strcmp(input, "AC") == 0)
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 |
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
    int n;cin>>n;
    map <string,int> mapa,string x;
    for(int i=0;i<n;i++){
        cin >>x;
        mapa[x]++;
    }
    cout << "AC x "<<mapa["AC"]<<endl;
    cout << "WA x "<<mapa["WA"]<<endl;
    cout << "TLE x "<<mapa["TLE"]<<endl;
    cout << "RE x "<<mapa["RE"]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected initializer before 'x'
    7 |     map <string,int> mapa,string x;
      |                                  ^
a.cc:9:15: error: 'x' was not declared in this scope
    9 |         cin >>x;
      |               ^
Language: C++

#include<bits/stdc++.h>
#define Vsort(a) sort(a.bigin(), a.end())
#define rep(i,n) for(int i = 0; i < (n); i++)

using namespace std;
using ll = long long;

int main(){
  int n, ac = 0, wa = 0, tle = 0, re = 0;
  cin >> n;
  vector<string> s(n);
  rep(i,n){
    cin >> s[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;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: switch quantity not an integer
   14 |     switch(s[i]){
      |                ^
Language: C++

#include<bits/stdc++.h>
#define Vsort(a) sort(a.bigin(), a.end())
#define rep(i,n) for(int i = 0; i < (n); i++)

using namespace std;
using ll = long long;

int main(){
  int n, ac = 0, wa = 0, tle = 0, re = 0;
  cin >> n;
  vector<string> s(n);
  rep(i,n){
    cin >> s(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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: no match for call to '(std::vector<std::__cxx11::basic_string<char> >) (int&)'
   13 |     cin >> s(i);
      |            ~^~~
a.cc:14:16: error: switch quantity not an integer
   14 |     switch(s[i]){
      |                ^
a.cc:24:16: error: expected ':' before 're'
   24 |       case "RE"
      |                ^
      |                :
   25 |         re++;
      |         ~~
Language: C++

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

int main(){
  ll N;
  cin >> N;
  vector<string> S(N);
  for (int i = 0; i < N; i++){
    cin >> S[i];
  }
  ll A=0, W=0, T=0, R = 0;
  for (int i = 0; i<N; i++){
    if (S[i] == "AC") A++;
    if (S[i] == "WA") W++;
    if (S[i] == "TLE") T++;
    if (S[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:22:41: error: invalid operands of types 'll' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   22 |   cout << "RE" << ' '  << 'x' << ' ' <R << endl;
      |                                       ~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,a=0,w=0,t=0,r=0;
  cin >> n;
  for(int i=0;i<n;i++){
    string s;
    cin >> s;
    if(s=="AC"){
      a++:
    }
    else if(s=="WA"){
      w++;
    }
    else if(s=="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:10: error: expected ';' before ':' token
   10 |       a++:
      |          ^
      |          ;