Language: C++

#include<stdio.h>
#include <iostream>
#include<string>
#include<algorithm>
#include<sstream>
#include<math.h>
#include<queue>
#include<stack>
#include<list>
#include<vector>
#include<map>
#include<set>
#define FOR(i,a) for(int i=0;i<a;i++)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define ll long long
using namespace std;


int a, b;
bool flg = true;
int main() {
	cin >> a >> b;
	sort(a, a.size());
	sort(b, b.size());
	FOR(i, a.size()) {
		if (i == b.size()) {
			cout << "No" << endl;
			flg = false;
			break;
		}
		if (a[i] > b[b, size() - i - 1]) {
			cout << "No" << endl;
			flg = false;
			break;
		}
		else if (a[i] < b[b.size() - i - 1) {
			cout << "Yes" << endl;
			flg = false;
			break;
		}
		if (flg)cout << "Yes" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: request for member 'size' in 'a', which is of non-class type 'int'
   23 |         sort(a, a.size());
      |                   ^~~~
a.cc:24:19: error: request for member 'size' in 'b', which is of non-class type 'int'
   24 |         sort(b, b.size());
      |                   ^~~~
a.cc:25:18: error: request for member 'size' in 'a', which is of non-class type 'int'
   25 |         FOR(i, a.size()) {
      |                  ^~~~
a.cc:13:32: note: in definition of macro 'FOR'
   13 | #define FOR(i,a) for(int i=0;i<a;i++)
      |                                ^
a.cc:26:28: error: request for member 'size' in 'b', which is of non-class type 'int'
   26 |                 if (i == b.size()) {
      |                            ^~~~
a.cc:31:22: error: invalid types 'int[int]' for array subscript
   31 |                 if (a[i] > b[b, size() - i - 1]) {
      |                      ^
a.cc:31:37: error: no matching function for call to 'size()'
   31 |                 if (a[i] > b[b, size() - i - 1]) {
      |                                 ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:2:
/usr/include/c++/14/bits/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   candidate expects 1 argument, 0 provided
a.cc:36:27: error: invalid types 'int[int]' for array subscript
   36 |                 else if (a[i] < b[b.size() - i - 1) {
      |                           ^
a.cc:36:37: error: request for member 'size' in 'b', which is of non-class type 'int'
   36 |                 else if (a[i] < b[b.size() - i - 1) {
      |                                     ^~~~
a.cc:36:51: error: expected ']' before ')' token
   36 |                 else if (a[i] < b[b.size() - i - 1) {
      |                                                   ^
      |                                                   ]