For this Question: You are given an array of integers arr of size n, a window of size k. Your task is to find the sum of the maximum element from each window.The first line contains the input of n, k ie the size of the array, and the size of the window.
The next line contains the input of the array.

<b>Constraints</b>
1 <= k < n <= 10<sup>5</sup>
1 <= arr[i] <= 10<sup>5</sup>Print the single line containing the maximum sum.Sample Input 1:
5 3
1 2 3 4 5

Sample Output 1:
12

Sample Input 2:
6 2
2 3 1 7 8 3

Sample Output 2:
29, 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 sumWindow(vector<int> a, int n, int k) {
    int result = 0;
    for (int i = 0; i < n - k + 1; i++) {
        int windowMax = INT_MIN;
        for (int j = i; j < i + k; j++) {
            windowMax = max(windowMax, a[j]);
        }
        debug(windowMax);
        result += windowMax;
    }
    return result;
}

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