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;
}