Question not clear

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int idk;
	cin>>idk;
	int cnt=0;
    for(int j=0;j<idk;j++){
    	int n;
    	cin>>n;
    	
    	for(int i=0;i<n;i++){
    	    int ent;
    	    cin>>ent;
    	    if(ent%2==0){
    	        continue;
    	    }
    	    else{
    	        cnt++;
    	    }
    	}
    }
	cout<<cnt*idk;
	return 0;
}

Problem Link: MISSP Problem - CodeChef

@swagmurthy
the question states that u have to return the number having odd freq
like
n=7
1 1 2 2 2 3 3
the frequency of 1 is 2
the frequency of 2 is 3 (which is odd)
the frequency of 3 is 2
so answer would be 2 which has odd freq

1 Like

THankyou, wasted a lot of itm ef or this quesn