Help me in solving PCJ19C problem

My issue

i am using vectorapproach but no tgetting results

My code

#include <iostream>
using namespace std;
#include <vector>
int main() {
	// your code goes here
while()
	int response;
	cin>>response; 
	vector<int> hello;
	hello.push_back(response);
	int ans=0;
	for(int i=0;i<hello.empty();i++)
	{
	    if(hello[i]%6==0)
	    {
	        ans++;
	    }
	    else if(hello[i]%5==0)
	    {
	        break;
	    }
	}
	return 0;
	
}

Problem Link: PCJ19C Problem - CodeChef

@vedantgangrade
The implementation is not right.
U have to do it like this

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

int main() {
	// your code goes here
	long long int n;
	cin>>n;
	long long int cnt=0;
	vector<long long int> a(n);
	map<long long int ,long long int> mp;
	for(int i=0;i<n;i++)
	{
	    cin>>a[i];
	    if(a[i]%6==0&&a[i]%5!=0)
	    {
	        mp[a[i]]++;
	    }
	}
	cout<<mp.size();
	return 0;
}