I am not able to understand why I am getting the wrong output error. Any help will be appreciated.
#include<stdio.h>
#include<stdlib.h>
void method()
{
int t,i,n;
long long int b;
scanf("%d",&t);
while(t–)
{
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%lli",&b);
long int a = (n*(n-1))/2;
printf("%li\n",a);
}
}