For this Question: Given a deque of N integers and an integer K. Reversing the first K elements of a deque and print it.First line contains an integer N and K.
Next line contains N space separated integers denoting elements of deque.

Constraints
1 <= K <= N <= 10^5
0 <= Ai<= 10^5Print N space separated integers - the elements of deque after reversing the first K elements.Sample Input 1:
5 2
1 2 3 4 5

Output 
2 1 3 4 5

Explanation:
Reversing : (1 2)(3 4 5) - > (2 1)(3 4 5) 

Sample Input 2:
4 3
1 3 4 2

Output 
4 3 1 2

Explanation
Reversing : (1 3 4)(2) - > (4 3 1)(2), I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
#define endl            "\n"
#define ll				long long int
#define f(n) 			for(int i=0;i<n;i++)
#define fo(n)			for(int j=0;j<n;j++)
#define foo(n)			for(int i=1;i<=n;i++)
#define ff 				first
#define ss 				second
#define pb 				push_back
#define pii 			pair<int,int>
#define vi 				vector<int>
#define vp 				vector<pii>
#define test            int tt; cin>>tt; while(tt--)
#define mod 			1000000007
void fastio()
{
	ios_base::sync_with_stdio(0); cin.tie(0);
#ifndef ONLINE_JUDGE
	freopen("Input 4.txt", "r", stdin);
	freopen("Output 4.txt", "w", stdout);
#endif
}

int main() {
	fastio();
	int n, k;
	cin >> n >> k;
	deque<int>d;
	f(n) {
		int x;
		cin >> x;
		d.push_back(x);
	}
	for (int i = k - 1; i >= 0; i--) {
		cout << d[i] << " ";
	}
	for (int i = k; i < n; i++) {
		cout << d[i] << " ";
	}

}, In this Programming Language: C++, Now tell me if this Code is compilable or not?