Regarding test case failure


sir can you please check this program and tell me the error

Hi Sameer. u cant simply do pow(n1,n2) as see the constraints 1<=a,b,c<=100000.
ur answer wont be able to fit in int. nor in long long int. so u have to do mod at each step.
refer this https://ide.codingblocks.com/s/580153
Hope it clears all ur doubts

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.