criyle/codenet-compile-errors huggingface dataset:
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 <= ang && ang <= B) return 1;
	else return 0;
}

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	
	cin >> N >> A >> B;
	for(int i=1;i<=N;i++){
		if(valid(i)) ans += i;
	}
	cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:17: error: 'i' was not declared in this scope; did you mean 'pi'?
   55 |         cout << i << endl;
      |                 ^
      |                 pi
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    long long x, y, k = 0;
    cin >> x >> y;
    for (long long i = x; i <= y)
    {
        i *= 2;
        k++;
    }
    cout << k;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: expected ';' before ')' token
    6 |     for (long long i = x; i <= y)
      |                                 ^
      |                                 ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int X, Y, total=0;

int main () {
  while (X*2<Y) {
    total++
  }
  cout << total << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '}' token
    8 |     total++
      |            ^
      |            ;
    9 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pi 2*asin(1.0)


//template functions
/////////////////////////
long Comb(long N,long M){// nCm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
for(long i=M;i>0;i--){
    ans=ans/i;
}
return ans;
}
long Perm(long N,long M){// nPm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
return ans;
}
long GCM(long A,long B){
    if(A<B){
        long W,r;
        W=B;
        B=A;
        A=W;
    }
    while(A%B!=0){
        r=A%B;
        A=B;
        B=r;
    }
    return B;
}
long LCM(long A,long B){
    return (A*B)/GCM(A,B);
}
/////////////////////////


//Answer


int main() {

long X,Y,count=0;
cin>>X>>Y;
while(X<=Y){
X=X*2;
count++;
}


}


Compiler output:
a.cc: In function 'long int GCM(long int, long int)':
a.cc:33:9: error: 'r' was not declared in this scope
   33 |         r=A%B;
      |         ^
Language: C++

#include <iostream>
#include <map>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <sstream>
#include <cmath>
#include <math.h>
#include <string>
using namespace std;
typedef long long ll;
 
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x , y , c = 0 , a = 1;
    cin >> x >> y;
    c = x
    while( c < y  ) {
        c *= 2;
        a++;
    }
    cout << a;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: expected ';' before 'while'
   18 |     c = x
      |          ^
      |          ;
   19 |     while( c < y  ) {
      |     ~~~~~
Language: C++

int main() {
    ll x,y;cin>>x>>y;
    ll ans = 0;
 
    while(y>=x){
        ++ans;
        y/=2;
    }
    cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'll' was not declared in this scope
    2 |     ll x,y;cin>>x>>y;
      |     ^~
a.cc:2:12: error: 'cin' was not declared in this scope
    2 |     ll x,y;cin>>x>>y;
      |            ^~~
a.cc:2:17: error: 'x' was not declared in this scope
    2 |     ll x,y;cin>>x>>y;
      |                 ^
a.cc:2:20: error: 'y' was not declared in this scope
    2 |     ll x,y;cin>>x>>y;
      |                    ^
a.cc:3:7: error: expected ';' before 'ans'
    3 |     ll ans = 0;
      |       ^~~~
      |       ;
a.cc:6:11: error: 'ans' was not declared in this scope
    6 |         ++ans;
      |           ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<ans<<endl;
      |     ^~~~
a.cc:9:11: error: 'ans' was not declared in this scope
    9 |     cout<<ans<<endl;
      |           ^~~
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |     cout<<ans<<endl;
      |                ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int　X,Y;
  int S=0;
  cin>>X>>Y;
  for(int A=X;A<=Y;A*=2){
    S++;
  }
  cout<<S<<endl;
}


Compiler output:
a.cc:5:3: error: extended character 　 is not valid in an identifier
    5 |   int　X,Y;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'int\U00003000X' was not declared in this scope
    5 |   int　X,Y;
      |   ^~~~~~
a.cc:5:10: error: 'Y' was not declared in this scope
    5 |   int　X,Y;
      |          ^
a.cc:7:8: error: 'X' was not declared in this scope
    7 |   cin>>X>>Y;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int　X,Y;
  int S=0;
  cin>>X>>Y;
  for(int A=X;X<=Y;X*=2){
    S++;
  }
  cout<<S<<endl;
}

Compiler output:
a.cc:5:3: error: extended character 　 is not valid in an identifier
    5 |   int　X,Y;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'int\U00003000X' was not declared in this scope
    5 |   int　X,Y;
      |   ^~~~~~
a.cc:5:10: error: 'Y' was not declared in this scope
    5 |   int　X,Y;
      |          ^
a.cc:7:8: error: 'X' was not declared in this scope
    7 |   cin>>X>>Y;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

#include <boost/multiprecision/cpp_int.hpp>
using mp= boost::multiprecision;
int main(void) {
    mp::cpp_int X,Y;
    int64_t cnt = 0;
    cin >> X >> Y;

    for(int i=0;i<=60;i++) {
        if((X*(1<<i)) <= Y) {
            cnt++;
        }
    }
    cout << cnt << endl;
}

Compiler output:
a.cc:4:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    4 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio>
#include <bits/stdc++.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <cmath>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#define rep(i,n) for (int i=0;i<n;i++)
using ll = long long;
using namespace std;

void solve(){

}
int main (){
    ios::sync_with_stdio(0);
    cin.tie(0);

    ll x,y;
    cin>> x >> y;
    ll m =x;
    ll cnt =1;

    while(m*2<=ny){
        cnt +=1;
        m*=2;
    }

    cout << cnt << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:16: error: 'ny' was not declared in this scope; did you mean 'y'?
   28 |     while(m*2<=ny){
      |                ^~
      |                y
Language: C++

#ifdef _XCODE_DEBUG
    #include <fstream>
#endif
using ll = long long;

int main() {
    #ifdef _XCODE_DEBUG
        std::ifstream in("input.txt");
        std::cin.rdbuf(in.rdbuf());
    #endif
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    ll X, Y;
    std::cin >> X >> Y;
    ll c_num = X;
    int ans = 0;
    while (c_num<=Y) {
        ++ans;
        c_num *=2;
    }
    std::cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'std::ios' has not been declared
   11 |     std::ios::sync_with_stdio(false);
      |          ^~~
a.cc:12:10: error: 'cin' is not a member of 'std'
   12 |     std::cin.tie(nullptr);
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #ifdef _XCODE_DEBUG
a.cc:14:10: error: 'cin' is not a member of 'std'
   14 |     std::cin >> X >> Y;
      |          ^~~
a.cc:14:10: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:10: error: 'cout' is not a member of 'std'
   21 |     std::cout << ans << "\n";
      |          ^~~~
a.cc:21:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

//#ifdef _XCODE_DEBUG
    #include <fstream>
#endif
using ll = long long;

int main() {
    #ifdef _XCODE_DEBUG
        std::ifstream in("input.txt");
        std::cin.rdbuf(in.rdbuf());
    #endif
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
  
    ll X, Y;
    std::cin >> X >> Y;
    ll c_num = X;
    int ans = 0;
    while (c_num<=Y) {
        ++ans;
        c_num *=2;
    }
    std::cout << ans << "\n";
    return 0;
}

Compiler output:
a.cc:3:2: error: #endif without #if
    3 | #endif
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:12:10: error: 'cin' is not a member of 'std'
   12 |     std::cin.tie(nullptr);
      |          ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 |     #include <fstream>
  +++ |+#include <iostream>
    3 | #endif
a.cc:15:10: error: 'cin' is not a member of 'std'
   15 |     std::cin >> X >> Y;
      |          ^~~
a.cc:15:10: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:10: error: 'cout' is not a member of 'std'
   22 |     std::cout << ans << "\n";
      |          ^~~~
a.cc:22:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  ll x,y;cin>>x>>y;
  ll n=0;
  while(x<=y){
    x*=2;
    n++;
    }
  cout<<n<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll x,y;cin>>x>>y;
      |   ^~
a.cc:4:15: error: 'x' was not declared in this scope
    4 |   ll x,y;cin>>x>>y;
      |               ^
a.cc:4:18: error: 'y' was not declared in this scope; did you mean 'yn'?
    4 |   ll x,y;cin>>x>>y;
      |                  ^
      |                  yn
a.cc:5:5: error: expected ';' before 'n'
    5 |   ll n=0;
      |     ^~
      |     ;
a.cc:8:5: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     n++;
      |     ^
      |     yn
a.cc:10:9: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |   cout<<n<<endl;
      |         ^
      |         yn
Language: C++

x,y=map(int,input().split())

x2=x
icnt=0
while x2<=y:
    x2*=2
    icnt+=1
    
print(icnt)
    

Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x,y=map(int,input().split())
      | ^
Language: Java

import java.util.Scanner;

public class MultipleGift {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		long x = scan.nextLong();
		long y = scan.nextLong();
		scan.close();
		
		int ans = 0;
		while(x <= y) {
			ans++;
			x *= 2;
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:3: error: class MultipleGift is public, should be declared in a file named MultipleGift.java
public class MultipleGift {
       ^
1 error
Language: C++

#include "bits/stdc++.h"
#define int long long
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(obj) begin(obj), end(obj)
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define LOWER_BOUND(A, key) distance(A.begin(), lower_bound(ALL(A), key))
#define UPPER_BOUND(A, key) distance(A.begin(), upper_bound(ALL(A), key))

using namespace std;
using ll      = long long;
const int MOD = (int)(1e9 + 7);
const int INF = (int)(1e13 + 7);

int bpm(int x, int y) {
  if (x == 0)
    return 0;
  else if (y == 0) {
    return 1;
  }
  int ans = 1;
  x %= MOD;
  int digit = (int)((log((double)y) / log((double)2) / 1 + 1));
  for (int i = 0; i < digit; i++) {
    if (((y >> i) & 1u) == 1) {
      ans *= x;
      ans %= MOD;
    }
    x = x * x;
    x %= MOD;
  }
  return ans;
}

class CMultipleGift {
public:
  int solve(std::istream &cin, std::ostream &cout) {
    int X, Y;
    cin >> X >> Y;
    int ans = 1;
    while (X < Y) {
      X *= 2;
      if (X <= Y) {
        ans += 1;
      }
    }
    cout << ans << endl;
  }
};


Compiler output:
a.cc: In member function 'long long int CMultipleGift::solve(std::istream&, std::ostream&)':
a.cc:49:3: warning: no return statement in function returning non-void [-Wreturn-type]
   49 |   }
      |   ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include "bits/stdc++.h"
#include <set>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
#define rrep(i, n) for (int i = (n)-1; i >= 0; i--)
#define all(i) (i).begin(), (i).end()
#define rall(i) (i).begin(), (i).end(), greater<int>()
#define int long long
#define elif else if
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define fst first
#define sec second
#define mod 1000000007
template <typename T>

void print(T x)
{
	std::cout << x << " ";
}
template <typename T>

void println(T x)
{
	std::cout << x << "\n";
}


void main() {
	int x, y;
	cin >> x >> y;
	int tmp = x;
	int ans = 0;
	while (tmp <= y) {
		tmp *= 2;
		ans++;
	}
	print(ans);
}

Compiler output:
a.cc:33:1: error: '::main' must return 'int'
   33 | void main() {
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    long long x, y; cin >> x >> y;
    ll n = x; int cnt = 0;
    while(n <= y) {
        cnt ++;
        n *= 2;
    }
    cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll n = x; int cnt = 0;
      |     ^~
a.cc:7:11: error: 'n' was not declared in this scope
    7 |     while(n <= y) {
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long x,y,ct=0:
        cin>>x>>y;
    if(x==y){cout<<"1"<<endl; return 0;}
    while(x<=y){x*=2;ct++;}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected ',' or ';' before ':' token
    5 |     long long x,y,ct=0:
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main () {
  int X , Y ;
  cin >> X >> Y ;
  int count ;
  for (int i = 0 ; i++){
    if( 2*X > Y ){
      break;
    }
    count++;
    X = 2*X ;
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
    8 |   for (int i = 0 ; i++){
      |                       ^
      |                       ;
Language: C++

#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
long long x, y;
int main() {
	cin >> x >> y;
	cout << floor(log2((long double)(y / x))) + 1 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'log2' was not declared in this scope
    8 |         cout << floor(log2((long double)(y / x))) + 1 << endl;
      |                       ^~~~
a.cc:8:17: error: 'floor' was not declared in this scope
    8 |         cout << floor(log2((long double)(y / x))) + 1 << endl;
      |                 ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typdef long long ll;
int main(){
  ll x,y;
  cin >> x >> y;
  
  ll i = 0;
  
  while(x <= y){
	x *= 2;
    i++;
  }

  cout << i << endl;
}
  


Compiler output:
a.cc:3:1: error: 'typdef' does not name a type; did you mean 'typedef'?
    3 | typdef long long ll;
      | ^~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll x,y;
      |   ^~
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> y;
      |          ^
a.cc:6:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> x >> y;
      |               ^
      |               yn
a.cc:8:5: error: expected ';' before 'i'
    8 |   ll i = 0;
      |     ^~
      |     ;
a.cc:12:5: error: 'i' was not declared in this scope
   12 |     i++;
      |     ^
a.cc:15:11: error: 'i' was not declared in this scope
   15 |   cout << i << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  ll x,y;
  cin >> x >> y;
  
  ll i = 0;
  
  while(x <= y){
	x *= 2;
    i++;
  }

  cout << i << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll x,y;
      |   ^~
a.cc:5:10: error: 'x' was not declared in this scope
    5 |   cin >> x >> y;
      |          ^
a.cc:5:15: error: 'y' was not declared in this scope; did you mean 'yn'?
    5 |   cin >> x >> y;
      |               ^
      |               yn
a.cc:7:5: error: expected ';' before 'i'
    7 |   ll i = 0;
      |     ^~
      |     ;
a.cc:11:5: error: 'i' was not declared in this scope
   11 |     i++;
      |     ^
a.cc:14:11: error: 'i' was not declared in this scope
   14 |   cout << i << endl;
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long n,n;
int main()
{
    cin>>n>>m;
    cout<<floor(log2((long double)(y/x)))+1<<endl;
    return 0;
}

Compiler output:
a.cc:3:13: error: redefinition of 'long long int n'
    3 | long long n,n;
      |             ^
a.cc:3:11: note: 'long long int n' previously declared here
    3 | long long n,n;
      |           ^
a.cc: In function 'int main()':
a.cc:6:13: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |     cin>>n>>m;
      |             ^
      |             tm
a.cc:7:36: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |     cout<<floor(log2((long double)(y/x)))+1<<endl;
      |                                    ^
      |                                    yn
a.cc:7:38: error: 'x' was not declared in this scope
    7 |     cout<<floor(log2((long double)(y/x)))+1<<endl;
      |                                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int lgx;
long long x,y;
int main()
{
    cin>>x>>y;
    while(x<=y)
    {
	    lgx++;
        i*=2;
	}
    cout<<lgx<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'i' was not declared in this scope
   11 |         i*=2;
      |         ^
Language: C++

#include<bits/stdc++.h>
int lgx;
long long x,y;
int main()
{
    cin>>x>>y
    long long i=x;
    while(i<=y)
    {
	    lgx++;
        i*=2;
	}
    cout<<lgx<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>x>>y
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:11: error: 'i' was not declared in this scope
    8 |     while(i<=y)
      |           ^
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<lgx<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<lgx<<endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc+.h>
int lgx;
long long x,y;
int main()
{
    cin>>x>>y
    long long i=x;
    while(i<=y)
    {
	    lgx++;
        i*=2;
	}
    cout<<lgx<<endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc+.h: No such file or directory
    1 | #include<bits/stdc+.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(void){

    unsigned long long x,y;
    cin >> x >> y;
    unsigned long long temp = x;
    int cnt = 0;
    while (temp =< y)
    {
        temp *= 2;
        cnt++;
    }
    cout << cnt << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected primary-expression before '<' token
   10 |     while (temp =< y)
      |                  ^
Language: Java

import java.util.*;
public class main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		long a=sc.nextLong(),b=sc.nextLong();
		int sum = 1;
		for(;;){
			if(a*2<=b){
				sum++;
				a*=2;
			}else{
				System.out.println(sum);
				break;
			}
		}
	}
}


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long a,b;
  cin >> a >> b;
  long long x=0;
  for(long long i=a;i<=b;i=i*2)(
    x++;
  }
  cout<<x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ')' before ';' token
    8 |     x++;
      |        ^
      |        )
a.cc:7:32: note: to match this '('
    7 |   for(long long i=a;i<=b;i=i*2)(
      |                                ^
a.cc: At global scope:
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout<<x;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
#define fi first
#define se second
#define repl(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define rep(i,n) repl(i,0,n)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<x<<endl
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt __builtin_popcountll
#define INF 1e16
#define mod 1000000007
int main(){
    long long double x,y;
    cin>>x>>y;
    cout<<(ll)(log2(y)-log2(x)+1)<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: error: 'long long' specified with 'double'
   22 |     long long double x,y;
      |          ^~~~
a.cc:22:10: error: 'long long' specified with 'double'
Language: C++

#include<iostream>
#include<math.h>
 
using namespace std;
 
int main() {
    long double long double X, Y;
    cin >> X >> Y;
    cout << floor(log2((Y/X)+1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: two or more data types in declaration of 'X'
    7 |     long double long double X, Y;
      |          ^~~~~~
a.cc:7:10: error: two or more data types in declaration of 'Y'
a.cc:8:12: error: 'X' was not declared in this scope
    8 |     cin >> X >> Y;
      |            ^
a.cc:8:17: error: 'Y' was not declared in this scope
    8 |     cin >> X >> Y;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  long long int x,y;
  int count;
  cin >> x >> y;
  while(x<=y){
    x=x*2
    count++;
  }
  cout << count <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'count'
    8 |     x=x*2
      |          ^
      |          ;
    9 |     count++;
      |     ~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  long long int x,y;
  int count;
  cin >> x >> y;
  while(x<=y){
    x=x*2
    count=++;
  }
  cout << count <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'count'
    8 |     x=x*2
      |          ^
      |          ;
    9 |     count=++;
      |     ~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  long long int X,Y;
  int count
  cin >> X >> Y;
  while(X<=Y){
    X=X*2;
    count++
  }   
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> X >> Y;
      |   ^~~
a.cc:9:5: error: 'count' was not declared in this scope
    9 |     count++
      |     ^~~~~
a.cc:11:13: error: 'count' was not declared in this scope
   11 |     cout << count << endl;
      |             ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  long long int x,y,b,n,n;
  cin >> x >> y;
  for(b=x,n=0;b<=y;b*=2) n++;
  cout << n << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:25: error: redeclaration of 'long long int n'
    4 |   long long int x,y,b,n,n;
      |                         ^
a.cc:4:23: note: 'long long int n' previously declared here
    4 |   long long int x,y,b,n,n;
      |                       ^
Language: C++

ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

Compiler output:
a.cc:1:1: error: '\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042\U00003042' does not name a type
    1 | ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int ans=0;
	long long x,y;
	cin>>x>>y;
	while(x<=y)
	    ++ans,i*=2;
	cout<<ans;
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'i' was not declared in this scope
    9 |             ++ans,i*=2;
      |                   ^
Language: C++

#include <bits/stdc++.h>‬
#define l_ength size‬
‪const int inf = (1<<30);‬
‪const int mod = 1000000007;‬
‪using ll = long long;‬
‪using namespace std;‬

‪int main(){‬
‪	ll X, Y;‬
‪	cin >> X >> Y;‬
‪	cout << ( log2(Y)-log2(X) ) + 1 << endl;‬
‪}‬


Compiler output:
a.cc:1:10: fatal error: bits/stdc++.h>��: No such file or directory
    1 | #include <bits/stdc++.h>‬
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>‬
‪#define l_ength size‬
‪const int inf = (1<<30);‬
‪const int mod = 1000000007;‬
‪using ll = long long;‬
‪using namespace std;‬

‪int main(){‬
‪	ll X, Y;‬
‪	cin >> X >> Y;‬
‪	cout << ( log2(Y)-log2(X) ) + 1 << endl;‬
‪}‬


Compiler output:
a.cc:1:10: fatal error: bits/stdc++.h>��: No such file or directory
    1 | #include <bits/stdc++.h>‬
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<cmath>
using namespace std ;

int main()
{
  int64_t X,Y ;
  cin>>X>>Y ;
  
  for(int N=0;;N++) if(pow(2,N)*X>Y) break ;
  cout<<N<<endl ;
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'N' was not declared in this scope
   11 |   cout<<N<<endl ;
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long n,m,he,ge=0;
int main()
{
    cin>>n>>m;
    he=((long long)(m/n));//将he定值
    while(ans>=1)//如果还>=1
    {
    	he=he/2;//累除
        ge++;//如果还要累除那就把个数++
    }
    cout<<ge;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     while(ans>=1)//如果还>=1
      |           ^~~
      |           abs
Language: C++

#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <sstream>
#include <iomanip>
#define rep(i,n) for(int i = 0; i < n; i++)
#define rep1(i,n) for(int i = 1; i <= n; i++)
#define co(x) cout << x <<endl
#define cs(x) cout << x <<" "
#define ALL(a) (a).begin(),(a).end()
typedef long long ll;
using namespace std;

int main()
{
	ll X, Y;
	cin >> X >> Y;
	//int p = log2(Y / X);
	//int ans = p + 1;
	co(0);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'cin' was not declared in this scope
   18 |         cin >> X >> Y;
      |         ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <iomanip>
  +++ |+#include <iostream>
    7 | #define rep(i,n) for(int i = 0; i < n; i++)
a.cc:9:15: error: 'cout' was not declared in this scope
    9 | #define co(x) cout << x <<endl
      |               ^~~~
a.cc:21:9: note: in expansion of macro 'co'
   21 |         co(0);
      |         ^~
a.cc:9:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #define co(x) cout << x <<endl
      |               ^~~~
a.cc:21:9: note: in expansion of macro 'co'
   21 |         co(0);
      |         ^~
Language: C++

X,Y= (int(i) for i in input().split())
x=X
i=1
while(x<=Y):
    x=2*x
    i+==1
print(i)

Compiler output:
a.cc:1:1: error: 'X' does not name a type
    1 | X,Y= (int(i) for i in input().split())
      | ^
Language: C++

#include <bitset>

using namespace std;

long long x,y;

int main(){
    cin >> x >> y;
    x = y / x;
    int count = 0;
    while(x > 0){
        x /= 2;
        count++;
    }
    cout << count << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> x >> y;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <bitset>
  +++ |+#include <iostream>
    2 | 
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << count << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |     cout << count << endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <bitset>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    int a,b;
    int cnt=0;
    cin>>a>>b;
    while(a<b)
    {
        a*=2;
        cnt++;
    }
    if(a!=b)
    {
        cnt-=1;   
    }
    retunr 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'retunr' was not declared in this scope
   19 |     retunr 0;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
 long x,y; 
  cin >> x >> y;
  
  long res=1;
  
  while(x<y){
   x*=2;
   res++;
  }

  cout << res-1 << endl;
   
}v

Compiler output:
a.cc:18:2: error: 'v' does not name a type
   18 | }v
      |  ^
Language: C++

using namespace std;
#include <iostream>
#include <vector>
#include <string>
#include <cmath>

int main() {
  long long X, Y;
  cin >> X >> Y;
  int i = 1;
  while (Y >= X * long long(pow(2, i-1))) i++;
  cout << i - 1 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before 'long'
   11 |   while (Y >= X * long long(pow(2, i-1))) i++;
      |                   ^~~~
a.cc:11:18: error: expected ')' before 'long'
   11 |   while (Y >= X * long long(pow(2, i-1))) i++;
      |         ~        ^~~~~
      |                  )
a.cc:11:19: error: expected primary-expression before 'long'
   11 |   while (Y >= X * long long(pow(2, i-1))) i++;
      |                   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int x,y,ans=0;
	cin>>x>>y;
	i=x;
	while(y>=i){
		ans++;
		i*=2;
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |         i=x;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  long a,b;
  int ans=0;
  cin >> a >> b;
  while(a<=b){
    ans++;
    a*=2;
  }

  cout << ans endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before 'endl'
   13 |   cout << ans endl;
      |              ^~~~~
      |              ;
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll n,m;
    ci(n>>m)
  ll ans=0;
  FOR(i,0,100){
    if(now<=m) {
      ans++;
    n*=2;
  }
    else break;
  }
  co(ans)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:80:8: error: 'now' was not declared in this scope; did you mean 'pow'?
   80 |     if(now<=m) {
      |        ^~~
      |        pow
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll n,m;
    ci(n>>m)
  ll ans=0;
  ll now=n;
  ll two=2;
  FOR(i,0,40){
    if(m=>now) {
      ans++;
    now*=2;
  }
    else break;
  }
  co(ans)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:82:10: error: expected primary-expression before '>' token
   82 |     if(m=>now) {
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long x,y；
    int ans,sum=0;
    cin>>x>>y;
    ans=((long long)(y/x));
    while(ans>=1){
        ans/=2,sum++;
    }
    cout<<sum<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'int'
    5 |     int ans,sum=0;
      |     ^~~
a.cc:6:13: error: 'y' was not declared in this scope
    6 |     cin>>x>>y;
      |             ^
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans=((long long)(y/x));
      |     ^~~
      |     abs
a.cc:9:16: error: 'sum' was not declared in this scope
    9 |         ans/=2,sum++;
      |                ^~~
a.cc:11:11: error: 'sum' was not declared in this scope
   11 |     cout<<sum<<endl;
      |           ^~~
Language: C

#include <iostream>
#include <cmath>
using namespace std;
int main(){
  long long int X,Y;
  cin >> X >> Y;
  cout << floor(log2(Y/X))+1 << endl;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long X = sc.nextLong();
		long Y = sc.nextLong();
		long A = X;
		int ans = 1;
		while (true) {
			if (A < 0) {
				A *= -2;
			} else {
				A *= 2;
			}
			if (A <= Y)
				ans++;
			else {
				System.out.println(ans);
				return;
			}
		}
	}


Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <iostream>
long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}

Compiler output:
a.cc:2:12: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
      |            ^~~~
a.cc: In function 'int main()':
a.cc:2:52: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
      |                                                    ^~~~
      |                                                    std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}

Compiler output:
a.cc:1:12: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
      |            ^~~~
a.cc: In function 'int main()':
a.cc:1:24: error: 'cin' is not a member of 'std'
    1 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
      |                        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
a.cc:1:52: error: 'cout' was not declared in this scope
    1 | long X,Y,r;main(){std::cin>>X>>Y;while(X<<r<=Y)r++;cout<<r;}
      |                                                    ^~~~
Language: C++

#include<bits/stdc++>
#define kuri(i,n) FOR(int i=0;i!=n;i++)

using namespace std;

int main(){
	long long int x,y;
	cin >> x >> y;
	int ans=0;
	while(1){
		x=x*2;
		if(x>y){
			break;
		}
		else{
			ans++;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <tuple>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

long long main() {
    long long x, y;
    cin >> x >> y;

    long long res = 0;
    for (long long a1 = x; a1 <= y; a1++) {
        long long seq = a1;
        long long count = 1;
        for (long long a_i = 2 * a1; a_i <= y; a_i *= 2) {
            seq += a_i;
            count++;
        }

        res = max(res, count);
    }

    cout << res << endl;
    return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>
#include<set>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include <algorithm>
using namespace std;
#include <cmath>
#include <string>

int mian(){
  int X, Y;
  cin >> X>> Y;
  int now_state = X;
  int res =0;
  while(now_state<=Y){
    res ++;
    now_state *=2;
  }



}


Compiler output:
a.cc: In function 'int mian()':
a.cc:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<set>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include <algorithm>
using namespace std;
#include <cmath>
#include <string>

int mian(){
  int X Y;
  cin >> X>> Y;
  int now_state = X;
  int res =0;
  while(now_state<=Y){
    res ++;
    now_state *=2;
  }  


  
}



Compiler output:
a.cc: In function 'int mian()':
a.cc:10:9: error: expected initializer before 'Y'
   10 |   int X Y;
      |         ^
a.cc:11:10: error: 'X' was not declared in this scope
   11 |   cin >> X>> Y;
      |          ^
a.cc:11:14: error: 'Y' was not declared in this scope
   11 |   cin >> X>> Y;
      |              ^
a.cc:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
   21 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
using namespace std;
const int MOD = 1000000007;
const int INF = 1010000000;
const double EPS = 1e-10;
const array<pair<int,int>,4> fd{make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 

int main(){
  ll x,y;cin>>x>>y;
  int ans = 0;
  while(x <= y){
    ans++;
    x * = 2;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression before '=' token
   16 |     x * = 2;
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    long long x,y,i,s=0;
    cin>>x>>y;
    long long i=x;
    while(i<=y) {
        ++s;
        i=i*2;
    }
    cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: redeclaration of 'long long int i'
    6 |     long long i=x;
      |               ^
a.cc:4:19: note: 'long long int i' previously declared here
    4 |     long long x,y,i,s=0;
      |                   ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  long long X, Y;
  cin >> X >> Y;
  
  int cnt = 0
  while (X <= Y) {
  	X *= 2;
    cnt++;
  }
  cout << cnt << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'while'
   11 |   while (X <= Y) {
      |   ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int ans=0,a,b;
    cin>>a>>b;
    int y=x;
    while(y<=b)
    {
    	ans++;
    	y*=2;
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'x' was not declared in this scope
    7 |     int y=x;
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int ans=0,a,b;
    cin>>a>>b;
    int y=x
    while(y<=b)
    {
    	ans++;
    	y*=2;
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'x' was not declared in this scope
    7 |     int y=x
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int ans=0;
    long long x,y;
    cin>>x>>y;
    while(x<=y) ++ans,i*=2;
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'i' was not declared in this scope
    8 |     while(x<=y) ++ans,i*=2;
      |                       ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  llong X,Y,ans=0;
  cin >> X >> Y;
  
  for(int i=X;i<=Y;){
    i * = 2;
    ans+=1;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: expected primary-expression before '=' token
   27 |     i * = 2;
      |         ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 1000000000
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll X,Y,ans=0;
  cin >> X >> Y;
  
  for(int i=X;i<=Y;){
    i * = 2;
    ans+=1;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'll' was not declared in this scope
   23 |   ll X,Y,ans=0;
      |   ^~
a.cc:24:10: error: 'X' was not declared in this scope
   24 |   cin >> X >> Y;
      |          ^
a.cc:24:15: error: 'Y' was not declared in this scope
   24 |   cin >> X >> Y;
      |               ^
a.cc:27:9: error: expected primary-expression before '=' token
   27 |     i * = 2;
      |         ^
a.cc:28:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |     ans+=1;
      |     ^~~
      |     abs
a.cc:30:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |   cout << ans << endl;
      |           ^~~
      |           abs