#include
using namespace std;
int main()
{ int n,m,c;
cout<<“enter the value of n or m and c”;
cin>>n>>m>>c;
int a[100000];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
pair(a,n,m,c);
return 0;
}
void pair(int a[],int n,int m,int c)
{
int count=0;
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(!(a[j]=a[i]*m+c&&i!=j))
{
count++;
}
}
}
cout<<count;
}
Why i am getting error in the 12th line
Share code via CB IDE.