What is the issue here I think in main function
It is showing error while submitting my logic is correct
int n;
cin>>n;
int arr[n];
u were initialising a[n]
before taking input n
Hi Chhavi but no luck still showing test cases failed . I’m damn sure only problem with main please correct it my logic is correct I have dry ran already.
8
2 2 3 1 3 2 1 1
as u can clearly see that the o/p not a single integer
but mulptiple answers
so please update the code accordingly
again It is showing Chavvi. Please help
iski approach use kari ja sakti
h but
then this works for just one answer
if not in the constraints then
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.