My issue
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int a[10];
for(int i=0; i<10; i++){
cin>>a[i];
a[i]=a[i]%42;
}
sort(a, a+10);
int count=0;
for(int i=1; i<10; i++){
if(a[i]==a[i-1]) count++;
}
cout<<10-count<<endl;
return 0;
}
Problem Link: NSIT13 Problem - CodeChef