For this Question: Given an array of N integers, check if it contains any negative integer.First line of input contains a single integer N. The next line contains the N space separated integers.

Constraints:-
1 < = N < = 1000
-10000 < = Arr[i] < = 10000Print "Yes" if the array contains any negative integer else print "No".Sample Input:-
4
1 2 3 -3

Sample Output:-
Yes

Sample Input:-
3
1 2 3

Sample Output:-
No, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;



int main(){

int n;
cin>>n;
int a;
bool win=false;
for(int i=0;i<n;i++){
    cin>>a;
    if(a<0){win=true;}}
    if(win){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?