what is wrong in this code? it is not passing any test cases
Book allocation problem
Hey @shubhangis248
for(int j=0;j<n;j++)
{
cin>>a[j];//a[j] instead of a[i]
}
If this resolves your query then please mark it as resolved 