Armed Bandit (Easy)

You are in a casino, and you are anxious to play on the new one-armed bandit – a slot machine they j…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

what is the problem, WA??

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int tc,size,arr[1001];
    cin>>tc;

    for(int i=0;i<tc;i++)
    {
        cin>>size;
        for(int j=0;j<size;j++)
        {
            cin>>arr[j];
        }
        for(int j=0;j<size;j++)
        {

            cout<<j<<" ";
        }
        cout<<endl;
    }
    cout<<endl;
}