For this Question: You are given an array arr of size n and a window of size k your task is to find that whether two adjacent windows sum can be equal to the given sum. If yes print "YES" otherwise print "NO".The first line of the input contains n, k and sum.
Second line of the input contains the array arr.

<b>Constraints</b>
1 <= k < n <= 1e4
1 <= sum <= 1e8
1 <= arr[i] <= 1e3Print "YES" if the sum exists otherwise "NO".Sample Input 1:
5 3 21
1 2 4 3 5

Sample Output 1:
YES, I have written this Solution Code: /**
 *      Author : tourist1256
 *      Time   : 2022-01-18 01:39:40
 **/

#include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 2351
#endif

#define int long long

int adjSum(vector<int> &a, int n, int k, int res) {
    int sum = 0;
    for (int i = 0; i < k; i++) {
        sum += a[i];
    }
    debug(sum);
    for (int i = k; i < n; i++) {
        int newSum = sum - a[i - k] + a[i];
        if (newSum + sum == res) {
            return 1;
        }
        sum -= a[i - k];
        sum += a[i];
        debug(sum);
    }
    return 0;
}

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n, k, sum;
    cin >> n >> k >> sum;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    int result = adjSum(a, n, k, sum);
    if (result) {
        cout << "YES\n";
    } else {
        cout << "NO\n";
    }
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?