Language: C++

////////////////////////////////////////////////
//                                            //
//  Author: Muhammad Faishol Amirul Mukminin  //
//                                            //
////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pi;
typedef pair<pi,int> pii;
typedef pair<ll,ll> pl;
typedef pair<pl,ll> pll;
typedef pair<double,double> pd;
typedef pair<pd,double> pdd;

#define fi first
#define se second
#define PUB push_back
#define POB pop_back
#define PUF push_front
#define POF pop_front
#define ALL(v) (v).begin(),(v).end()
#define endl "\n"

const double EPS = 1e-9;
const double PI = acos(-1);

const ll MOD = 1e9+7;

const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};

ll A, B, N, ans=0;

bool valid(ll ang){
	ll res=0;
	while(ang>0){
		res += ang%10;
		ang /= 10;
	}

	if(A <= res && res <= B) return 1;
	else return 0;
}

// ^r log Un/a = ^(n-1)

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> A >> B;
	for(int i=1;i<63;i++){
		if(A*pow(2,i) > B){
			cout << i << endl;
			break;
		}
	}
	return 0;
}////////////////////////////////////////////////
//                                            //
//  Author: Muhammad Faishol Amirul Mukminin  //
//                                            //
////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pi;
typedef pair<pi,int> pii;
typedef pair<ll,ll> pl;
typedef pair<pl,ll> pll;
typedef pair<double,double> pd;
typedef pair<pd,double> pdd;

#define fi first
#define se second
#define PUB push_back
#define POB pop_back
#define PUF push_front
#define POF pop_front
#define ALL(v) (v).begin(),(v).end()
#define endl "\n"

const double EPS = 1e-9;
const double PI = acos(-1);

const ll MOD = 1e9+7;

const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};

ll A, B, N, ans=0;

bool valid(ll ang){
	ll res=0;
	while(ang>0){
		res += ang%10;
		ang /= 10;
	}

	if(A <= res && res <= B) return 1;
	else return 0;
}

// ^r log Un/a = ^(n-1)

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> A >> B;
	for(int i=1;i<63;i++){
		if(A*pow(2,i) > B){
			cout << i << endl;
			break;
		}
	}
	return 0;
}

Compiler output:
a.cc:87:14: error: redefinition of 'const double EPS'
   87 | const double EPS = 1e-9;
      |              ^~~
a.cc:27:14: note: 'const double EPS' previously defined here
   27 | const double EPS = 1e-9;
      |              ^~~
a.cc:88:14: error: redefinition of 'const double PI'
   88 | const double PI = acos(-1);
      |              ^~
a.cc:28:14: note: 'const double PI' previously defined here
   28 | const double PI = acos(-1);
      |              ^~
a.cc:90:10: error: redefinition of 'const ll MOD'
   90 | const ll MOD = 1e9+7;
      |          ^~~
a.cc:30:10: note: 'const ll MOD' previously defined here
   30 | const ll MOD = 1e9+7;
      |          ^~~
a.cc:92:11: error: redefinition of 'const int dCol []'
   92 | const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
      |           ^~~~
a.cc:32:11: note: 'const int dCol [8]' previously defined here
   32 | const int dCol[] = {0,+1,0,-1,+1,+1,-1,-1};
      |           ^~~~
a.cc:93:11: error: redefinition of 'const int dRow []'
   93 | const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};
      |           ^~~~
a.cc:33:11: note: 'const int dRow [8]' previously defined here
   33 | const int dRow[] = {-1,0,+1,0,-1,+1,+1,-1};
      |           ^~~~
a.cc:95:4: error: redefinition of 'll A'
   95 | ll A, B, N, ans=0;
      |    ^
a.cc:35:4: note: 'll A' previously declared here
   35 | ll A, B, N, ans=0;
      |    ^
a.cc:95:7: error: redefinition of 'll B'
   95 | ll A, B, N, ans=0;
      |       ^
a.cc:35:7: note: 'll B' previously declared here
   35 | ll A, B, N, ans=0;
      |       ^
a.cc:95:10: error: redefinition of 'll N'
   95 | ll A, B, N, ans=0;
      |          ^
a.cc:35:10: note: 'll N' previously declared here
   35 | ll A, B, N, ans=0;
      |          ^
a.cc:95:13: error: redefinition of 'll ans'
   95 | ll A, B, N, ans=0;
      |             ^~~
a.cc:35:13: note: 'll ans' previously defined here
   35 | ll A, B, N, ans=0;
      |             ^~~
a.cc:97:6: error: redefinition of 'bool valid(ll)'
   97 | bool valid(ll ang){
      |      ^~~~~
a.cc:37:6: note: 'bool valid(ll)' previously defined here
   37 | bool valid(ll ang){
      |      ^~~~~
a.cc:110:5: error: redefinition of 'int main()'
  110 | int main(){
      |     ^~~~
a.cc:50:5: note: 'int main()' previously defined here
   50 | int main(){
      |     ^~~~