Please check my CHEFA code

#include
#include
using namespace std;

int main() {
int t;
long int j,n,i,chef,a[100000];
cin>>t;
while(t–)
{
cin>>n;
j=(n+1)%2;
chef=0;
for(i=0;i<n;i++)
cin>>a[i];
sort(a,a+n);
for(i=0;i<n;i++){
if(i%2==j)
chef+=a[i];
}
cout<<chef<<endl;

}
return 0;

}

What is

cin="">>a[i];

Its my first time seeing it.

I think thats your error. The program ran when I changed it to cin>>a[i];