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

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <cstdlib>
#include <algorithm>
#include <random>
#include <cassert>
using namespace std;
#define LL long long
#define MP(a, b) make_pair(a, b)
#define MMP(a, b, c) make_pair(make_pair(a, b), c)
#define MAX 1000000000
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define LL_MIN -9223372036854775808
#define LL_MAX 9223372036854775807
#define PI 3.14159265359

int main(){
    iostream::sync_with_stdio(false);

    string w;
    cin >> w;
    int kai[26] = {};
    for(int i=0; i<w.size(); i++){
        kai[w[i]-'a']++;
    }
    for(int i=0; i<26; i++){
        if(kai[i]%2 === 1){
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:23: error: expected primary-expression before '=' token
   41 |         if(kai[i]%2 === 1){
      |                       ^
Language: C

#include<stdio.h>
#include<string.h>
using namespace std;
int v[105];
int main()
{char w[105];
int len,cnt,value;
	scanf("%s",w);
	len=strlen(w);
for(int i=0;i<len;i++)
	{value=w[i]-'a';
			v[value]++;
	}
	for(int j=0;j<26;j++)
	{
		if(v[j]%2==1) 
			cnt=0;
	
		else if(v[j]%2==0) cnt=1;
	}
	if(cnt==1) printf("Yes");
	else if(cnt==0) printf("No");
		return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include<stdio.h>

int main(){
int count[30]={0};
int i;
char s[101];
scanf("%s",s);
for(i=0;s[i]!=0;i++){
count[s[i]-'a']++;
}
for(i=0;i<30;i++){
if(count[i]%2==1){
puts("No");
return 0;
}
}
puts("Yes"");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:11: warning: missing terminating " character
   17 | puts("Yes"");
      |           ^
main.c:17:11: error: missing terminating " character
   17 | puts("Yes"");
      |           ^~~
main.c:17:11: error: expected ')' before 'return'
   17 | puts("Yes"");
      |     ~     ^
      |           )
   18 | return 0;
      | ~~~~~~     
main.c:18:10: error: expected ';' before '}' token
   18 | return 0;
      |          ^
      |          ;
   19 | }
      | ~
Language: C++

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int num[30];
int main()
{
    char s[103];
    gets(s);
    int l = strlen(s);
    for(int i=0;i<l;i++)
    {
        num[ s[i]-'a' ]++;
    }
    bool flag = 0;
    for(int i=0;i<26;i++)
        if(num[i]&1)
    {
        flag = 1;
        break;
    }
    if(flag)
        puts("No");
    else puts("Yes");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<stdio.h>
#include<string.h>
int num[30];
int main()
{
    int s[103];
    gets(s);
    int l = strlen(s);
    for(int i=0;i<l;i++)
    {
        num[ s[i]-'a' ]++;
    }
    bool flag = 0;
    for(int i=0;i<26;i++)
        if(num[i]&1)
    {
        flag = 1;
        break;
    }
    if(flag)
        cout<<"No"<<endl;
    else cout<<"Yes"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(s);
      |     ^~~~
      |     getw
a.cc:8:20: error: cannot convert 'int*' to 'const char*'
    8 |     int l = strlen(s);
      |                    ^
      |                    |
      |                    int*
In file included from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:21:21: error: 'endl' was not declared in this scope
   21 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:22:10: error: 'cout' was not declared in this scope
   22 |     else cout<<"Yes"<<endl;
      |          ^~~~
a.cc:22:23: error: 'endl' was not declared in this scope
   22 |     else cout<<"Yes"<<endl;
      |                       ^~~~
Language: C++

char w[105];
int flag[27];
int k;

int main()
{
	scanf("%s",w);
	int len = strlen(w);
	for(int i = 0;i < len; i++){
		flag[w[i] - 'a']++;
	}
	for(int i = 0;i < 26;i++){
		if(flag[i]%2 != 0) {
			printf("NO\n");return 0;
		}
	}
	printf("YES\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
    7 |         scanf("%s",w);
      |         ^~~~~
a.cc:8:19: error: 'strlen' was not declared in this scope
    8 |         int len = strlen(w);
      |                   ^~~~~~
a.cc:1:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | char w[105];
a.cc:14:25: error: 'printf' was not declared in this scope
   14 |                         printf("NO\n");return 0;
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | char w[105];
a.cc:17:9: error: 'printf' was not declared in this scope
   17 |         printf("YES\n");
      |         ^~~~~~
a.cc:17:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	string w;
	cin >> w;
	vector<int> word(30);
	for (int i = 0; i < w.size(); i++) {
		word[w[i] - 'a']++;
	}
	for (int i = 0; i < 26; i++) {
		if (word[i]%2 != 0) {
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0:

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected ';' before ':' token
   17 |         return 0:
      |                 ^
      |                 ;
a.cc:17:17: error: expected primary-expression before ':' token
Language: C++

#include<cstdio>
#include<string.h>
int main(){
	char a[100];
	int i=0;
	gets(a);
	while(a[i]!='\0'){
		i++;
		}
	if(i%2==0){printf("YES\n");}
	else {printf("NO\n");}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
	char a[100];
	int i=0,b;
	gets(a);
	while(a[i]!='\0'){
		i++;
		}
	if(i%2==0){printf("YES\n");}
	else {printf("NO\n");}
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<stdio.h>
#include<algorithm>
#include<stdlib.h>
#define _USE_MATH_DEFINES
#include<math.h>
#include<numeric>
#include<iomanip>

using namespace std;


int main() {
	string s; cin >> s;
	sort(s.begin(), s.end());
	int count = 1;
	int tmp = 0;
	//cout << s << endl;
	if (s.size != 1) {
		for (int i = 0; i < s.size() - 1; i++) {
			if (s[i] == s[i + 1]) {
				count++;
			}
			else if (count % 2 == 1) {
				tmp++;
				break;
			}
			else {
				count = 1;
			}
		}
	}
	else {
		tmp++;
	}
	if (tmp == 0) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}

    

Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   21 |         if (s.size != 1) {
      |             ~~^~~~
      |                   ()
Language: C++

#include<stdio.h>
int strlng(char a[])
{
    int i;
    for(i=1; a[i]!='\0'; i++)
    {

    }
    return i;
}
int main()
{
    char w[1000];
    int i, j, ln, count, flag=0;
    scanf("%s", w);
    ln = strlng(w);
    for(i=0; i<ln; i++)
    {
        count = 0;
        for(j=0; j<ln; j++)
        {
            if(w[j] == w[i])
            {
                count++;
            }
        }
        if(count%2 == 0)
        {
            flag=1;
        }
        else(count%2 != 0)
        {
            printf("No\n");
            return 0;
        }
    }
    if(flag==1)
    {
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:27: error: expected ';' before '{' token
   31 |         else(count%2 != 0)
      |                           ^
      |                           ;
   32 |         {
      |         ~
Language: C

#include <stdio.h>
main()
{
char w[99],c;
int i = 0,j = 0,k = 0,n[25];
for(i = 0;i <= 25;i++)
{
n[i] = 0;
}
while(scanf("%c",&c),c!='\n')
{
n[c-97]++;
w[i++] = c;
}
w[i] = '\0';
for(i = 0;i <=25;i++)
{
if(n[i] != 1 && n%2 != 1)
{
j++;
}
else if(n[i] == 0)
{
k++;
}
else
{
break;
}
}
if(j+k == 26 && k!= 26)
printf("Yes\n");
else
printf("No\n");
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:18:18: error: invalid operands to binary % (have 'int *' and 'int')
   18 | if(n[i] != 1 && n%2 != 1)
      |              ~~  ^
      |              |
      |              int *
Language: C

#include <stdio.h>
main()
{
char w[99],c;
int i = 0,j = 0,k = 0,n[25];
for(i = 0;i <= 25;i++)
{
n[i] = 0;
}
while(scanf("%c",&c),c!='\n')
{
n[c-97]++;
w[i++] = c;
}
w[i] = '\0';
for(i = 0;i <=25;i++)
{
if(n[i] != 1 && n%2 != 1)
{
j++;
}
else if(n[i] == 0)
{
k++;
}
else
{
break;
}
}
if(m+k == 26 && k!= 26)
printf("Yes\n");
else
printf("No\n");
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:18:18: error: invalid operands to binary % (have 'int *' and 'int')
   18 | if(n[i] != 1 && n%2 != 1)
      |              ~~  ^
      |              |
      |              int *
main.c:31:4: error: 'm' undeclared (first use in this function)
   31 | if(m+k == 26 && k!= 26)
      |    ^
main.c:31:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int hash[26];
int main(){
	int i;
	string s;
	cin>>s;
	for(i=0;i<s.size();i++){
		hash[s[i]-'a']++;
	}
	for(i=1;i<=26;i++){
		if(hash[i]%2!=0){
			cout<<"No";
			return 0;
		}
	}
	cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: reference to 'hash' is ambiguous
    9 |                 hash[s[i]-'a']++;
      |                 ^~~~
In file included from /usr/include/c++/14/string_view:50,
                 from /usr/include/c++/14/bits/basic_string.h:47,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:3:5: note:                 'int hash [26]'
    3 | int hash[26];
      |     ^~~~
a.cc:12:20: error: reference to 'hash' is ambiguous
   12 |                 if(hash[i]%2!=0){
      |                    ^~~~
/usr/include/c++/14/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
a.cc:3:5: note:                 'int hash [26]'
    3 | int hash[26];
      |     ^~~~
Language: C++

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

int main(void) {
	char w[1000];
	int i,a[26]={0},d,l;
	gets(w);
	l=strlen(w);
	for(i=0;i<l;i++){
		d=w[i]-97;
		a[d]++;
	}
	for(i=0;i<26;i++){
		if(a[i]%2!=0){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(w);
      |         ^~~~
      |         getw
Language: Java

import java.util.Scanner;

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

		String a=sc.next();

		int[] cmj=new int[26];

		for(int i=0; i<a.length(); i++) {
			cmj[a.charAt(i)-97]++;
		}

		for(int i=0; i<26; i++) {
			if(cmj[i]%2==1) {
				System.out.println("No");
				System.exit(0);
			}
		}
		System.out.println("Yes");
	}
}

Compiler output:
Main.java:3: error: '{' expected
class Main
          ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java



import java.math.BigDecimal;
import java.util.*;

public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String w = sc.next();
       
        String res = "Yes";
        for (char c='a'; c<='z'; c++){
            int count = 0;
            for (int i=0; i<w.length(); i++){
                if (w.charAt(i) == c){
                    count++;
                }
            }
            
        }
      if (count%2 == 1){
                res = "No";
                
            }
        System.out.println(res);
    }
}

Compiler output:
Main.java:22: error: cannot find symbol
      if (count%2 == 1){
          ^
  symbol:   variable count
  location: class Main
1 error
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){

  string w;
  cin >> w;
  string v = w;

  sort(v.begin(), v.end());
  v.erase(unique(v.begin(), v.end()), v.end());

  char t;
  int count;
  int flag;

  for (int i = 0; i < v.size(); i++){
    t = v[i];
    count = 0;
    for (int j = 0; j < w.size(); j++){
      if (w[j] == t){
        count += 1;
      }
    }

    if ((count % 2) != 0){
      cout << "No" << endl;
      return 0;
    }
  }

  /*
  if (flag == 0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  */

  cout << "Yes" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(v.begin(), v.end());
      |   ^~~~
      |   short
a.cc:13:11: error: 'unique' was not declared in this scope
   13 |   v.erase(unique(v.begin(), v.end()), v.end());
      |           ^~~~~~
Language: C++

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

int main(void) {
	// your code goes here
	char s[110];
	scanf("%s", s);
	int l=strlen(s);
	int arr[26]={0};
	int i;
	for(i=0; i<l; ++i){
		++arr[s[i]-97];
	}
	for(i=0; i<26; ++i){
		if(arr[i]%2!=0){
			break;
		}
	}
	if(i==26) printf("Yes");
	else printf("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'strlen' was not declared in this scope
    8 |         int l=strlen(s);
      |               ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<stdlib.h>
  +++ |+#include <cstring>
    3 |
Language: C++

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

int main()
{
    char s[110];
    int c[26],i,t;

    memset(c, 0, 26*sizeof(c[0]));

    gets(s);
    i=0;
    while(s[i]!='\0')
    {
        t=s[i] - 'a';
        c[t]++;
        i++;
    }

    for(i=0;i<26;i++)
    {
        if(c[i]%2!=0)
        {
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    cin >> s;

    sort(s.begin(),s.end());

    if(w.size()%2 == 0)
    {
        for(int i=1;i<s.size();i+=2)
        {
            if(s[i] != s[i-1])
            {
                cout << "No" << endl;
                return 0;
            }
        }

        cout << "Yes" << endl;
    }
    else
        cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'w' was not declared in this scope
   12 |     if(w.size()%2 == 0)
      |        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    string w;
    cin >> w;

    sort(w.begin(),w.end());

    if(w.size()%2 == 0)
    {
        for(int i=1;i<s.size();i+=2)
        {
            if(s[i] != s[i-1])
            {
                cout << "No" << endl;
                return 0;
            }
        }

        cout << "Yes" << endl;
    }
    else
        cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: 's' was not declared in this scope
   14 |         for(int i=1;i<s.size();i+=2)
      |                       ^
Language: C++

#include <iostream>
#include <Cstring>
using namespace std;
int main() {
    char string[100];
    int stringlong,n,s;
    n = 1;
    s = 0;
    cin >> string;
    stringlong = strlen(string);
    for (int i = 0; i < stringlong; ++i) {
        for (int j = 0; j < stringlong; ++j) {
            if (string[i] == string[j]){
                n++;
            }
          }
          if (n % 2 != 0) {
              s++;
          }
          n = 0;
    }
    if (s > 1){
        cout << "No" << endl;
    } else {
        cout << "Yes" << endl;
    }
    return 0;
}

Compiler output:
a.cc:2:10: fatal error: Cstring: No such file or directory
    2 | #include <Cstring>
      |          ^~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
    string a;
    cin >> a;
    int arr[1000];
    memset(arr,0,sizeof(arr));
    for(int i=0;i<a.size();i++){
        arr[(int)a[i]]++;
    }
    int c=0;
    for (int i="a";i<="z",i++){
        if(arr[i]%2!=0) c++;
    }
    if (c!=0) cout << "No" <<endl;
    else cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   13 |     for (int i="a";i<="z",i++){
      |                ^~~
      |                |
      |                const char*
a.cc:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     for (int i="a";i<="z",i++){
      |                    ~^~~~~
a.cc:13:30: error: expected ';' before ')' token
   13 |     for (int i="a";i<="z",i++){
      |                              ^
      |                              ;
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <limits>
#include <vector>
using namespace std;
using ll =long long;

int main (void) {
  int A[26]={0},s,x;
  int main (void) {
    while(cin >> s) ++A[s-'a'];
    for (i=0;i<26;i++) A[i]%2?x=1:0;
    cout <<(x?"No":"Yes");
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: a function-definition is not allowed here before '{' token
   11 |   int main (void) {
      |                   ^
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:9:17: note: to match this '{'
    9 | int main (void) {
      |                 ^
Language: C++

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

int main() {
  int x;
  string a;
  cin >> a;
  vector<char> vector (a.size());
  for(int i = 0;i < a.size();i++){
    vec.at(i) = a.at(i);
  }
  sort(vec.begin(),vec.end());
  for(int i = 0;i < vec.size();i = i + 2){
  if(vec.at(i) == vec.at(i + 1)){
    x++;}
  }
  if (x == vec.size() / 2){
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'vec' was not declared in this scope
   10 |     vec.at(i) = a.at(i);
      |     ^~~
a.cc:12:8: error: 'vec' was not declared in this scope
   12 |   sort(vec.begin(),vec.end());
      |        ^~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include<string.h>
using namespace std ;
#define N 110
int main()
{
      int i,j,m,flag=1;
      char x[N];
      gets(x);
      m=strlen(x);
      int y[26];
      memset(y,0,sizeof(y));
      for(i=0;i<m;i++)
      {
          y[x[i]-'a']++;
      }
      for(j=0;j<26;j++)
      {
          if(y[j]%2!=0)
          {
              flag=0;
              break;
          }
      }
      if(flag) printf("Yes");
      else printf("No");
    return 0;
}



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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;

#define MAX_N 105

char str[MAX_N];
int len,t;
bool ok;

int main(){
    scanf("%s",str);
    ok = true;
    t = 1;
    len=(int)strlen(str);
    if(len == 1){
        ok = false;
    }
    sort(str,str+len);
    for(int i = 0;i < len;i++){
        if(str[i] == str[i+1]) {
            t++;
        }
        else if(t%2){
            ok = false;
            break;
        }
        else{
            t = 1;
        }
    }
    if(ok)  cout<<"Yes"<<endl;
    else    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |     sort(str,str+len);
      |     ^~~~
      |     short
Language: C++

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

#define MAX_N 105

char str[MAX_N];
int len,t;
bool ok;

int main(){
    scanf("%s",str);
    ok = true;
    t = 1;
    len=(int)strlen(str);
    if(len == 1){
        ok = false;
    }
    sort(str,str+len);
    for(int i = 0;i < len;i++){
        if(str[i] == str[i+1]) {
            t++;
        }
        else if(t%2){
            ok = false;
            break;
        }
        else{
            t = 1;
        }
    }
    if(ok)  cout<<"Yes"<<endl;
    else    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: 'strlen' was not declared in this scope
   15 |     len=(int)strlen(str);
      |              ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:19:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   19 |     sort(str,str+len);
      |     ^~~~
      |     short
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
    string str;
    getline(cin, str);
    auto ary = str.c_str();
    bool ret = true;
    for (char c = 'a'; c <= 'z'; ++c)
    {
        ret &=
            (count(ary, ary + str.size(), c) % 2 == 0);
        if (!ret)
        {
            break;
        }
    }

    cout << (ret ? "Yes" : "No") << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: 'count' was not declared in this scope
   15 |             (count(ary, ary + str.size(), c) % 2 == 0);
      |              ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <map>
#include <vector>
using name space std;
string w;
bool f=true;
vector <char> s;
map <char,int> a;

int main(){
  cin>>w;
  for(int i=0;i<w.length();i++){
    if(a[w[i]]==0){
      s.push_back(w[i]);
    }
    a[w[i]]++;
  }
  for(int i=0;i<s.size();i++){
    if(a[s[i]]%2==1){
      f=false;
      break;
    }
  }
  if(f){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:5:7: error: expected nested-name-specifier before 'name'
    5 | using name space std;
      |       ^~~~
a.cc:6:1: error: 'string' does not name a type; did you mean 'stdin'?
    6 | string w;
      | ^~~~~~
      | stdin
a.cc:8:1: error: 'vector' does not name a type
    8 | vector <char> s;
      | ^~~~~~
a.cc:9:1: error: 'map' does not name a type
    9 | map <char,int> a;
      | ^~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |   cin>>w;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:8: error: 'w' was not declared in this scope
   12 |   cin>>w;
      |        ^
a.cc:14:8: error: 'a' was not declared in this scope
   14 |     if(a[w[i]]==0){
      |        ^
a.cc:15:7: error: 's' was not declared in this scope
   15 |       s.push_back(w[i]);
      |       ^
a.cc:17:5: error: 'a' was not declared in this scope
   17 |     a[w[i]]++;
      |     ^
a.cc:19:17: error: 's' was not declared in this scope
   19 |   for(int i=0;i<s.size();i++){
      |                 ^
a.cc:20:8: error: 'a' was not declared in this scope
   20 |     if(a[s[i]]%2==1){
      |        ^
a.cc:26:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |     cout<<"YES"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |     cout<<"YES"<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:28:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |     cout<<"NO"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:28:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |     cout<<"NO"<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  for(int i=0;i<w.size();i++)
    ch[w[i]]++;
  }
  bool can=true;
  map<char,int>::iterator it;
  for(it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc:15:3: error: expected unqualified-id before 'for'
   15 |   for(it=ch.begin();it!=ch.end();++it)
      |   ^~~
a.cc:15:21: error: 'it' does not name a type; did you mean 'int'?
   15 |   for(it=ch.begin();it!=ch.end();++it)
      |                     ^~
      |                     int
a.cc:15:34: error: expected unqualified-id before '++' token
   15 |   for(it=ch.begin();it!=ch.end();++it)
      |                                  ^~
a.cc:17:3: error: expected unqualified-id before 'if'
   17 |   if(can)cout<<"Yes"<<endl;
      |   ^~
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  for(int i=0;i<w.size();i++)
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc:14:3: error: expected unqualified-id before 'for'
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |   ^~~
a.cc:14:45: error: 'it' does not name a type; did you mean 'int'?
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                             ^~
      |                                             int
a.cc:14:58: error: expected unqualified-id before '++' token
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                                          ^~
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(can)cout<<"Yes"<<endl;
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  for(int i=0;i<strlen(w);i++)
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'strlen' was not declared in this scope
   10 |   for(int i=0;i<strlen(w);i++)
      |                 ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<map>
  +++ |+#include <cstring>
    4 | using namespace std;
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'for'
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |   ^~~
a.cc:14:45: error: 'it' does not name a type; did you mean 'int'?
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                             ^~
      |                                             int
a.cc:14:58: error: expected unqualified-id before '++' token
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                                          ^~
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(can)cout<<"Yes"<<endl;
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  for(int i=0;i<w.strlen();i++)
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'strlen'
   10 |   for(int i=0;i<w.strlen();i++)
      |                   ^~~~~~
a.cc: At global scope:
a.cc:14:3: error: expected unqualified-id before 'for'
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |   ^~~
a.cc:14:45: error: 'it' does not name a type; did you mean 'int'?
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                             ^~
      |                                             int
a.cc:14:58: error: expected unqualified-id before '++' token
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
      |                                                          ^~
a.cc:16:3: error: expected unqualified-id before 'if'
   16 |   if(can)cout<<"Yes"<<endl;
      |   ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  while(true){
    if(w[i].empty())break;
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: request for member 'empty' in 'w.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   11 |     if(w[i].empty())break;
      |             ^~~~~
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  while(true){
    if(w[i]==null)break;
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end();++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'null' was not declared in this scope
   11 |     if(w[i]==null)break;
      |              ^~~~
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map<char,int> ch;
  string w;
  cin>>w;
  int i=0;
  while(true){
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:57: error: could not convert '(((void)std::operator!=(it, ch.std::map<char, int>::end())), it.std::_Rb_tree_iterator<std::pair<const char, int> >::operator++())' from 'std::_Rb_tree_iterator<std::pair<const char, int> >::_Self' to 'bool'
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                             ~~~~~~~~~~~~^~~~~
      |                                                         |
      |                                                         std::_Rb_tree_iterator<std::pair<const char, int> >::_Self
a.cc:14:62: error: expected ';' before ')' token
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                                              ^
      |                                                              ;
Language: C++

#include<iostream>
#include<string>
#include<map>
using namespace std;
int main(){
  map ch<char,int>;
  string w;
  cin>>w;
  int i=0;
  while(true){
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '<' token
    6 |   map ch<char,int>;
      |         ^
a.cc:11:5: error: 'ch' was not declared in this scope
   11 |     ch[w[i]]++;
      |     ^~
a.cc:14:34: error: 'ch' was not declared in this scope
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                  ^~
a.cc:14:62: error: expected ';' before ')' token
   14 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                                              ^
      |                                                              ;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  map ch<char,int>;
  string w;
  cin>>w;
  int i=0;
  while(true){
    ch[w[i]]++;
  }
  bool can=true;
  for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
    if(it->second%2!=0)can=false;
  if(can)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'map' was not declared in this scope
    5 |   map ch<char,int>;
      |   ^~~
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:10:5: error: 'ch' was not declared in this scope
   10 |     ch[w[i]]++;
      |     ^~
a.cc:13:11: error: expected primary-expression before 'char'
   13 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |           ^~~~
a.cc:13:45: error: 'it' was not declared in this scope; did you mean 'i'?
   13 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                             ^~
      |                                             i
a.cc:13:49: error: 'ch' was not declared in this scope
   13 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                                 ^~
a.cc:13:62: error: expected ';' before ')' token
   13 |   for(map<char,int>::iterator it=ch.begin();it!=ch.end(),++it)
      |                                                              ^
      |                                                              ;
Language: C++

#include<iostream>
#include<map>
#include<string>
using namespace std;
int main(){
  map<char,int> mp;
  string s;
  cin>>s;
  for(int i=0;i<s.size;i++){
    mp[s[i]]++;
  }
  int total=0;
  for(auto itr = mp.begin(); itr != mp.end(); ++itr) {
    total+=itr->second;
    }
  if(total%2==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for(int i=0;i<s.size;i++){
      |                 ~~^~~~
      |                       ()
Language: C++

#include<iostream>
#include<map>
#include<string>
using namespace std;
int main(){
  map<char,int> mp;
  string s;
  cin>>s;
  for(int i=0;i<s.size;i++){
    mp[char(s.substr(i,1))]++;
  }
  int total=0;
  for(auto itr = mp.begin(); itr != mp.end(); ++itr) {
    total+=itr->second;
    }
  if(total%2==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for(int i=0;i<s.size;i++){
      |                 ~~^~~~
      |                       ()
a.cc:10:8: error: invalid cast from type 'std::__cxx11::basic_string<char>' to type 'char'
   10 |     mp[char(s.substr(i,1))]++;
      |        ^~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<map>
#include<string>
using namespace std;
int main(){
  map<char,int> mp;
  string s;
  cin>>s;
  for(int i=0;i<s.size;i++){
    mp[s.substr(i,1)]++;
  }
  int total=0;
  for(auto itr = mp.begin(); itr != mp.end(); ++itr) {
    total+=itr->second;
    }
  if(total%2==0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for(int i=0;i<s.size;i++){
      |                 ~~^~~~
      |                       ()
a.cc:10:7: error: no match for 'operator[]' (operand types are 'std::map<char, int>' and 'std::__cxx11::basic_string<char>')
   10 |     mp[s.substr(i,1)]++;
      |       ^
In file included from /usr/include/c++/14/map:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_map.h:504:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = char; _Tp = int; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, int> >; mapped_type = int; key_type = char]'
  504 |       operator[](const key_type& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:504:34: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'const std::map<char, int>::key_type&' {aka 'const char&'}
  504 |       operator[](const key_type& __k)
      |                  ~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_map.h:524:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](key_type&&) [with _Key = char; _Tp = int; _Compare = std::less<char>; _Alloc = std::allocator<std::pair<const char, int> >; mapped_type = int; key_type = char]'
  524 |       operator[](key_type&& __k)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_map.h:524:29: note:   no known conversion for argument 1 from 'std::__cxx11::basic_string<char>' to 'std::map<char, int>::key_type&&' {aka 'char&&'}
  524 |       operator[](key_type&& __k)
      |                  ~~~~~~~~~~~^~~
Language: C++

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

int main() {
	string w;
	bool check;
	int cnt[26] = { };
	cin >> w;
	for (auto x : w) {
		cnt[x % 26]++;
	}
	for (int i = 0; i < 26; i++) {
		if (cnt[i] % 2) {
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string w;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclue<bits/stdc++.h>
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> w;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:8:16: error: 'w' was not declared in this scope
    8 |         cin >> w;
      |                ^
a.cc:14:25: error: 'cout' was not declared in this scope
   14 |                         cout << "No" << endl;
      |                         ^~~~
a.cc:14:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:41: error: 'endl' was not declared in this scope
   14 |                         cout << "No" << endl;
      |                                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue<bits/stdc++.h>
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:18:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

<?php

$input = file_get_contents('php://stdin');
$counts = count_chars($input, 1);
echo count(array_unique($counts)) === 1 ? 'Yes' : 'No';

Compiler output:
a.cc:3:28: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    3 | $input = file_get_contents('php://stdin');
      |                            ^~~~~~~~~~~~~
a.cc:5:43: warning: multi-character character constant [-Wmultichar]
    5 | echo count(array_unique($counts)) === 1 ? 'Yes' : 'No';
      |                                           ^~~~~
a.cc:5:51: warning: multi-character character constant [-Wmultichar]
    5 | echo count(array_unique($counts)) === 1 ? 'Yes' : 'No';
      |                                                   ^~~~
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:4:1: error: '$counts' does not name a type; did you mean 'const'?
    4 | $counts = count_chars($input, 1);
      | ^~~~~~~
      | const
a.cc:5:1: error: 'echo' does not name a type
    5 | echo count(array_unique($counts)) === 1 ? 'Yes' : 'No';
      | ^~~~
Language: C++

#include <iostream>
#include <string.h>
int a[30];
string s;

int main(){
 	cin >> s;
  	for(int i=0;i<s.size();i++) a[s[i]-'a']++;
	for(int i=0;i<30;i++) if(a[i]%2){cout << "No" << endl; return 0;}
  	
  	cout << "Yes" << endl;
  	return 0;
}

Compiler output:
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> s;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:16: error: 's' was not declared in this scope
    7 |         cin >> s;
      |                ^
a.cc:9:42: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         for(int i=0;i<30;i++) if(a[i]%2){cout << "No" << endl; return 0;}
      |                                          ^~~~
      |                                          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:58: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         for(int i=0;i<30;i++) if(a[i]%2){cout << "No" << endl; return 0;}
      |                                                          ^~~~
      |                                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << "Yes" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~