Can you please tell where I am going wrong

There was a slight error in line 15. I corrected it.


This code will still not pass the test cases as the constraints are high. Use long long int everywhere.