Challenge name - alex goes shopping

please show me the error in the code
its showing wrong

#include
using namespace std;

int main(){
int n; //Number of items in the shop
cin>>n;

int arr[n];
for(int i = 0; i < n; i++){
    cin>>arr[i];
}
int q;   //number of queries
cin>>q;

int a[q], k[q];  //a - amount of money ,  k - items she can choose from
    
for(int i = 0; i < q ; i++){
    cin>>a[i];
    cin>>k[i];
}
for(int i = 0; i < q; i++){
    int count = 0;

    for(int j = 0; j < n; j++){
        if(a[i]%arr[j] == 0){
            count++;
        }
    }
    if(count == k[i]){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
}

return 0;

}

hi @karanaggarwal708_71435e604edb5689,
use count >= k
check https://ide.codingblocks.com/s/662555 updated

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.