Help me in solving STUDVOTE problem

My issue

The subtasks are failing. I am not able to figure it out why?

My code

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

int main() {
	// your code goes here
	long long int T,N,K;
	    long long int A[N];
	    for(int i=0;i<N;i++) cin>>A[i];
	    long long int freq[N];
	    for(int i=0;i<N;i++) freq[i]=0;
	    for(int i=0;i<N;i++)
	        if(A[i]==i+1) continue;
	    long long int count=0;
	    for(int i=0;i<N;i++)
	        if(freq[i]>=K) count++;
	return 0;

Problem Link: STUDVOTE Problem - CodeChef

@pshrenik7 In your code, you aren’t disqualifying the self voting participants.

Also, you have to print which candidates have been selected not how many.

@codechief1 Thank you for your response.
But I would like to repeat what has been stated in the question.
Question states “Can you compute the size of the Student government”.
The OUTPUT section also says
“For each test case, output a single line containing an integer corresponding to the size of the student government.”
So I guess I should return the count of the students who are eligible for Student Government.
Thanks once again for response