Language: C++

#include<cstdio>
#include<cmath>
#include<climits>
#include<algorithm>
#include<sstream>
#include<iostream>
#include<string>
#include<queue>
#include<stack>
#include<set>
#include<list>
#include<map>
#include<vector>

using namespace std;


#define rep(i,n) for(int i=0; i<n; i++)
#define rept(i,a,b) for(int i=a; i<b; i++)
#define ll long long

#define IMIN INT_MIN;
#define IMAX INT_MAX;

int maxelem(vector<int> src) {
	int dst = IMIN;
	rep(i, src.size()) {
		dst = (dst > src[i]) ? dst : src[i];
	}
	return dst;
}

int secondelem(vector<int> src) {
	int dst = IMIN;
	int dst2 = IMIN;
	rep(i, src.size()) {
		if (dst < src[i]) {
			dst2 = dst;
			dst = src[i];
		}
		else if (dst2 < src[i]) {
			dst2 = src[i];
		}
	}
	return dst2;
}

vector<int> count(vector<int> a) {
	int ma = maxelem(a);
	vector<int> count(ma+1, 0);
	rep(i, a.size()) {
		count[a[i]]++;
	}
	return count;
}

int find(vector<int> a, int b) {
	rep(i, a.size()) {
		if (a[i] == b) return i;
	}
	return -1;
}

int main(){
	int N, K;
	cin >> N >> K;
	if (N > K) cout << "YES" << endl;
	else cout << "NO" << endl;


	return 0;
}


#include<cstdio>
#include<cmath>
#include<climits>
#include<algorithm>
#include<sstream>
#include<iostream>
#include<string>
#include<queue>
#include<stack>
#include<set>
#include<list>
#include<map>
#include<vector>

using namespace std;


#define rep(i,n) for(int i=0; i<n; i++)
#define rept(i,a,b) for(int i=a; i<b; i++)
#define ll long long

#define IMIN INT_MIN;
#define IMAX INT_MAX;

int maxelem(vector<int> src) {
	int dst = IMIN;
	rep(i, src.size()) {
		dst = (dst > src[i]) ? dst : src[i];
	}
	return dst;
}

int secondelem(vector<int> src) {
	int dst = IMIN;
	int dst2 = IMIN;
	rep(i, src.size()) {
		if (dst < src[i]) {
			dst2 = dst;
			dst = src[i];
		}
		else if (dst2 < src[i]) {
			dst2 = src[i];
		}
	}
	return dst2;
}

vector<int> count(vector<int> a) {
	int ma = maxelem(a);
	vector<int> count(ma+1, 0);
	rep(i, a.size()) {
		count[a[i]]++;
	}
	return count;
}

int find(vector<int> a, int b) {
	rep(i, a.size()) {
		if (a[i] == b) return i;
	}
	return -1;
}

int main(){
	int N, K;
	cin >> N >> K;
	if (N > K) cout << "YES" << endl;
	else cout << "NO" << endl;


	return 0;
}




Compiler output:
a.cc:99:5: error: redefinition of 'int maxelem(std::vector<int>)'
   99 | int maxelem(vector<int> src) {
      |     ^~~~~~~
a.cc:25:5: note: 'int maxelem(std::vector<int>)' previously defined here
   25 | int maxelem(vector<int> src) {
      |     ^~~~~~~
a.cc:107:5: error: redefinition of 'int secondelem(std::vector<int>)'
  107 | int secondelem(vector<int> src) {
      |     ^~~~~~~~~~
a.cc:33:5: note: 'int secondelem(std::vector<int>)' previously defined here
   33 | int secondelem(vector<int> src) {
      |     ^~~~~~~~~~
a.cc:122:13: error: redefinition of 'std::vector<int> count(std::vector<int>)'
  122 | vector<int> count(vector<int> a) {
      |             ^~~~~
a.cc:48:13: note: 'std::vector<int> count(std::vector<int>)' previously defined here
   48 | vector<int> count(vector<int> a) {
      |             ^~~~~
a.cc:131:5: error: redefinition of 'int find(std::vector<int>, int)'
  131 | int find(vector<int> a, int b) {
      |     ^~~~
a.cc:57:5: note: 'int find(std::vector<int>, int)' previously defined here
   57 | int find(vector<int> a, int b) {
      |     ^~~~
a.cc:138:5: error: redefinition of 'int main()'
  138 | int main(){
      |     ^~~~
a.cc:64:5: note: 'int main()' previously defined here
   64 | int main(){
      |     ^~~~