Failed testcase in Book Allocation problem

while submitting the solution some of its testcase are failing despite of following the video lecture .
So Kindly tell what am i doing wrong

@Adarsh25trivedi hey Adarsh use data modifier as long long int .

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.

I had already tried that by defining it globally as LL please watch line 3