For this Question: There are A Bacterias.
Each time Jerry shouts, the bacterias multiply by K times.
In order to have B or more slimes, at least how many times does Jerry need to shout?Input is given from Standard Input in the following format:
A B K

<b>Constraints</b>
1&le;A&le;B&le;10^9
2&le;K&le;10^9
All values in input are integers.Print the answer.<b>Sample Input 1</b> 
1 4 2
<b>Sample Output 1</b> 
2

<b>Sample Input 2</b> 
7 7 10
<b>Sample Output 2</b> 
0

<b>Sample Input 3</b> 
31 415926 5
<b>Sample Output 3</b> 
6

(In first case, after the first shout Jerry will have 2 bacteria and after the second shout, he will have 4(2*2) bacteria., I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;
 
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define subnb true
#define Lnb true
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
 
int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
 
    ll a, b, k;
    cin >> a >> b >> k;
    int res = 0;
    while(a < b) {
        a *= k;
        res++;
    }
    cout << res << '\n';
 
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?