My issue
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int t,a,n;
cin>>t;
for(int i=1;i<t+1;i++){
cin>>n>>a;
int arr[n];
int arr1[n];
int count=0;
for(int j=0;j<n;j++){
cin>>arr[j];
}
for(int j=0;j<n;j++){
arr1[j]=arr[j]+10;
}
for(int j=0;j<n;j++){
if((arr1[j]%7)==0){
count++;
}
}
cout<<count<<endl;
}
return 0;
}
Problem Link: CHN15A Problem - CodeChef