What's wrong in this code code - https://ide.codingblocks.com/s/335467

what’s wrong in this code code - https://ide.codingblocks.com/s/335467

hello @hssharma2212000 i have made corrections in your code and i have commented them .
please go through the errors once .


i hope io have cleared your doubt .
please mark this doubt as resolved .
Happy Learning !!

please explain this changes, In problem we need to calculate exponential then do modulus

If you have noticed there must be some test cases which you were not able to pass while you are submitting the code .This is because in large test cases some times when you are calculating the power the number sometimes the result becomes very large and you have to understand that this is the trick of this question otherwise it would have become very easy to code for it.

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.