Please point out the error in my code
I am gettin wrong answer..please help
Please review the code
Hi,
in ur int main(), while taking array input, u are taking cin>>a[i] which is wrong since u r using variable i for iterating t(i.e for test cases). change cin>>a[i] to cin>>a[j].