What’s wrong with my code? It passes for the first half of the test cases and fails for the other half.
Strongest Fighter
hello @div_yanshu07
array size is the issue.
first read n and then declare array using that n;
i.e
cin>>n;
ll a[n];
What’s wrong with my code? It passes for the first half of the test cases and fails for the other half.
hello @div_yanshu07
array size is the issue.
first read n and then declare array using that n;
i.e
cin>>n;
ll a[n];