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

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

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

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

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

Compiler output:
main.c: In function 'main':
main.c:9:19: error: expected expression before '<' token
    9 |     if(1200<= X <=<399)printf("4");
      |                   ^
Language: C++

#include<bits/stdc++.h> 
using namespace std; 
#define ll long long 
#define sort(v) sort(v.begin(),v.end()) 
#define pb push_back
/*ll ar[1000000+9]={0}; 
void seiv() { 
ll n=1000000,i,j; 
ar[1]=1; 
for(i=4;i<=n;i+=2)ar[i]=1; 
for(i=3;i<=n;i+=2) 
{ if(ar[i]==0) 
{ for(j=i*i;j<=n;j+=i*2)ar[j]=1; }
 } 
*/
int main()
{
    
    ll a,b,c,d,e,i;
    cin>>a;
  if(a>=400&&a<=599)cout<<8<<endl;
if(a>=460&&a<=799)cout<<7<<endl;

if(a>=800&&a<=999)cout<<6<<endl;
    if(a>=1000cout<<3<<endl;
if(a>=1600&&a<=1799)cout<<2<<endl;
    
if(a>=1800&&a<=1999)cout<<1<<endl;
        }
 &&a<=1199)cout<<5<<endl;
    
    if(a>=1200&&a<=1399)cout<<4<<endl;
    if(a>=1400&&a<=1599)

Compiler output:
a.cc: In function 'int main()':
a.cc:25:11: error: unable to find numeric literal operator 'operator""cout'
   25 |     if(a>=1000cout<<3<<endl;
      |           ^~~~~~~~
a.cc:26:1: error: expected primary-expression before 'if'
   26 | if(a>=1600&&a<=1799)cout<<2<<endl;
      | ^~
a.cc:25:29: error: expected ')' before 'if'
   25 |     if(a>=1000cout<<3<<endl;
      |       ~                     ^
      |                             )
   26 | if(a>=1600&&a<=1799)cout<<2<<endl;
      | ~~                           
a.cc: At global scope:
a.cc:30:5: error: expected constructor, destructor, or type conversion before '<=' token
   30 |  &&a<=1199)cout<<5<<endl;
      |     ^~
a.cc:32:5: error: expected unqualified-id before 'if'
   32 |     if(a>=1200&&a<=1399)cout<<4<<endl;
      |     ^~
a.cc:33:5: error: expected unqualified-id before 'if'
   33 |     if(a>=1400&&a<=1599)
      |     ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int X;
    ci X;
    int ans =  8 - (X - 400) / 200;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'ci' was not declared in this scope
    6 |     ci X;
      |     ^~
Language: Java

import java.util.*;
public class Main {
	public int process(int k) {
		if(k >= 400 && k < 600) {
			return 8;
		}
		else if(k >= 600 && k < 800) {
			return 7;
		}
		else if(k >= 800 && k < 1000) {
			return 6;
		}
		else if(k >= 1000 && k < 1200) {
			return 5;
		}
		else if(k >= 1200 && k < 1400) {
			return 4;
		}
		else if(k >= 1400 && k < 1600) {
			return 3;
		}
		else if(k >= 1600 && k < 1800) {
			return 2;
		}
		else if(k >= 1800 && k < 2000) {
			return 1;
		}
		return -1;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		
		System.out.println(process(t));
	}
}

Compiler output:
Main.java:34: error: non-static method process(int) cannot be referenced from a static context
		System.out.println(process(t));
		                   ^
1 error
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before 'cout'
   14 |   else if((x>=1000&&(x<=1199))
      |                               ^
      |                               ;
   15 |      cout<<5;
      |      ~~~~                      
a.cc:16:3: error: expected primary-expression before 'else'
   16 |   else if((x>=1200)&&(x<=1399))
      |   ^~~~
a.cc:15:14: error: expected ')' before 'else'
   15 |      cout<<5;
      |              ^
      |              )
   16 |   else if((x>=1200)&&(x<=1399))
      |   ~~~~        
a.cc:14:10: note: to match this '('
   14 |   else if((x>=1000&&(x<=1199))
      |          ^
Language: C++

#include<bits/stdc++.h>
#define speedio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
using namespace std;
// #include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;

typedef long long       ll;
typedef long long double     ld;

typedef vector<int>     vi;
typedef vector<bool>    vb;
typedef vector<ll>      vll;
typedef vector<vi>      vvi;
typedef vector<vll>     vvll;
typedef vector<string>  vs;

typedef pair<int, int>  pii;
typedef pair<ll, int>   pli;
typedef pair<ll, ll>    pll;
typedef vector< pii >   vpi;
typedef vector< pll >   vpll;

// typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> oset;

#define pb           push_back
#define mod          1000000007
#define INF          1e17
#define mini         INT_MIN
#define maxo         INT_MAX
#define eb           emplace_back
#define ff           first
#define ss           second
#define re           return 
#define endl         "\n" 

#define all(c)       c.begin(),c.end()
#define be           begin()
#define en           end()
#define sz(x)        (ll)x.size()
#define mem(a,val)   memset(a,val,sizeof(a))
#define mk(x,y)      make_pair(x,y)
#define mid(s,e)     ((s)+((e)-(s))/2) 

#define fo(i,a,b)     for(ll i = (ll)(a); i <= (ll)(b); i++)
#define rf(i,a,b)    for(ll i = (ll)(a); i >= (ll)(b); i--)
#define read(a,n)    for(int i=0;i<n;i++)cin>>a[i];
#define show(a,n)    for(int i=0;i<n;i++)cout<<a[i]<<' ';cout<<endl;
#define p2(n)        (1LL << (n))
#define deb(x) cout <<#x << " = " << x << " | " << "LINE: "<<__LINE__<< endl;
template<typename... T> void rd(T&... args) { ((cin >> args), ...); }
template<typename... T> void pp(T... args) { ((cout << args << " "), ...); cout<<"\n"; }

void add(ll &x, ll y){ x += y; if(x>=mod) x %= mod; if(x<0) x = x%mod + mod; }

//============== *** START OF CODE ***



const ll maxn = 2e5+5;
ld ar[maxn+5];
ld pre[maxn+5];
ld epi = 1e-6;

void solve()
{
    int n,k;rd(n,k);
    read((ar+1),n);
    fo(i,1,n)ar[i]=pre[i]=log(ar[i]);
    fo(i,1,n)pre[i]+=pre[i-1];

    fo(i,k,n){
        ar[i] = pre[i]-pre[i-k];
    }
    fo(i,k+1,n){
        if(ar[i]>ar[i-1]+epi)cout<<"Yes\n";
        else cout<<"No\n";
    }

    
}


void prep(){}

//=============== *** END OF CODE ***

int main(){
    speedio; cout<<fixed<<setprecision(12);

// #ifndef ONLINE_JUDGE
//     freopen("input.txt", "r", stdin);
//     freopen("output.txt", "w", stdout);
// #endif

    prep();
    int t = 1;
    // cin >> t;
    while(t--)
        solve();

    return 0;
}

Compiler output:
a.cc:8:14: error: 'long long' specified with 'double'
    8 | typedef long long double     ld;
      |              ^~~~
Language: Java

import java.util.Scanner;
public class At_First {
public static void main(String args[]) {
	Scanner sc=new Scanner(System.in);
	int n=sc.nextInt();
	if(n>=400&&n<=599) {
		System.out.println("8");
	}else if(n>=600&&n<=799) {
		System.out.println("7");
	}else if(n>=800&&n<=999) {
		System.out.println("6");
	}else if(n>=1000&&n<=1199) {
		System.out.println("5");
	}else if(n>=1200&&n<=1399) {
		System.out.println("4");
	}else if(n>=1400&&n<=1599) {
		System.out.println("3");
	}else if(n>=1600&&n<=1799) {
		System.out.println("2");
	}else if(n>=1800&&n<=1999) {
		System.out.println("1");}
}
}


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

import java.util.Scanner;
 
 static int calc(int num) {
  if (400 =< num =< 599) {
    System.out.println(8);
  } else if (600 =< num =< 799) {
    System.out.println(7);
  } else if (800 =< num =< 999) {
    System.out.println(6);
  } else if (1000 =< num =< 1199) {
    System.out.println(5);
  } else if (1200 =< num =< 1399) {
    System.out.println(4);
  } else if (1400 =< num =< 1599) {
    System.out.println(3);
  } else if (1600 =< num =< 1799) {
    System.out.println(2);
  } else if (1800 =< num =< 1999) {
    System.out.println(1);
  }
  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int num stdIn.nextInt();
    
    calc(num);
  }
}

Compiler output:
Main.java:4: error: not a statement
  if (400 =< num =< 599) {
                    ^
1 error
printing javac parameters to: /w/javac.20260128_055245.args
Language: Java

public class Main{
public static void main(String[] args){
  if(args[0] <= 1999 && args[0] >= 1800){
    System.out.println("1");
  }else if(args[0] >= 1600){
    System.out.println("2");
  }else if(args[0] >= 1400){
    System.out.println("3");
  }else if(args[0] >= 1200){
    System.out.println("4");
  }else if(args[0] >= 1000){
    System.out.println("5");
  }else if(args[0] >= 800){
    System.out.println("6");
  }else if(args[0] >= 600){
    System.out.println("7");
  }else if(args[0] >= 400){
    System.out.println("8");
  }
}
}

Compiler output:
Main.java:3: error: bad operand types for binary operator '<='
  if(args[0] <= 1999 && args[0] >= 1800){
             ^
  first type:  String
  second type: int
Main.java:3: error: bad operand types for binary operator '>='
  if(args[0] <= 1999 && args[0] >= 1800){
                                ^
  first type:  String
  second type: int
Main.java:5: error: bad operand types for binary operator '>='
  }else if(args[0] >= 1600){
                   ^
  first type:  String
  second type: int
Main.java:7: error: bad operand types for binary operator '>='
  }else if(args[0] >= 1400){
                   ^
  first type:  String
  second type: int
Main.java:9: error: bad operand types for binary operator '>='
  }else if(args[0] >= 1200){
                   ^
  first type:  String
  second type: int
Main.java:11: error: bad operand types for binary operator '>='
  }else if(args[0] >= 1000){
                   ^
  first type:  String
  second type: int
Main.java:13: error: bad operand types for binary operator '>='
  }else if(args[0] >= 800){
                   ^
  first type:  String
  second type: int
Main.java:15: error: bad operand types for binary operator '>='
  }else if(args[0] >= 600){
                   ^
  first type:  String
  second type: int
Main.java:17: error: bad operand types for binary operator '>='
  }else if(args[0] >= 400){
                   ^
  first type:  String
  second type: int
9 errors
Language: Java

import java.util.*;

public class test {

    public static void main(String args[]) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        if(n>=400 && n<=599){
            System.out.println(8);
        }
        else if(n>=600 && n<=799){
            System.out.println(7);
        }
        else if(n>=800 && n<=999){
            System.out.println(6);
        }
        else if(n>=1000 && n<=1199){
            System.out.println(5);
        }
        else if(n>=1200 && n<=1399){
            System.out.println(4);
        }
        else if(n>=1400 && n<=1599){
            System.out.println(3);
        }
        else if(n>=1600 && n<=1799){
            System.out.println(2);
        }
        else if(n>=1800 && n<=1999){
            System.out.println(1);
        }
    }
}



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

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

#define int long long

int32_t main () {
    int a, b, c, k; cin >> a >> b >> c >> k;
    if (a < b && b < c) {
        cout << "Yes" << "\n";
      	continue;
    }
    int maxiter = 0;
    while (1) {
        if (maxiter > 8) {
            break;
        }
        maxiter += 1;
        if (!k) break;
        if (b < a) {
            b *= 2;
            k -= 1;
        }
        if (!k) break;
        if (c < b) {
            c *= 2;
            k -= 1;
        }
        if (!k) break;
    }
    if (a < b && b < c) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:10:9: error: continue statement not within a loop
   10 |         continue;
      |         ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    int x;
    cin >> x;
    if (400 <= x && x <= 599) {
        cout << 8 << endl;
    } else if (600 <= x && x <= 799) {
        cout << 7 << endl;
    } else if (800 <= x && x <= 999) {
        cout << 6 << endl;
    } else if (1000 < = x && x <= 1199) {
        cout << 5 << endl;
    } else if (1200 <= x && x <= 1399) {
        cout << 4 << endl;
    } else if (1400 <= x && x <= 1599) {
        cout << 3 << endl;
    } else if (1600 <= x && x <= 1799) {
        cout << 2 << endl;
    } else if (1800 <= x && x <= 1999) {
        cout << 1 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: expected primary-expression before '=' token
   12 |     } else if (1000 < = x && x <= 1199) {
      |                       ^
Language: Java

import java.util.Scanner;

 int calc(int num) {
  if (400 =< num =< 599) {
    System.out.println(8);
  } else if (600 =< num =< 799) {
    System.out.println(7);
  } else if (800 =< num =< 999) {
    System.out.println(6);
  } else if (1000 =< num =< 1199) {
    System.out.println(5);
  } else if (1200 =< num =< 1399) {
    System.out.println(4);
  } else if (1400 =< num =< 1599) {
    System.out.println(3);
  } else if (1600 =< num =< 1799) {
    System.out.println(2);
  } else if (1800 =< num =< 1999) {
    System.out.println(1);
  }
  public static void main (String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int num stdIn.nextInt();
    
    calc(num);
  }
}

Compiler output:
Main.java:4: error: not a statement
  if (400 =< num =< 599) {
                    ^
1 error
printing javac parameters to: /w/javac.20260128_055246.args
Language: C++

#include <bits/stdc++.h>

int main(int argc,char *argv[]){
  int X;
  std::cin >> X;
  if X >= 400 && X <= 599:
  	std::cout << 8 << "\n";
  else if X <= 799:
    std::cout << 7 << "\n";
  else if X <= 999:
   	std::cout << 6 << "\n";
  else if X <= 1199:
  	std::cout << 5 << "\n";
  else if X <= 1399:
  	std::cout << 4 << "\n";
  else if X <= 1599:
  	std::cout << 3 << "\n";
  else if X <= 1799:
  	std::cout << 2 << "\n";
  else if X <= 1999:
  	std::cout << 1 << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:6: error: expected '(' before 'X'
    6 |   if X >= 400 && X <= 599:
      |      ^
      |      (
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else if X <= 799:
      |   ^~~~
a.cc:8:11: error: expected '(' before 'X'
    8 |   else if X <= 799:
      |           ^
      |           (
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if X <= 999:
      |   ^~~~
a.cc:10:11: error: expected '(' before 'X'
   10 |   else if X <= 999:
      |           ^
      |           (
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else if X <= 1199:
      |   ^~~~
a.cc:12:11: error: expected '(' before 'X'
   12 |   else if X <= 1199:
      |           ^
      |           (
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else if X <= 1399:
      |   ^~~~
a.cc:14:11: error: expected '(' before 'X'
   14 |   else if X <= 1399:
      |           ^
      |           (
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else if X <= 1599:
      |   ^~~~
a.cc:16:11: error: expected '(' before 'X'
   16 |   else if X <= 1599:
      |           ^
      |           (
a.cc:18:3: error: 'else' without a previous 'if'
   18 |   else if X <= 1799:
      |   ^~~~
a.cc:18:11: error: expected '(' before 'X'
   18 |   else if X <= 1799:
      |           ^
      |           (
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else if X <= 1999:
      |   ^~~~
a.cc:20:11: error: expected '(' before 'X'
   20 |   else if X <= 1999:
      |           ^
      |           (
Language: Java

import java.util.Scanner;public class At_First {public static void main(String args[]) {Scanner sc=new Scanner(System.in);int n=sc.nextInt();if(n>=400&&n<=599) {System.out.println("8");}else if(n>=600&&n<=799) {System.out.println("7");}else if(n>=800&&n<=999) {System.out.println("6");}else if(n>=1000&&n<=1199) {System.out.println("5");}else if(n>=1200&&n<=1399) {System.out.println("4");}else if(n>=1400&&n<=1599) {System.out.println("3");}else if(n>=1600&&n<=1799) {System.out.println("2");}else if(n>=1800&&n<=1999) {System.out.println("1");}}}


Compiler output:
Main.java:1: error: class At_First is public, should be declared in a file named At_First.java
import java.util.Scanner;public class At_First {public static void main(String args[]) {Scanner sc=new Scanner(System.in);int n=sc.nextInt();if(n>=400&&n<=599) {System.out.println("8");}else if(n>=600&&n<=799) {System.out.println("7");}else if(n>=800&&n<=999) {System.out.println("6");}else if(n>=1000&&n<=1199) {System.out.println("5");}else if(n>=1200&&n<=1399) {System.out.println("4");}else if(n>=1400&&n<=1599) {System.out.println("3");}else if(n>=1600&&n<=1799) {System.out.println("2");}else if(n>=1800&&n<=1999) {System.out.println("1");}}}
                                ^
1 error
Language: C

#include <stdio.h>

int main(void) {
    int x;
    scanf("%d",&x);
    if (x > 400 & x < 599)
        printf("8");
    else if(x > 600 & x < 799)
        printf("7");;
    else if (x > 800 & x < 999)
        printf("6");
    else if (x > 1000 & x < 1199)
        printf("5");
    else if (x > 1200 & x < 1399)
        printf("4");
    else if (x > 1400 & x < 1599)
        printf("3");
    else if (x > 1600 & x < 1799)
        printf("2");
    else if (x > 1800 & x < 1999)
        printf("1");
   
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'else' without a previous 'if'
   10 |     else if (x > 800 & x < 999)
      |     ^~~~
Language: Java

import java.util.Scanner;
public class At_First {
public static void main(String args[]) {
	Scanner sc=new Scanner(System.in);
	int n=sc.nextInt();if(n>=400&&n<=599) {
		System.out.println("8");}else if(n>=600&&n<=799) {
		System.out.println("7");}else if(n>=800&&n<=999) {
		System.out.println("6");}else if(n>=1000&&n<=1199) {System.out.println("5");}else if(n>=1200&&n<=1399) {
		System.out.println("4");}else if(n>=1400&&n<=1599) {
		System.out.println("3");}else if(n>=1600&&n<=1799) {
	System.out.println("2");}else if(n>=1800&&n<=1999) {
		System.out.println("1");}}}


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

/*
=============================================================

------------------Welcome To My Code-------------------------

---------Ankit Kumar || IIITBH || CSE || 2018-2022-----------

=============================================================
*/

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

#define FASTIO  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define ll long long int
#define ld long double
#define vll vector<ll>
#define pll pair<ll,ll>
#define vl(p) vector<p>
#define w while
#define For(i,s,x) for(i=s;i<x;i++)
#define Fore(i,s,x) for(i=s;i<=x;i++)
#define FOR(i,x) for(i=0;i<x;i++)
#define Rof(i,s,x) for(i=s;i>=x;i--)
#define all(v) v.begin(),v.end()
#define it(r,v) for(auto r=v.begin();r!=v.end();r++)
#define pb push_back
#define in insert
#define sz size()
#define F first
#define S second
#define nl cout<<"\n"
#define pr(a) cout<<a<<" "
#define pr2(a,b) cout<<a<<" "<<b<<"\n"
#define pr3(a,b,c) cout<<a<<" "<<b<<" "<<c<<"\n"
#define mod 1000000007
map<ll, ll>::iterator itr;
vector<ll>::iterator it, it1;
const double PI = 3.141592653589793238;

int main()
{
	FASTIO;
	ll t;
	
	

        ll i,j,k,x,y,z,m,n,a,b,c,c1=0,c2=0,flag=0,sum=0;
        string s,s1,str;
        cin>>x;
        if(400<=x&&x<=599)
            cout<<8;
        if(600<=x&&x<=799)
            cout<<7;
         if(800<=x&&x<=999)
            cout<<6;
        if(1000<=x&&x<=1199)
            cout<<5;
        if(1200<=x&&x<=1399)
            cout<<4;
        if(1400<=x&&x<=1599)
            cout<<3;
        if(1600<=x&&x<=1799)
            cout<<2;
        if(1800<=x&&x<=1999)
            cout<<1;
            nl;

	}

}


Compiler output:
a.cc:71:1: error: expected declaration before '}' token
   71 | }
      | ^
Language: Java

public static void main(String[] args){
  if(args[0] <= 1999 && args[0] >= 1800){
    out.println("1");
  }else if(args[0] >= 1600){
    out.println("2");
  }else if(args[0] >= 1400){
    out.println("3");
  }else if(args[0] >= 1200){
    out.println("4");
  }else if(args[0] >= 1000){
    out.println("5");
  }else if(args[0] >= 800){
    out.println("6");
  }else if(args[0] >= 600){
    out.println("7");
  }else if(args[0] >= 400){
    out.println("8");
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

Compiler output:
a.cc:2:1: error: expected initializer before 'cin'
    2 | cin>>n
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else if (n>=600 and n<799){
      | ^~~~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else if (n>=800 and n<999){
      | ^~~~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else if (n>=1000 and n<1199){
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else if (n>=1200 and n<1399){
      | ^~~~
a.cc:13:1: error: expected unqualified-id before 'else'
   13 | else if (n>=1400 and n<1599){
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else if (n>=1600 and n<1799){
      | ^~~~
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else if (n>=1800 and n<1999){
      | ^~~~
Language: C++

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

int main(){
	int N;
  	cin >> N;
  	if(int i = 0; i < 8;i++){
    	if(400 + 200 * i <= N && N <= 599 + 200 * i){
          	cout << i+1 << endl;
          	break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before ';' token
    7 |         if(int i = 0; i < 8;i++){
      |           ~                ^
      |                            )
a.cc:7:29: error: 'i' was not declared in this scope
    7 |         if(int i = 0; i < 8;i++){
      |                             ^
Language: Java

import java.util.Scanner;
public class At_First {
public static void main(String args[]) {
	Scanner sc=new Scanner(System.in);
	int n=sc.nextInt();
	if(n>=400&&n<=599) {
		System.out.println("8");
	}else if(n>=600&&n<=799) {
		System.out.println("7");
	}else if(n>=800&&n<=999) {
		System.out.println("6");
	}else if(n>=1000&&n<=1199) {
		System.out.println("5");
	}else if(n>=1200&&n<=1399) {
		System.out.println("4");
	}else if(n>=1400&&n<=1599) {
		System.out.println("3");
	}else if(n>=1600&&n<=1799) {
		System.out.println("2");
	}else if(n>=1800&&n<=1999) {
		System.out.println("1");
	}
}
}


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

#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<iterator>

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

}

int main()
{
        haha();
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int N;
	double R=0;
	cin >> N;
	vector<vector<int>> Point(N,vector<int>(2));
	for (int i=0; i<N; i++){
		cin >> Point.at(i).at(0) >> Point.at(i).at(1);
	}
	
	for (int i=0; i<N-1; i++){
		for (int j=i+1; j<N; j++){
			double work;
			work = sqrt(pow(Point.at(i).at(0) - Point.at(j).at(0),2)+pow(Point.at(i).at(1) - Point.at(j).at(1),2));
			if (work > R) {
				R = work;
			}
		}
	}
	
	cout << R << endl;
}

int main() {
 
	int X,N;
 
	cin >> X;
	
	if (X < 599){
		N = 8;
	}
	else if(X < 799){
		N = 7;
	}
	else if(X < 999){
		N = 6;
	}
	else if(X < 1199){
		N = 5;
	}
	else if(X < 1399){
		N = 4;
	}
	else if(X < 1599){
		N = 3;
	}
	else if(X < 1799){
		N = 2;
	}
	else if(X <= 1999){
		N = 1;
	}
	
	cout << N << endl;
	
}

Compiler output:
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: Java

import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) throws IOException {
  
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter prnt = new PrintWriter(System.out);

        int x = parseInt(read.readLine());

        if (x >= 400 && x <= 599) {
            prnt.println(8);
        } else if (x >= 600 && x <= 799) {
            prnt.println(7);
        } else if (x >= 800 && x <= 999) {
            prnt.println(6);
        } else if (x >= 1000 && x <= 1199) {
            prnt.println(5);
        } else if (x >= 1200 && x <= 1399) {
            prnt.println(4);
        } else if (x >= 1400 && x <= 1599) {
            prnt.println(3);
        } else if (x >= 1600 && x <= 1799) {
            prnt.println(2);
        } else if (x >= 1800 && x <= 1999) {
            prnt.println(1);
        }
        prnt.close();
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        int x = parseInt(read.readLine());
                ^
  symbol:   method parseInt(String)
  location: class Main
1 error
Language: Java

public class Main{
  if(args[0] <= 1999 && args[0] >= 1800){
    out.println("1");
  }else if(args[0] >= 1600){
    out.println("2");
  }else if(args[0] >= 1400){
    out.println("3");
  }else if(args[0] >= 1200){
    out.println("4");
  }else if(args[0] >= 1000){
    out.println("5");
  }else if(args[0] >= 800){
    out.println("6");
  }else if(args[0] >= 600){
    out.println("7");
  }else if(args[0] >= 400){
    out.println("8");
  }
}

Compiler output:
Main.java:2: error: illegal start of type
  if(args[0] <= 1999 && args[0] >= 1800){
  ^
Main.java:2: error: ']' expected
  if(args[0] <= 1999 && args[0] >= 1800){
          ^
Main.java:2: error: ']' expected
  if(args[0] <= 1999 && args[0] >= 1800){
                             ^
Main.java:4: error: illegal start of type
  }else if(args[0] >= 1600){
   ^
Main.java:4: error: ']' expected
  }else if(args[0] >= 1600){
                ^
Main.java:6: error: illegal start of type
  }else if(args[0] >= 1400){
   ^
Main.java:6: error: ']' expected
  }else if(args[0] >= 1400){
                ^
Main.java:8: error: illegal start of type
  }else if(args[0] >= 1200){
   ^
Main.java:8: error: ']' expected
  }else if(args[0] >= 1200){
                ^
Main.java:10: error: illegal start of type
  }else if(args[0] >= 1000){
   ^
Main.java:10: error: ']' expected
  }else if(args[0] >= 1000){
                ^
Main.java:12: error: illegal start of type
  }else if(args[0] >= 800){
   ^
Main.java:12: error: ']' expected
  }else if(args[0] >= 800){
                ^
Main.java:14: error: illegal start of type
  }else if(args[0] >= 600){
   ^
Main.java:14: error: ']' expected
  }else if(args[0] >= 600){
                ^
Main.java:16: error: illegal start of type
  }else if(args[0] >= 400){
   ^
Main.java:16: error: ']' expected
  }else if(args[0] >= 400){
                ^
17 errors
Language: Java

import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int a=kbd.nextInt();
   int b=kbd.nextInt();
   if(400<=a&&a<=599){
     b=8;
   }
   if(600<=a&&a<=799){
     b=7;
   }
   if(800<=a&&a<=999){
     b=6;
   }
   if(1000<=a&&a<=1199){
     b=5;
   }
   if(1200<=a&&a<=1399){
     b=4;
   }
   if(1400<=a&&a<=1599){
     b=3;
   }
   if(1600<=a&&a<=1799){
        b=2;
      }
      if(1800<=a&&a<=1999){
        b=1;
      }
      System.out.pritnln(b);
    }
  }

Compiler output:
Main.java:31: error: cannot find symbol
      System.out.pritnln(b);
                ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: C


#include <stdio.h>
#include <string.h>
#include <stdlib.h>


int main(void) {
    
    int x = 0;
    scanf("%d", &x);
    
    if (x >= 400 || x <= 599) {
        printf("8\n");
    } else if (x >= 600 || <= 799) {
        printf("7\n");
    } else if (x >= 800 || <= 999) {
        printf("6\n");
    } else if (x >= 1000 || <= 1199) {
        printf("5\n");
    } else if (x >= 1200 || <= 1399) {
        printf("4\n");
    } else if (x >= 1400 || <= 1599) {
        printf("3\n");
    } else if (x >= 1600 || <= 1799) {
        printf("2\n");
    } else if (x >= 1800 || <= 1999) {
        printf("1\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:14:28: error: expected expression before '<=' token
   14 |     } else if (x >= 600 || <= 799) {
      |                            ^~
main.c:16:28: error: expected expression before '<=' token
   16 |     } else if (x >= 800 || <= 999) {
      |                            ^~
main.c:18:29: error: expected expression before '<=' token
   18 |     } else if (x >= 1000 || <= 1199) {
      |                             ^~
main.c:20:29: error: expected expression before '<=' token
   20 |     } else if (x >= 1200 || <= 1399) {
      |                             ^~
main.c:22:29: error: expected expression before '<=' token
   22 |     } else if (x >= 1400 || <= 1599) {
      |                             ^~
main.c:24:29: error: expected expression before '<=' token
   24 |     } else if (x >= 1600 || <= 1799) {
      |                             ^~
main.c:26:29: error: expected expression before '<=' token
   26 |     } else if (x >= 1800 || <= 1999) {
      |                             ^~
Language: C++

#include "pch.h"
#include <iostream>
using namespace std;

int main() {
	int x;
	cin >> x;
	
	int t = 1800;

	for (int i = 1; i < 9; i++) {
		if (t < x) {
			cout << i;
			break;
		}
		t = t - 200;
	}
	return 0;
}

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

import java.util.*

public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int x = sc.nextInt();
   int grade = 0;
   
   if(x > 400 && x < 599){
    grade = 8;
   }else if(x >600 && x < 799){
    grade = 7;
   }else if(x > 800 && x < 999){
    grade = 6;
   }else if(x >1000 && x < 1199){
    grade = 5;
   }else if(x > 1200 && x < 1399){
    grade = 4;
   }else if(x >1400 && x < 1599){
    grade =3;
   }else if(x > 1600 && x < 1799){
    grade = 2;
   }else if(x > 1800 &6 x < 1999){
   grade = 1;
   }
   
   System.out.println(grade);  
   
   
  }
 }

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:23: error: ')' expected
   }else if(x > 1800 &6 x < 1999){
                       ^
Main.java:23: error: illegal start of type
   }else if(x > 1800 &6 x < 1999){
                            ^
Main.java:23: error: not a statement
   }else if(x > 1800 &6 x < 1999){
                          ^
4 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define in insert
#define PI 3.1415926535897932384626433832795
#define MOD 100000007
#define F first
#define S second
#define aLL(str) (str).begin(), (str).end()
#define IOS                  \
	ios::sync_with_stdio(0); \
	cin.tie(0);              \
	cout.tie(0)
#define ll long long
#define ld long double
#define lcm(a, b) (a * b) / __gcd(a, b)
#define tr(s)                                      \
	for (auto it = v.begin(); it != v.end(); it++) \
		cout << *it << " ";
#define pv(a)                         \
	for (ll i = 0; i < a.size(); i++) \
		cout << a[i] << " ";
#define flu(i, a, b) for (ll i = a; i < b; i++)
#define blu(i, a, b) for (ll i = a; i >= b; i--)
typedef vector<ll> vl;
typedef map<ll, ll> ml;
typedef vector<string> vs;
typedef vector<vector<int>> vvi;
char e = '\n';
ll i, j, le;
int main()
{
	IOS;
	int t;
t=1;


	while (t--)
	{
		ll n;
		cin>>n;
		if(n >=400 && n < =599)cout<<8<<e;
		else if (n >=600 && n <= 799)cout<<7<<e;
		else if (n >=800 && n <=999)cout<<6<<e;
		else if (n >=1000 && n <= 1199)cout<<5<<e;
		else if (n >=1200 && n <= 1399)cout<<4<<e;
		else if (n >=1400 && n <= 1599)cout<<3<<e;
		else if (n >=1600 && n <= 1799)cout<<2<<e;
		else if (n >=1800 && n <= 1999)cout<<1<<e;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:35: error: expected primary-expression before '=' token
   42 |                 if(n >=400 && n < =599)cout<<8<<e;
      |                                   ^
Language: C++

using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
using ll=long long;

int main() {
    int x;
    cin>>x;
    char ans = '0';
    if(400<=x && 599>=x)ans=8;
    if(600<=x && 799>=x)ans=7;
    if(800<=x && 999>=x)ans=6;
    if(1000<=x && 1199>=x)ans=5;
    if(1200<=x && 1299>=x)ans=4;
    if(1300<=x && 1399>=x)ans=3;
    if(1400<=x && 1499>=x)ans=2;
    if(1500<=x && 1599>=x)ans=1;
    cout<<ans<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>x;
      |     ^~~
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:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<ans<<endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:16: error: 'endl' was not declared in this scope
   17 |     cout<<ans<<endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'x' was not declared in this scope
    9 |   if(x >= 400 && x <= 599) {
      |      ^
Language: Java

import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;

import lib.io.ExtendedScanner;
import lib.io.Out;

public class A {
    public static void main(String[] args) throws Exception {
        Field f = System.out.getClass().getDeclaredField("autoFlush");
        f.setAccessible(true);
        f.set(System.out, false);
        execute(System.in, System.out);
    }

    public static void execute(InputStream in, OutputStream out) {
        ExtendedScanner s = new ExtendedScanner(System.in);
        Out o = new Out(System.out);
        solve(s, o);
        o.flush();
        o.close();
    }

    public static void solve(ExtendedScanner sc, Out out) {
        out.write(10 - sc.nextInt() / 200).write('\n');
    }
}


Compiler output:
Main.java:8: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:5: error: package lib.io does not exist
import lib.io.ExtendedScanner;
             ^
Main.java:6: error: package lib.io does not exist
import lib.io.Out;
             ^
Main.java:24: error: cannot find symbol
    public static void solve(ExtendedScanner sc, Out out) {
                             ^
  symbol:   class ExtendedScanner
  location: class A
Main.java:24: error: cannot find symbol
    public static void solve(ExtendedScanner sc, Out out) {
                                                 ^
  symbol:   class Out
  location: class A
Main.java:17: error: cannot find symbol
        ExtendedScanner s = new ExtendedScanner(System.in);
        ^
  symbol:   class ExtendedScanner
  location: class A
Main.java:17: error: cannot find symbol
        ExtendedScanner s = new ExtendedScanner(System.in);
                                ^
  symbol:   class ExtendedScanner
  location: class A
Main.java:18: error: cannot find symbol
        Out o = new Out(System.out);
        ^
  symbol:   class Out
  location: class A
Main.java:18: error: cannot find symbol
        Out o = new Out(System.out);
                    ^
  symbol:   class Out
  location: class A
9 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define data_type int
#define endl "\n"
#define through ,
#define From(n) else if(

int main()
{
    data_type n;
    cin>>n;
    if(400<=n && n<= 599:)
        cout<<8<<endl;
    else if(600<=n && n<= 799:)
        cout<<7<<endl;
    else if(800<=n && n<= 999:)
        cout<<6<<endl;
    else if(1000<=n && n<= 1199:)
        cout<<5<<endl;

    else if(1200<=n && n<= 1399:)
        cout<<4<<endl;

    else if(1400<=n && n<= 1599:)
        cout<<3<<endl;

    else if(1600<=n && n<= 1799:)
        cout<<2<<endl;

    else if(1800<=n && n<= 1999:)
        cout<<1<<endl;



    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ')' before ':' token
   12 |     if(400<=n && n<= 599:)
      |       ~                 ^
      |                         )
a.cc:14:30: error: expected ')' before ':' token
   14 |     else if(600<=n && n<= 799:)
      |            ~                 ^
      |                              )
a.cc:16:30: error: expected ')' before ':' token
   16 |     else if(800<=n && n<= 999:)
      |            ~                 ^
      |                              )
a.cc:18:32: error: expected ')' before ':' token
   18 |     else if(1000<=n && n<= 1199:)
      |            ~                   ^
      |                                )
a.cc:21:32: error: expected ')' before ':' token
   21 |     else if(1200<=n && n<= 1399:)
      |            ~                   ^
      |                                )
a.cc:24:32: error: expected ')' before ':' token
   24 |     else if(1400<=n && n<= 1599:)
      |            ~                   ^
      |                                )
a.cc:27:32: error: expected ')' before ':' token
   27 |     else if(1600<=n && n<= 1799:)
      |            ~                   ^
      |                                )
a.cc:30:32: error: expected ')' before ':' token
   30 |     else if(1800<=n && n<= 1999:)
      |            ~                   ^
      |                                )
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  for(int i=0;i<9;i++){
    if(400+i*200<=c<600+i*200){
      cout<<8-i<<endl;
      break;
    }
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'c' was not declared in this scope
    7 |     if(400+i*200<=c<600+i*200){
      |                   ^
Language: C

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

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

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

int main() {
  int X;
  cin >> X;
  if (400 <= X && X < 600) {
    cout << 8 << endl;
  }
  if (600 <= X && X < 800) {
    cout << 7 << endl;
  }
  if (800 <= X && x < 1000) {
    cout << 6 << endl;
  }
  if (x >= 1000) {
    int ans = 5 - (X - 1000)/200;
    cout << ans << endl;
  }
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'x' was not declared in this scope
   13 |   if (800 <= X && x < 1000) {
      |                   ^
a.cc:16:7: error: 'x' was not declared in this scope
   16 |   if (x >= 1000) {
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
main()
{
  int n;
  cin>>n;
  if(n>=1800)
    cout<<1;
  else if(n>=1600 && n<=1799)
    cout<<2;
  else if(n>=1400 && n<=1599)
    cout<<3;
  else if(n>=1200 && n<=1399)
    cout<<4;
  else if(n>=1000 && n<=1199)
    cout<<5;
  else if(n>=800 && n<=999)
    cout<<6;
  else if(n>=600 && n<=799)
    cout<<7;
  else if(n>=400 && n<=599)
    cout<<8;

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:22:13: error: expected '}' at end of input
   22 |     cout<<8;
      |             ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

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

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 if (x>=400)
    cout << "8" << endl;
  return 0;
}

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

public class Main{
  if(args[0] <= 1999 && args[0] >= 1800){
    out.println("1");
  }if else(args[0] >= 1600){
    out.println("2");
  }if else(args[0] >= 1400){
    out.println("3");
  }if else(args[0] >= 1200){
    out.println("4");
  }if else(args[0] >= 1000){
    out.println("5");
  }if else(args[0] >= 800){
    out.println("6");
  }if else(args[0] >= 600){
    out.println("7");
  }if else(args[0] >= 400){
    out.println("8");
  }
}

Compiler output:
Main.java:2: error: illegal start of type
  if(args[0] <= 1999 && args[0] >= 1800){
  ^
Main.java:2: error: ']' expected
  if(args[0] <= 1999 && args[0] >= 1800){
          ^
Main.java:2: error: ']' expected
  if(args[0] <= 1999 && args[0] >= 1800){
                             ^
Main.java:4: error: illegal start of type
  }if else(args[0] >= 1600){
   ^
Main.java:4: error: ']' expected
  }if else(args[0] >= 1600){
                ^
Main.java:6: error: illegal start of type
  }if else(args[0] >= 1400){
   ^
Main.java:6: error: ']' expected
  }if else(args[0] >= 1400){
                ^
Main.java:8: error: illegal start of type
  }if else(args[0] >= 1200){
   ^
Main.java:8: error: ']' expected
  }if else(args[0] >= 1200){
                ^
Main.java:10: error: illegal start of type
  }if else(args[0] >= 1000){
   ^
Main.java:10: error: ']' expected
  }if else(args[0] >= 1000){
                ^
Main.java:12: error: illegal start of type
  }if else(args[0] >= 800){
   ^
Main.java:12: error: ']' expected
  }if else(args[0] >= 800){
                ^
Main.java:14: error: illegal start of type
  }if else(args[0] >= 600){
   ^
Main.java:14: error: ']' expected
  }if else(args[0] >= 600){
                ^
Main.java:16: error: illegal start of type
  }if else(args[0] >= 400){
   ^
Main.java:16: error: ']' expected
  }if else(args[0] >= 400){
                ^
17 errors
Language: C++

#include <iostream>
using namespace std;

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

    int ans;

    if (x >= 1800) {
        ans = 1;
    } else if (x >= 1600) {
        ans = 2;
    } else if (x >= 1400) {
        ans = 3;
    } else if (x >= 1200) {
        ans = 4;
    } else if (x >= 1000) {
        ans = 5;
    } else if (x >= 800) {
        ans = 6;
    } else if (x >= 600) {
        ans = 7
    } else if (x >= 400) {
        ans = 8;
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: expected ';' before '}' token
   23 |         ans = 7
      |                ^
      |                ;
   24 |     } else if (x >= 400) {
      |     ~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before ')' token
   10 |     if(n<600&&){
      |               ^