using namespace std;
int i, t, n, x, a;
main()
{
int t;
cin >> t;
while (t--)
{
cin >> n >> x;
int b[n + x] = {0};
while (n--)
cin >> a, b[a] = 1; // ***here is my question
for (i = 1; x > 0 || b[i] != 0; i++)
if (b[i] == 0)
x--;
cout << i - 1 << endl ;
}
return 0;
}
Here, why "," has been used in " cin>> a , b[a] = 1 ;" I did not understand the purpose of using it.