Language: C++

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

int main() {
	string s; cin >> s;
	vector<string, int> ans;

	for (int i = 0; i < s.length(); i++) {
		ans[s[i]] += 1;
	}

	for (vector<string,int>::iterator i = ans.begin(); i != ans.end(); i++) {
		if (ans[i] % 2) {
			cout << "No" << endl;
			return 0;
		}
	}

	cout << "Yes" << endl;
	return 0; 
}


Compiler output:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'struct std::_Vector_base<std::__cxx11::basic_string<char>, int>':
/usr/include/c++/14/bits/stl_vector.h:428:11:   required from 'class std::vector<std::__cxx11::basic_string<char>, int>'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:8:22:   required from here
    8 |         vector<string, int> ans;
      |                             ^~~
/usr/include/c++/14/bits/stl_vector.h:87:28: error: 'int' is not a class, struct, or union type
   87 |         rebind<_Tp>::other _Tp_alloc_type;
      |                            ^~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:89:9: error: 'int' is not a class, struct, or union type
   89 |         pointer;
      |         ^~~~~~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'class std::vector<std::__cxx11::basic_string<char>, int>':
a.cc:8:22:   required from here
    8 |         vector<string, int> ans;
      |                             ^~~
/usr/include/c++/14/bits/stl_vector.h:518:20: error: '_M_allocate' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, int>::_Base'
  518 |       using _Base::_M_allocate;
      |                    ^~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:519:20: error: '_M_deallocate' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, int>::_Base'
  519 |       using _Base::_M_deallocate;
      |                    ^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:521:20: error: '_M_get_Tp_allocator' has not been declared in 'std::vector<std::__cxx11::basic_string<char>, int>::_Base'
  521 |       using _Base::_M_get_Tp_allocator;
      |                    ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::__cxx11::basic_string<char>; _Alloc = int]':
a.cc:8:22:   required from here
    8 |         vector<string, int> ans;
      |                             ^~~
/usr/include/c++/14/bits/stl_vector.h:136:24: error: 'int' is not a class, struct, or union type
  136 |         _Vector_impl() _GLIBCXX_NOEXCEPT_IF(
      |                        ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:20: error: no match for 'operator[]' (operand types are 'std::vector<std::__cxx11::basic_string<char>, int>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   11 |                 ans[s[i]] += 1;
      |                    ^
a.cc:14:51: error: 'class std::vector<std::__cxx11::basic_string<char>, int>' has no member named 'begin'
   14 |         for (vector<string,int>::iterator i = ans.begin(); i != ans.end(); i++) {
      |                                                   ^~~~~
a.cc:14:60: error: 'i' was not declared in this scope
   14 |         for (vector<string,int>::iterator i = ans.begin(); i != ans.end(); i++) {
      |                                                            ^
a.cc:14:69: error: 'class std::vector<std::__cxx11::basic_string<char>, int>' has no member named 'end'
   14 |         for (vector<string,int>::iterator i = ans.begin(); i != ans.end(); i++) {
      |                                                                     ^~~
/usr/include/c++/14/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::_Vector_impl::_Vector_impl() [with _Tp = std::__cxx11::basic_string<char>; _Alloc = int]':
/usr/include/c++/14/bits/stl_vector.h:314:7:   required from here
  314 |       _Vector_base() = default;
      |       ^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:141:26: error: 'int' is not a class, struct, or union type
  141 |         : _Tp_alloc_type()
      |                          ^