Related to this question

sir isme hum kitne arrays le kaise pta chlega depends on first linee or fir array kitne lene h ye nhi samaj aaa raha

hello @ahujaxrhythm

pehli line me number of test case diya hoga aur phir har ek test case me number of elements aur phir array diya hoga.

to tum kuch aise read kar sAKTE ho->

int t;
cin>>t;
while(t--){
   int n;
cin>>n; 

 int a[n];
for(int i=0;i<n;i++) 
    cin>>a[i];


solve the problem here 

} 

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.