Help me in solving AMR15A problem

My issue

int main() {
int n,lucky=0,unlucky=0;
cin>>n;
int arr[n];

for(int i=0;i<n;i++){
cin>>arr[i];
if(arr[i]%2==0){
lucky++;
}
else{
unlucky++;
}

if(lucky<=unlucky){
cout<<“NOT READY”;
}
else{
cout<<“READY FOR BATTLE”;
}

}
}

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
int n,lucky=0,unlucky=0;
cin>>n;
int arr[n];

for(int i=0;i<n;i++){
 cin>>arr[i];
 if(arr[i]%2==0){
     lucky++;
 }
 else{
     unlucky++;
 }
 
 
 if(lucky<=unlucky){
     cout<<"NOT READY";
 }
 else{
     cout<<"READY FOR BATTLE";
 }
 
 
}
}

Learning course: 500 to 1000 difficulty problems
Problem Link: Mahasena Practice Problem in - CodeChef

@abhinavanand18
just a little mistake is placing the curly backets
i have corrected it in your code

#include <bits/stdc++.h>
using namespace std;

int main() {
int n,lucky=0,unlucky=0;
cin>>n;
int arr[n];

for(int i=0;i<n;i++){
 cin>>arr[i];
 if(arr[i]%2==0){
     lucky++;
 }
 else{
     unlucky++;
 }
 
}
 if(lucky<=unlucky){
     cout<<"NOT READY";
 }
 else{
     cout<<"READY FOR BATTLE";
 }
 
 
}

thanks for your reply