Why i m getting o/p as 0,0 for sample test case 1?

2
10000 1
1000000000000000 10
o/p: 0 0
Why ?
According to my code o/p should be 10000 & 31 not 0,0.

https://ide.codingblocks.com/s/221078 This is the link to my code

@namandubey20 you just havent added parenthesis arnd m^k in line 15.after that too look at the constraints and use long long …also use fast i/0

The parathesis & m^k that u are telling at line 15 are already there.

@namandubey20 line 15 should be

> if( (m^k) > n ){
instead of if(m^k>n){


I added changes but why I am getting 1 less than the answer always ?

Awaiting your reply.

@namandubey20
refer to this code

OMG! What is this code & how to read this ?? :scream:

@namandubey20
you can refer to this code too.

in the previous code we had defined abbreviations for various common functions to avoid rewriting them like
#define pb push_back ; wherever i need to write pushback i can write pb now…u can refer to the basic logic in the code in void go()