For this Question: On an island, people only use odd numbers and avoid even numbers. A man visits the island and tells them that he used k distinct positive odd numbers to build his boat. The people ask the man to give them the number n, and they want to determine if the number n can be represented as a sum of k distinct positive odd numbers or not.The first line contains two space-separated integers n and k.

<b>Constrains:</b> 
1 &le; n&le; 10000
1 &le; k&le; 1000

A single string "YES" or "NO".Input:
4 2
Output:
YES
Explanations:
4 can be represented as (1+3)., I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;

int main(){
    int n, k;
    cin >> n >> k;
    if (k*k <= n && n%2 == k%2){
        cout << "YES" << endl;
    }
    else{
        cout << "NO" << endl;
    }
    return 0;
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?