criyle/codenet-compile-errors huggingface dataset:
Language: C++

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

typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll,ll> ii;

#define pb push_back#include <bits/stdc++.h>
#include <math.h>
using namespace std;

typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll,ll> ii;

#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz(vs) (ll)(vs.size())
#define rep(i,a,b) for (ll i=a;i<b;++i)
#define rep_(i,a,b) for (ll i=a;i>b;--i)
#define iter(i,c) for (auto i:c)
#define endl '\n'
const ll mod = 1e9 + 7;

const ll maxn = 1e5;

ll n, m;
ll a[maxn];
vi g[maxn];
string s;
char c;

void solve() {
	cin>>n;
	
	if (n<600) {cout<<8;return;}
	if (n<800) {cout<<7;return;}
	if (n<1000) {cout<<6;return;}
	if (n<1200) {cout<<5;return;}
	if (n<1400) {cout<<4;return;}
	if (n<1600) {cout<<3;return;}
	if (n<1800) {cout<<2;return;}
	if (n<2000) {cout<<1;return;}
}

void aux() {
}

int main() {
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	cout<<fixed<<setprecision(10);
	aux();
	ll _ = 1;
	// cin>>_;
	while(_--) {
		solve();
	}
	return 0;
}
#define mp make_pair
#define ff first
#define ss second
#define sz(vs) (ll)(vs.size())
#define rep(i,a,b) for (ll i=a;i<b;++i)
#define rep_(i,a,b) for (ll i=a;i>b;--i)
#define iter(i,c) for (auto i:c)
#define endl '\n'
const ll mod = 1e9 + 7;

const ll maxn = 1e5;

ll n, m;
ll a[maxn];
vi g[maxn];
string s;
char c;

void solve() {
	cin>>n;
	
	if (n<600) {cout<<8;return;}
	if (n<800) {cout<<7;return;}
	if (n<1000) {cout<<6;return;}
	if (n<1200) {cout<<5;return;}
	if (n<1400) {cout<<4;return;}
	if (n<1600) {cout<<3;return;}
	if (n<1800) {cout<<2;return;}
	if (n<2000) {cout<<1;return;}
}

void aux() {
}

int main() {
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	cout<<fixed<<setprecision(10);
	aux();
	ll _ = 1;
	// cin>>_;
	while(_--) {
		solve();
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: Debug.h: No such file or directory
    1 | #include "Debug.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C++

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


#define fast_IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl '\n'
typedef long long int lli;
typedef long long ll;
typedef long double ld;

ll gcd(ll a, ll b){ 
    if (b==0) 
        return a; 
    return gcd(b,a%b); 
} 

signed main(){
    fast_IO;
    int t=1;
    //cin>>t;
    while(t--){
        int n;
        cin>>n;
        if(x>=400 && x<600)
            cout<<8;
        else if(x>=600 && x<800)
            cout<<7;
        else if(x>=800 && x<1000)
            cout<<6;
        else if(x>=1000 && x<1200)
            cout<<5;
        else if(x>=1200 && x<1400)
            cout<<4;
        else if(x>=1400 && x<1600)
            cout<<3;
        else if(x>=1600 && x<1800)
            cout<<2;
        else if(x>=1800 && x<2000)
            cout<<1;
            
    }   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: 'x' was not declared in this scope
   24 |         if(x>=400 && x<600)
      |            ^
Language: C++

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

typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll,ll> ii;

#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sz(vs) (ll)(vs.size())
#define rep(i,a,b) for (ll i=a;i<b;++i)
#define rep_(i,a,b) for (ll i=a;i>b;--i)
#define iter(i,c) for (auto i:c)
#define endl '\n'
const ll mod = 1e9 + 7;

const ll maxn = 1e5;

ll n, m;
ll a[maxn];
vi g[maxn];
string s;
char c;

void solve() {
	cin>>n;
	
	if (n<600) {cout<<8;return;}
	if (n<800) {cout<<7;return;}
	if (n<1000) {cout<<6;return;}
	if (n<1200) {cout<<5;return;}
	if (n<1400) {cout<<4;return;}
	if (n<1600) {cout<<3;return;}
	if (n<1800) {cout<<2;return;}
	if (n<2000) {cout<<1;return;}
}

void aux() {
}

int main() {
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	cout<<fixed<<setprecision(10);
	aux();
	ll _ = 1;
	// cin>>_;
	while(_--) {
		solve();
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: Debug.h: No such file or directory
    1 | #include "Debug.h"
      |          ^~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

int main(){
  int X;
  cin >> X;

  int start = 400;
  int end   = 599;
  int deg = 8;
  while(end < 2000){
    if(start <= X && X <= end){
      cout << deg << endl;
      return 0;
    }

    start += 200;
    end += 200;1
    --deg;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: lvalue required as decrement operand
   21 |     end += 200;1
      |                ^
Language: C++

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

int main() {
	int X;
	int N;

	cin >> X;
	N=10-X/200
	cout << N << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before 'cout'
    9 |         N=10-X/200
      |                   ^
      |                   ;
   10 |         cout << N << endl;
      |         ~~~~
Language: C

#include<stdio.h>

int main(void){

    int X;

    scanf("%d",&X);
    if(X<=599){
        printf("8\n");
    }else if(X<=799){
        printf("7\n");
    }else if(X<=999){
        printf("6\n");
    }else if(X<=1199){
        printf("5\n");
    }else if(X<=1399){
        printf("4\n")
    }else if(X<=1599){
        printf("3\n");
    }else if(X<=1799){
        printf("2\n");
    }else{
        printf("1\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:22: error: expected ';' before '}' token
   17 |         printf("4\n")
      |                      ^
      |                      ;
   18 |     }else if(X<=1599){
      |     ~
Language: C++

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

int main() {
  int X;
  vector<int>S{0,0,8,7,6,5,4,3,2,1}
  
  cout << S.at(X/200) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout << S.at(X/200) << endl;
      |   ^~~~
Language: C++

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

int main() {
    int X;
    cin >> X;
    int j = 8;
    for (int i = 600; i =< 2000; i = i + 200) {
        if (X < i) {
            cout << j << endl;
            return 0;
        }
        j--;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected primary-expression before '<' token
    8 |     for (int i = 600; i =< 2000; i = i + 200) {
      |                          ^
Language: Java

import java.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;

public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int x = sc.nextInt();
    if (400 <= x < 600) {
      System.out.println(8);
    } else if (600 <= x < 800) {
      
    System.out.println(7);
    } else if (800 <= x < 1000) {
      
    System.out.println(6);
    } else if (1000 <= x < 1200) {
      
    System.out.println(5);
    } else if (1200 <= x < 1400) {
      
    System.out.println(4);
    } else if (1400 <= x < 1600) {
      
    System.out.println(3);
    } else if (1600 <= x < 1800) {
      
    System.out.println(2);
    }
    
    System.out.println(1);
  }
}


Compiler output:
Main.java:9: error: bad operand types for binary operator '<'
    if (400 <= x < 600) {
                 ^
  first type:  boolean
  second type: int
Main.java:11: error: bad operand types for binary operator '<'
    } else if (600 <= x < 800) {
                        ^
  first type:  boolean
  second type: int
Main.java:14: error: bad operand types for binary operator '<'
    } else if (800 <= x < 1000) {
                        ^
  first type:  boolean
  second type: int
Main.java:17: error: bad operand types for binary operator '<'
    } else if (1000 <= x < 1200) {
                         ^
  first type:  boolean
  second type: int
Main.java:20: error: bad operand types for binary operator '<'
    } else if (1200 <= x < 1400) {
                         ^
  first type:  boolean
  second type: int
Main.java:23: error: bad operand types for binary operator '<'
    } else if (1400 <= x < 1600) {
                         ^
  first type:  boolean
  second type: int
Main.java:26: error: bad operand types for binary operator '<'
    } else if (1600 <= x < 1800) {
                         ^
  first type:  boolean
  second type: int
7 errors
Language: C++

#include　<iostream>
#include <cstdio>
#include <vector>
using namespace std;
int main(){
    long long x;
    cin >> x;

    long long ans;
    if(400 <= x and x <= 599) ans = 8;
    else if(600 <= x and x <= 799) ans = 7;
    else if(800 <= x and x <= 999) ans = 6;
    else if(1000 <= x and x <= 1199) ans = 5;
    else if(1200 <= x and x <= 1399) ans = 4;
    else if(1400 <= x and x <= 1599) ans = 3;
    else if(1600 <= x and x <= 1799) ans = 2;
    else if(1800 <= x and x <= 1999) ans = 1;

    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:1:2: error: extended character 　 is not valid in an identifier
    1 | #include　<iostream>
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003000
    1 | #include　<iostream>
      |  ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> x;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <vector>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << ans << endl;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:20: error: 'endl' was not declared in this scope
   19 |     cout << ans << endl;
      |                    ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <vector>
  +++ |+#include <ostream>
    4 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    if(400<=x<600){
        cout<<8<<endl;
    }
    else if(x<800){
        cout<<7<<endl;
    }
    else if(x<1000){
        cout<<6<<endl;
    }
    else if(x<1200){
        cout<<5<<endl;

    }
    else if(x<1400){
        cout<<4<<endl;
    }
    else if(x<1600){
        cout<<3<<endl;
    }
    else if(x<1800){
        cout<<2<<endl;
    }
    else{
        cout<<2000<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'x' was not declared in this scope
    6 |     if(400<=x<600){
      |             ^
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, x, n) for (int i = x; i < (n); ++i)
#define all(v) v.begin(), v.end()
#define mp make_pair
#define INF 1e9

void init()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(20);
}

int main()
{
    init();
    int x;
    cin >> x;
    if (400 <=  x && x <= 599)
        cout << 8 << endl;
    if (600 <=  x && x <= 799)
        cout << 7 << endl;
    if (800 <=  x && x <= 999)
        cout << 6 << endl;
    if (1000 <=  x && x <= 1199)
        cout << 5 << endl;
    if (1200 <=  x && x <= 1399)
        cout << 4 << endl;
    if (1400 <= x && x <= 1599)
        cout << 3 << endl;
    if (1600 <= x && x <= 1799)
        cout << 2 << endl;
    if (1800 <= x && x <= 1999)
        cout << 1 << endl;
}


Compiler output:
main.c: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>

using namespace std;

typedef long long ll;

ll mod;

ll powimod(ll x,ll n,ll mod){
    ll res=1;
    while(n){
        if(n&1) res=(res*x)%mod;
        x=(x*x)%mod;
        n>>=1;
    }
    return res;
}

ll powi(ll x,ll n){
    ll res=1;
    while(n){
        if(n&1) res*=x;
        x*=x;
        n>>=1;
    }
    return res;
}

vector<int> z_function(string s) {
    int n = (int) s.length();
    vector<int> z(n);
    for (int i = 1, l = 0, r = 0; i < n; ++i) {
        if (i <= r)
            z[i] = min (r - i + 1, z[i - l]);
        while (i + z[i] < n && s[z[i]] == s[i + z[i]])
            ++z[i];
        if (i + z[i] - 1 > r)
            l = i, r = i + z[i] - 1;
    }
    return z;
}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int t=1;
    while(t--)
    {
    int x;
    cin>>x;
    int a=1;
    if(x<=599) a=8;
    else if(x<=799) a=7;
    else if(x<=999) a=6;
    else if(x<=1199) a=5;
    else if(x<=1399) a=4;
    else if(x<=1599) a=3;
    else if(x<=1799) a=2;
    cout<<a;
    }
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | =#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: expected unqualified-id before '=' token
    1 | =#include<bits/stdc++.h>
      | ^
a.cc:29:1: error: 'vector' does not name a type
   29 | vector<int> z_function(string s) {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:44:5: error: 'ios' has not been declared
   44 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:45:5: error: 'cin' was not declared in this scope
   45 |     cin.tie(0);
      |     ^~~
a.cc:59:5: error: 'cout' was not declared in this scope
   59 |     cout<<a;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define mod 1e9+7
typedef long long ll; 
 
 int main(){
  ios_base::sync_with_stdio(false); 
  ll n;
   cin>>n
   if(n>=400&&n<=599) cout<<8;
   else if(n>=600&&n<=799) cout<<7;
   else if(n>=800&&n<=999) cout<<6;
   else if(n>=1000&&n<=1199) cout<<5;
   else if(n>=1200&&n<=1399) cout<<4;
   else if(n>=1400&&n<=1599) cout<<3;
   else if(n>=1600&&n<=1799) cout<<2;
   else if(n>=1800&&n<=1999) cout<<1;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'if'
    9 |    cin>>n
      |          ^
      |          ;
   10 |    if(n>=400&&n<=599) cout<<8;
      |    ~~     
a.cc:11:4: error: 'else' without a previous 'if'
   11 |    else if(n>=600&&n<=799) cout<<7;
      |    ^~~~
Language: C++

using namespace std;
 
int main(){
  int n;
  cin >> n;
  int kyu = 10 - n/200;
  cout << kyu;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << kyu;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define ALL(a)    a.begin(), a.end() 
#define rep(i, K, N)  for(long long int i = K; i < N; i++)
#define ll long long int
using namespace std;

int main(){
ll N;cin >> N;

if(400 <= N && N <= 599)cout << 8;

if(600 <= N && N <= 799)cout << 7;

if(800 <= N && N <= 999)cout << 6;

if(1000 <= N && N <= 1199)cout << 5;

if(1200 <= N && N <= 1399)cout << 4;

if(1400 <= N && N <= 1599)cout << 3;

if(1600 <= N && N <= 1799)cout << 2;

if(1800 <= N && N <= 1999)cout << 1;


Compiler output:
a.cc: In function 'int main()':
a.cc:25:37: error: expected '}' at end of input
   25 | if(1800 <= N && N <= 1999)cout << 1;
      |                                     ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: Java

import java.util.*;
import java.util.function.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int N = Integer.valueOf(s.next());

		int ret = 0;
		if(N < 600) {
			ret = 8;
		}else if(N < 800) {
			ret = 7;
		}else if(N < 1000) {
			ret = 6;
		}else if(N < 1200) {
			ret = 5;
		}else if(N < 1400) {
			ret = 4;
		}else if(N < 1600) {
			ret = 3;
		}else if(N < 1800) {
			ret = 2;
		}else if(N < 2000) {
			ret = 1;
		}
		
		System.out.println(ret);
	}
	}
}

Compiler output:
Main.java:31: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

int main{
    int m;
    cin >> m ;
    if(m >= 1800){
        cout << '1' << endl;
    }else if(m >= 1600){
        cout << '2' << endl;
    }else if(m >= 1400){
        cout << '3' << endl;
    }else if(m >= 1200){
        cout << '4' << endl;
    }else if(m >= 1000){
        cout << '5' << endl;
    }else if(m >= 800){
        cout << '6' << endl;
    }else if(m >= 600){
        cout << '7' << endl;
    }else if(m >= 400){
        cout << '8' << endl;
    } 
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:5: error: expected primary-expression before 'int'
    6 |     int m;
      |     ^~~
a.cc:6:5: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin >> m ;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(m >= 1800){
      |     ^~
a.cc:10:6: error: expected unqualified-id before 'else'
   10 |     }else if(m >= 1600){
      |      ^~~~
a.cc:12:6: error: expected unqualified-id before 'else'
   12 |     }else if(m >= 1400){
      |      ^~~~
a.cc:14:6: error: expected unqualified-id before 'else'
   14 |     }else if(m >= 1200){
      |      ^~~~
a.cc:16:6: error: expected unqualified-id before 'else'
   16 |     }else if(m >= 1000){
      |      ^~~~
a.cc:18:6: error: expected unqualified-id before 'else'
   18 |     }else if(m >= 800){
      |      ^~~~
a.cc:20:6: error: expected unqualified-id before 'else'
   20 |     }else if(m >= 600){
      |      ^~~~
a.cc:22:6: error: expected unqualified-id before 'else'
   22 |     }else if(m >= 400){
      |      ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
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 INF 1e9
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << ": " << x << endl;

using namespace std;
typedef long long ll;

signed main() {
  int x, ans;
  cin >> x;
  if(x >= 400 && x <= 599) {
    ans = 8;
  } else if(x >= 600 && x <= 799) {
    ans = 7;
  } else if(x >= 800 && x <= 999) {
    ans = 6;
  } else if(x >= 1000 && x <= 1199) {
    ans = 5;
  } else if(x >= 1200 && x <= 1399) {
    ans = 4;
  } else if(x >= 1400 && x <= 1599) {
    ans = 3;
  } else if(x >= 1600 && x <= 1799) {
    ans = 2;
  } else {
    ans = 1;
  }
  cout << ans << endl;
  return;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   33 |   return;
      |   ^~~~~~
Language: C++

using namespace std;

void main(){
  int n;
  cin >> n;
  int kyu = 10 - n/200;
  cout << kyu;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << kyu;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
//import java.util.stream.Collectors;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int r = 0;
		if(n < 600){
			r = 8;
		}else if(n < 800){
			r = 7;
		}else if(n < 1000){
			r = 6;
		}else if(n<1200){
			r = 5;
		}else if(n<1400){
			r = 4;
		}else if(n < 1600){
			r = 3;
		}else if(n < 1800){
			r = 2;
		}else{
			r = 1
		}
		System.out.println(r);
	}
}


Compiler output:
Main.java:25: error: ';' expected
			r = 1
			     ^
1 error
Language: C++

int main() {
  int x;
  int t;
  cin >> x;
  t = x - 400;
  
  cout << 8 - (t/200) << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> x;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 8 - (t/200) << endl;
      |   ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |   cout << 8 - (t/200) << endl;
      |                          ^~~~
Language: C++

#include<stdio.h>
int main(){
    int x;
    scanf("%d",&x);
    if (x >= 400 && x <= 599)
        puts("8");
    if (x >= 600 && x <= 799)
        puts("7");
    if (x >= 800 && x <= 999)
        puts("6");
    if (x >= 1000 && x <= 1199)
        puts("5");
    if (x >= 1200 && x <= 1399)
        puts("4");
    if (x >= 1400 && x <= 1599)
        puts("3");
    if (x >= 1600 && x <= 1799)
        puts("2");
    if (x >= 1800 && x <= 1999)
        puts("1");
    reutnr 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i=a; i<(b); i++)

int x;

void solve(){
    int ans;
    if (x >= 400) ans = 8;
    if (x >= 600) ans = 7;
    if (x >= 800) ans = 6;
    if (x >= 1000) ans = 5;
    if (x >= 1200) ans = 4;
    if (x >= 1400) ans = 3;
    if (x >= 1600) ans = 2;
    if (x >= 1800) ans = 1;
    cout << ans << "-kyu\n";
}


int main(){
   	ios::sync_with_stdio(false);
	cin.tie(0);
	cin >> x;
    solve();
	
	return 0;
}

Compiler output:
main.c: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>
using namespace std;

int main() {
  int X;
  string S = 0087654321;
  
  cout << S.at(X/200) << endl;
}

Compiler output:
a.cc:6:14: error: invalid digit "8" in octal constant
    6 |   string S = 0087654321;
      |              ^~~~~~~~~~
Language: C++

// In the name of god
#include <bits/stdC++.h>
#pragma GCC optimze("02")
#define F first
#define S second
#define pb push_back
using namespace std;
using ll = long long;
const ll maxn=1e5+5,inf=1e18+18;
ll n,m;
int main(){
	ios::sync_with_stdio(false) , cin.tie(0) , cout.tie(0);
	cin>>n;
	if(n>1799)cout<<1;
	else if(n>1599)cout<<2;
	else if(n>1399)cout<<3;
	else if(n>1199)cout<<4;
	else if(n>999)cout<<5;
	else if(n>799)cout<<6;
	else if(n>599)cout<<7;
	else cout<<8;
}


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

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

typedef long long int ll;
typedef long double ld;

#define Pb push_back
#define Mp make_pair
#define ff first
#define ss second
#define INF LONG_LONG_MAX
#define MINF LONG_LONG_MIN
#define endl "\n"
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)

#define db1(x) cout<<#x<<" : "<<x<<endl;
#define db2(x,y) cout<<#x<<" : "<<x<<"\t"<<#y<<" : "<<y<<endl;
#define db3(x,y,z) cout<<#x<<" : "<<x<<"\t"<<#y<<" : "<<y<<"\t"<<#z<<" : "<<z<<endl;

const int  N = 1e4+7;
const int inf = INT_MAX;
const int MOD = 1e9+7;

void solve()
{
   int x;
   cin >>> x;
   int ans;
   if(x>=400 && x<=599) ans = 8;
   else if(x>=600 && x<799) ans = 7;
   else if(x>=800 && x<=999)  ans = 6;
   else if(x>=1000 && x<=1199)   ans = 5;
   else if(x>=1200 && x<=1399)   ans = 4;
   else if(x>=1400 && x<=1599)   ans = 3;
   else if(x>=1600 && x<=1799)   ans = 2;
   else if(x>=1800 && x<=1999)   ans = 1;
   cout << ans;
}

int32_t main()
{
   IOS;
   //freopen("input.txt", "rt", stdin);
   //freopen("output.txt", "wt", stdout);
   int t=1;
   //cin >> t;
   for(int i=1;i<=t;i++)
   {
      cout<<"Case #"<<i<<": ";
      solve();
   }
   return 0;
}
/*==============================================================================================================================================================*/


Compiler output:
a.cc: In function 'void solve()':
a.cc:27:10: error: expected primary-expression before '>' token
   27 |    cin >>> x;
      |          ^
Language: Java

import java.io.*;
import java.util.*;
public class A {
 
  public static void main(String[] args) { 
        solve();
      out.close();
  }

  private static void solve() {

      int n = sc.nextInt();
      int res = 0;
      if(n >= 400 && n < 600) {
        res = 8;
      } else if(n >= 600 && n < 800) {
        res = 7;
      } else if(n >= 800 && n < 1000) {
        res = 6;
      } else if(n >= 1000 && n < 1200) {
        res = 5;
      } else if(n >= 1200 && n < 1400) {
        res = 4;
      }
       else if(n >= 1400 && n < 1600) {
        res = 3;
      }
       else if(n >= 1600 && n < 1800) {
        res = 2;
      }
       else if(n >= 1800 && n < 2000) {
        res = 1;
      }
      out.println(res);
  }

  public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
 
  public static FastScanner sc = new FastScanner();

  static class FastScanner {
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      StringTokenizer st=new StringTokenizer("");
      String next() {
        while (!st.hasMoreTokens())
          try {
            st=new StringTokenizer(br.readLine());
          } catch (IOException e) {
            e.printStackTrace();
          }
        return st.nextToken();
      }
      
      int nextInt() {
        return Integer.parseInt(next());
      }
      int[] readArray(int n) {
        int[] a=new int[n];
        for (int i=0; i<n; i++) a[i]=nextInt();
        return a;
      }
      long nextLong() {
        return Long.parseLong(next());
      }
  }
}

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

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

int main(){
  int N; cin >> N;
  int ans;
  if(N < 600) ans = 8;
  else if(N<800) ans = 7;
  else if(N<1000) ans = 6;
  else if(N<1200) ans = 5;
  else if(N<1400) ans = 4;
  else if(N<1600) ans = 3;
  else if(N<1800) ans = 2;
  else ans = 1
    cout << ans << endl;
  return 0;
  
}

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

#include <bits/stdc++.h>
#include <math.h>

int main() {
	int n; cin >> n;
	int ans;
	if(400<=n&&n<=599) ans=8;
	else if(n<=799) ans=7;
	else if(n<=999) ans=6;
	else if(n<=1199) ans=5;
	else if(n<=1399) ans=4;
	else if(n<=1599) ans=3;
	else if(n<=1799) ans=2;
	else ans=1;
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         int n; cin >> n;
      |                ^~~
      |                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:15:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |         cout << ans << 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:15:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |         cout << ans << 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 <stdio.h>
#include <stdlib.h>
#include <math.h>


#define rep(i,r,l) for(int i = r; i < l; i++)
#define elif else if

int nextint(void){int n;scanf("%d",&n);return n;}
void printint(int d){printf("%d\n",d);}


int main(void){ 

    int x=nextint();
    printnit(10-x/200);

    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:16:5: error: implicit declaration of function 'printnit'; did you mean 'printint'? [-Wimplicit-function-declaration]
   16 |     printnit(10-x/200);
      |     ^~~~~~~~
      |     printint
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)


int main() {
  int X;
  cin >> X;
  
  if(X>=1800){
    cout << 1<<endl;
  }
  else if(X>=1600){
    cout << 2 <<endl;
  }
  else if(X>=1400){
    cout << 3 <<endl;
  }
  else if(X>=1200){
    cout << 4 <<endl;
  }
  else if(X>=1000){
    cout << 5 <<endl;
  }
  else if(X>=800){
    cout << 6 <<endl;
  }
  else if(X>=600){
    cout << 7 <<endl;
  }
  else){
    cout << 8 <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:7: error: expected primary-expression before ')' token
   31 |   else){
      |       ^
Language: C

#include<stdio.h>

int main(){
  int x;
  sacanf("%d",&x);
  int ans=x/200;
  ans=10-ans;
  
  printf("%d",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'sacanf'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
    5 |   sacanf("%d",&x);
      |   ^~~~~~
      |   sscanf
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <vector>
#include <string>
#include <string.h>

using namespace std;
#define ll long long int

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);

	int n;
	cin>>n;
	cout<<n/=200<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |         cout<<n/=200<<endl;
      |                  ~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
using ll = long long;
using pii = pair<int, int>;
 
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define all(x) (x).begin(),(x).end()
#define x first
#define y second
 
const int MOD = 1e9 + 7;
 
void setIO() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
//    freopen((s+".in").c_str(),"r",stdin);
//    freopen((s+".text").c_str(),"w",stdout);
}

//ctrl q is comment
//ctrl b is run
//ctrl s is compile
//alt r is search & replace
//alt d is delete a line

int main(){
    setIO();
    int x; cin >> x;
    if(x > = 1800) cout << 1;
    else if(x >= 1600) cout << 2;
    else if(x >= 1400) cout << 3;
    else if(x >= 1200) cout << 4;
    else if(x >= 1000) cout << 5;
    else if(x >= 800) cout << 6;
    else if(x >= 600) cout << 7;
    else if(x >= 400) cout << 8;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:12: error: expected primary-expression before '=' token
   32 |     if(x > = 1800) cout << 1;
      |            ^
Language: C

#include<stdio.h>

intmain(){
  int x;
  sacanf("%d",&x);
  int ans=x/200;
  ans=10-ans;
  
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | intmain(){
      | ^~~~~~~
main.c: In function 'intmain':
main.c:5:3: error: implicit declaration of function 'sacanf'; did you mean 'sscanf'? [-Wimplicit-function-declaration]
    5 |   sacanf("%d",&x);
      |   ^~~~~~
      |   sscanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
typedef long long ll;
typedef pair<ll,ll> prl;
typedef vector<ll> vcl;
typedef map<ll,ll> mapl;
typedef unordered_map<ll,ll> umap;
#define pb push_back
#define all(v) v.begin(), v.end()
#define rep(i,a,b) for(ll i=a;i<=b;i++)
#define repi(i,a,b) for(int i=a;i<=b;i++)
#define repr(i,a,b) for(ll i=a;i>=b;i--)
#define reps(i,v) for(ll i=0;i<v.size();i++)
template<typename T> void chmin(T &a, const T &b) { a = min(a, b); }
template<typename T> void chmax(T &a, const T &b) { a = max(a, b); }
const ll mod = 1e9+7;

int main() {
    // your code goes here
    int x;
    cin >> x;
    x=x/200;
    cout << 100-X << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: 'X' was not declared in this scope
   26 |     cout << 100-X << endl;
      |                 ^
Language: C++

#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <map>
#include <numeric>
#include <stack>
#include <string>
#include <vector>
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
 
int main()
{
    int a,b,c,k;
    cin >> a >> b >> c >> k;
    int cnt = 0;
    while (a >= b)
    {
        b *= 2;
        cnt++;
    }
    while (b >= c)
    {
        c *= 2;
        cnt++;
    }
    if (cnt <= k)
    {
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: expected '}' at end of input
   35 |     }
      |      ^
a.cc:16:1: note: to match this '{'
   16 | {
      | ^
Language: C++

#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int  a,b,c,cnt=0,k,p;
cin>>a;
cin>>b;
cin>>c;
cin>>k;
p=k;
while(k--)
{
if(c>2*a  &&  c>b  &&  b>2*a )
{cnt++;
a=2*a;}
if(c>a  &&  c>2*b  && 2*b>a )
{cnt++;
b=2*b}
if(2*c>b  && 2*c>a    &&  b>a)
{cnt++;
c=2*c;}
if(c>b   &&   c>a  && b>a)
{cnt++;}
}

if( cnt == p)
{
cout<<"Yes";}
else{cout<<"No";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:6: error: expected ';' before '}' token
   19 | b=2*b}
      |      ^
      |      ;
Language: C++

#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
float a,b,c,cnt=0,k,p;
cin>>a;
cin>>b;cin>>c;
cin>>k;
p=k;
while(k--)
{
if(b>2a  &&  c>b )
{cnt++;}
if(2b>a  &&  c>b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
}

if( cnt == p)
{
cout<<"Yes";}
else{cout<<"No";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: unable to find numeric literal operator 'operator""a'
   13 | if(b>2a  &&  c>b )
      |      ^~
a.cc:15:4: error: unable to find numeric literal operator 'operator""b'
   15 | if(2b>a  &&  c>b )
      |    ^~
a.cc:17:15: error: unable to find numeric literal operator 'operator""b'
   17 | if(b>a  &&  c>2b )
      |               ^~
a.cc:19:15: error: unable to find numeric literal operator 'operator""b'
   19 | if(b>a  &&  c>2b )
      |               ^~
Language: C++

#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int a,b,c,cnt=0,k,p;
cin>>a;
cin>>b;cin>>c;
cin>>k;
p=k;
while(k--)
{
if(b>2a  &&  c>b )
{cnt++;}
if(2b>a  &&  c>b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
}

if( cnt == p)
{
cout<<"Yes";}
else{cout<<"No";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: unable to find numeric literal operator 'operator""a'
   13 | if(b>2a  &&  c>b )
      |      ^~
a.cc:15:4: error: unable to find numeric literal operator 'operator""b'
   15 | if(2b>a  &&  c>b )
      |    ^~
a.cc:17:15: error: unable to find numeric literal operator 'operator""b'
   17 | if(b>a  &&  c>2b )
      |               ^~
a.cc:19:15: error: unable to find numeric literal operator 'operator""b'
   19 | if(b>a  &&  c>2b )
      |               ^~
Language: C++

#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main()
{
int a,b,c,cnt=0,k,p;
cin>>a;
cin>>b;cin>>c;
cin>>k;
p=k;
while(k--)
{
if(b>2a  &&  c>b )
{cnt++;}
if(2b>a  &&  c>b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
}

if( cnt == p)
{
cout<<"Yes";}
else{cout<<"No";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a;
      | ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <stdlib.h>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:13:6: error: unable to find numeric literal operator 'operator""a'
   13 | if(b>2a  &&  c>b )
      |      ^~
a.cc:15:4: error: unable to find numeric literal operator 'operator""b'
   15 | if(2b>a  &&  c>b )
      |    ^~
a.cc:17:15: error: unable to find numeric literal operator 'operator""b'
   17 | if(b>a  &&  c>2b )
      |               ^~
a.cc:19:15: error: unable to find numeric literal operator 'operator""b'
   19 | if(b>a  &&  c>2b )
      |               ^~
a.cc:25:1: error: 'cout' was not declared in this scope
   25 | cout<<"Yes";}
      | ^~~~
a.cc:25:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:6: error: 'cout' was not declared in this scope
   26 | else{cout<<"No";}
      |      ^~~~
a.cc:26:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <stdio.h>
using namespace std;
int main()
{
int a,b,c,cnt=0;
cin>>a;
cin>>b;cin>>c;
cin>>k;
p=k;
while(k--)
{
if(b>2a  &&  c>b )
{cnt++;}
if(2b>a  &&  c>b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
if(b>a  &&  c>2b )
{cnt++;}
}

if( cnt == p)
{
cout<<"Yes";
}
else{cout<<"No";}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:6: error: 'k' was not declared in this scope
    8 | cin>>k;
      |      ^
a.cc:9:1: error: 'p' was not declared in this scope
    9 | p=k;
      | ^
a.cc:12:6: error: unable to find numeric literal operator 'operator""a'
   12 | if(b>2a  &&  c>b )
      |      ^~
a.cc:14:4: error: unable to find numeric literal operator 'operator""b'
   14 | if(2b>a  &&  c>b )
      |    ^~
a.cc:16:15: error: unable to find numeric literal operator 'operator""b'
   16 | if(b>a  &&  c>2b )
      |               ^~
a.cc:18:15: error: unable to find numeric literal operator 'operator""b'
   18 | if(b>a  &&  c>2b )
      |               ^~
a.cc:24:1: error: 'cout' was not declared in this scope
   24 | cout<<"Yes";
      | ^~~~
a.cc:24:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:6: error: 'cout' was not declared in this scope
   26 | else{cout<<"No";}
      |      ^~~~
a.cc:26:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>

int main()
{
	int r,g,b,k,flag=0;
	scanf("%d %d %d",&r&g&b);
	scanf("%d",&k);
	while(g<=r)
	{
		g*=2;
		flag++;
	}
	while(b<=g)
	{
		g*=2;
		flag++; 
	}
	if(flag<=k) printf("Yes\n");
	else printf("No\n");
	
	return 0;
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    6 |         scanf("%d %d %d",&r&g&b);
      |                          ~~^~
      |                          |  |
      |                          |  int
      |                          int*
Language: C++

#include<iostream>
using namespace std;

int main(){
	long long int a,b,c;
	long long int k;
	cin>>a>>b>>c>>k;
	while(k--){
		if(a>=b)
			b*=2;
		}
		else if(b>=c)
			c*=2;
		}
		
	}
		 if(a<b&&b<c){
			cout<<"Yes"<<endl;
			return 0;
		}
		cout<<"No"<<endl;
		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'else' without a previous 'if'
   12 |                 else if(b>=c)
      |                 ^~~~
a.cc: At global scope:
a.cc:16:9: error: expected declaration before '}' token
   16 |         }
      |         ^
a.cc:17:18: error: expected unqualified-id before 'if'
   17 |                  if(a<b&&b<c){
      |                  ^~
a.cc:21:17: error: 'cout' does not name a type
   21 |                 cout<<"No"<<endl;
      |                 ^~~~
a.cc:22:17: error: expected unqualified-id before 'return'
   22 |                 return 0;
      |                 ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x,i,j,k,l,a,b,c;
  cin >> a >> b >> c;
  cin >> k;
  j=0;
  while(b<=a)
  {
  	b*=2;
    j++;
  }
  while(c<=b)
  {
    c*=2;
    j++:
  }
  if(j<=k)
  cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: expected ';' before ':' token
   17 |     j++:
      |        ^
      |        ;
Language: C++

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

int main() {
	ll a, b, c, k;
  	cin >> a >> b >> c >> k;
  
  	ll cnt = 0;
  	while(a > b) {
    	b <<= 1;
      	cnt++;
    }
  
  	while(b > c) {
    	c <<= 1;
      	cnt++;
    } 
 
 	cout << (cnt <= k ? "Yes\n" : "No\n");
  	retutn 0;
}

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

#include <bits/stdc++.h>
#include <string.h>
#define ll long long

using namespace std;

int main() {
	
	int a,b,c;
	cin >> a >> b >> c;
    int k;
    cin >> k;
    int count = 0;
    while(a !< b)
    {
        b = b*2;
        count+=1;
    }
    while(b !< c)
    {
        c = c*2;
        count+= 1;
    }
    if((a < b) && (b < c) && (count <= k))
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
    
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected ')' before '!' token
   14 |     while(a !< b)
      |          ~ ^~
      |            )
a.cc:14:14: error: expected primary-expression before '<' token
   14 |     while(a !< b)
      |              ^
a.cc:19:12: error: expected ')' before '!' token
   19 |     while(b !< c)
      |          ~ ^~
      |            )
a.cc:19:14: error: expected primary-expression before '<' token
   19 |     while(b !< c)
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
#define all(vec) vec.begin(),vec.end()
using vi = vector<int>;
using vvi = vector<vi>;
using ll = long long;
int main() {
  int A, B, C, K; cin >> A >> B >> C >> K;
  rep(i,K){
    if(A>=B) B *=2;
    else (B>=C) C *= 2;
  }
  if (A <B && B < C) cout << "Yes" << endl;
  else cout << "No" << endl;
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'C'
   12 |     else (B>=C) C *= 2;
      |                ^~
      |                ;
Language: C++

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

int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    int k;
    cin >> k;
    while (b <= a)
        b *= 2, k--;
    while (c <= b)
        c *= 2, k--;
    k -= ls;
    if (k < 0)
        cout << "No";
    else
        cout << "Yes";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'ls' was not declared in this scope
   14 |     k -= ls;
      |          ^~
Language: C

#include<stdio.h>
int main(void){
	int d[3];
	int k;
	int i;
	int cnt=;
	for(i=0;i<3;i++)
	 scanf("%d",&d[i]);
	scanf("%d",&k);

	while(d[0]>=d[1]){
		cnt+=1;
		d[1]*=2;
	}
	while(d[1]>=d[2]){
		cnt+=1;
		d[2]*=2;
	}
	if(cnt<=k) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before ';' token
    6 |         int cnt=;
      |                 ^
Language: C++

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

int main()
{
int a,b,c;
cin>>a>>b>>c;
int k;
cin>>k;
while(k>0&&b<=a)
{
b*=2;
k--;
}

while(k>0&&c<=b)
{
c*=2;
k--;

}
if(b>a&&c>b)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: expected '}' at end of input
   25 | cout<<"No"<<endl;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String args[]){
    	Scanner sc = new Scanner(System.in);
      	int A = sc.next();
      	int B = sc.next();
      	int C= sc.nextLine();
      	int K = sc.nextInt();
      
      	if(A < B){
        	for(int i=0; i<K; i++){
            B = B*2;	
            }
        if()(B < C){
        	for(int h=0; h < K; h++){
            C = C*2
            }
        }
        }
      	
    }
}

Compiler output:
Main.java:14: error: illegal start of expression
        if()(B < C){
           ^
Main.java:14: error: not a statement
        if()(B < C){
            ^
Main.java:14: error: ';' expected
        if()(B < C){
                   ^
Main.java:16: error: ';' expected
            C = C*2
                   ^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,o,n) for(long long i = o;i<n;i++)
#define oneforall ios::sync_with_stdio(false);cin.tie(0);
#define all(v) (v).begin(),(v).end()
#define ini(...) int __VA_ARGS__; in(__VA_ARGS__)
#define inl(...) long long __VA_ARGS__; in(__VA_ARGS__)
#define ins(...) string __VA_ARGS__; in(__VA_ARGS__)
#define int long long 
const long long inf=1e18;
void in(){} template <typename T,class... U> void in(T &t,U &...u){ cin >> t; in(u...);}
void out(){cout << "\n";} template <typename T,class... U> void out(const T &t,const U &...u){ cout << t; if(sizeof...(u)) cout << " "; out(u...);}
typedef vector<int> vi;
typedef vector<long long> vl;
typedef long long ll;
typedef vector<pair<long, long > > vpll;
typedef vector<pair<int, int > > vpii;
#define FORR(x,arr) for(auto& x:arr)
#define ZERO(a) memset(a,0,sizeof(a))





//3111111111111111111111111111111
	

	void solve(){
		
		
		int x[3];
		FOR(i,0,3)in(x[i]);
		ini(x1);
		while(x[1]<=x[0]){
			if(x1==0){
				return out("No");
			}
			else{
				x[1]*=2;
				x1--;
			}
		}
		while(x[2]<=x[1]){
			if(x1==0){
				return out("No");
			}
			else{
				x[2]*=2;
				x1--;
			}
		}
		return out("Yes")
		

		
		


			
			
			


				
		


		
		
		
		

		


		
		
	}



	



















int32_t main() {
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall
	oneforall 
	oneforall

	solve();
	


	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:52:34: error: expected ';' before '}' token
   52 |                 return out("Yes")
      |                                  ^
      |                                  ;
......
   78 |         }
      |         ~