Help me in solving MISSP problem

My issue

please help

My code

#include <iostream>
using namespace std;

int main()
{
	int t;
	cin>>t;
	while(t--)
	{
	    int doll,count=0;
	    cin>>doll;
	    int*arr=new int[doll];
	    for(int i=0;i<doll;i++)
	       {
	           cin>>arr[i];
	       }
	       for(int i=0;i<doll;i++)
	       {
	           if (arr[i]%2!=0)
	           count++;
	       }
	    cout << count<< endl;
	}
	return 0;
}

Problem Link: MISSP Problem - CodeChef

@ayan3705
The logic is print the off frequency number
like 1 1 2 2 3 3 4 4 4
the freq of 1 is 2
the freq of 2 is 2
the freq of 3 is 2
the freq of 4 is 3 which is odd so print 4;