criyle/codenet-compile-errors huggingface dataset:
Language: Java

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

public class A {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		System.out.println((2199-x)/200);
	}
}

Compiler output:
Main.java:4: 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;
  cout << (10 - n % 200) << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#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 X; cin >> X;
  rank =10 - X/200;
  cout << rank << endl;
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected unqualified-id before '=' token
   10 |   rank =10 - X/200;
      |        ^
a.cc:11:16: error: missing template arguments before '<<' token
   11 |   cout << rank << endl;
      |                ^~
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");
	}
	printf("\n");

	return 0;
}

Compiler output:
main.c:1:1: error: stray '##' in program
    1 | ##include<stdio.h>
      | ^~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ##include<stdio.h>
      |          ^
Language: Java

import java.util.Scanner;
public class Solution {

	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<=1299) 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");
		sc.close();
	}
	
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class A {
	
	public static void main(String[] args) throws InterruptedException {
		FastScanner fs=new FastScanner();
		int x=fs.nextInt();
		x-=400;
		System.out.println(8-x/200);
	}
	
	void sort(int[] a) {
		ArrayList<Integer> list=new ArrayList<>();
		for (int i:a) list.add(i);
		Collections.sort(list);
		for (int i=0; i<a.length; i++) a[i]=list.get(i);
	}
	
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		
		public String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
			
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
		
		public int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		
		public long nextLong() {
			return Long.parseLong(next());
		}
		
		public long[] readLongArray(int n) {
			long[] a=new long[n];
			for (int i=0; i<n; i++) a[i]=nextLong();
			return a;
		}
	}

}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class A {
	
	public static void main(String[] args) throws InterruptedException {
		FastScanner fs=new FastScanner();
		int x=fs.nextInt();
		x-=400;
		System.out.println(8-x/200);
	}
	
	void sort(int[] a) {
		ArrayList<Integer> list=new ArrayList<>();
		for (int i:a) list.add(i);
		Collections.sort(list);
		for (int i=0; i<a.length; i++) a[i]=list.get(i);
	}
	
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		
		public String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
			
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
		
		public int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		
		public long nextLong() {
			return Long.parseLong(next());
		}
		
		public long[] readLongArray(int n) {
			long[] a=new long[n];
			for (int i=0; i<n; i++) a[i]=nextLong();
			return a;
		}
	}

}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.math.BigInteger;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.ArrayList;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.Arrays;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.util.Collections;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import java.util.StringTokenizer;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: expected unqualified-id before 'public'
   10 | public class A {
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
  int x;
  cin>>x;
  
  cout<< 8 - ((x-400)/200));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before ')' token
    9 |   cout<< 8 - ((x-400)/200));
      |                           ^
      |                           ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before 'return'
    9 |   cout<< 8 - ((x-400)/200)
      |                           ^
      |                           ;
   10 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    ios_base::sync_with_stdio(NULL);
    cin.tie(0);
    cout.tie(0);
    int x,y,z,k;
    cin>>x>>y>>z>>k;
    for( int i=0; i<k; i++)
    {
        if(x>=y)
        y=y*2;
        else if(y>=z)
        z=z*2;
        elsez=z*2;
    }
    if(x<y && y<z)
    cout<<"Yes"<<"\n";
    else
    cout<<"No\n";
    return 0;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before 'if'
    8 |    cin>>n
      |          ^
      |          ;
    9 |        if(n>=400 && n<=599)
      |        ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    ios_base::sync_with_stdio(NULL);
    cin.tie(0);
    cout.tie(0);
    int t;
   while( cin>>t)
   {
       if(n>=400 && n<=599)
       cout<<"8"<<"\n";
       else if(n>=600 && n<=799)
       cout<<"7"<<"\n";
       else if(n>=800 && n<=999)
       cout<<"6\n";
       else if(n>=1000 && 1199)
       cout<<"5\n";
       else if(n>=1200 && n<=1399)
       cout<<"4\n";
       else if(n>=1400 && n<=1599)
       cout<<"3\n";
       else if(n>=1600 && n<=1799 )
       cout<<"2\n";
       else
       cout<<"1\n";
   }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'n' was not declared in this scope
   10 |        if(n>=400 && n<=599)
      |           ^
Language: C

#include <stdio.h>
int main(void) {
    int a;
    scanf_s("%d", &a);

    if (a >= 400 && a <= 599) printf("8");
    else if (a>=600&& a<= 799)printf("7");
    else if (a >=800 && a <=999 )printf("6");
    else if (a >=1000 && a <=1199 )printf("5");
    else if (a >=1200 && a <=1399 )printf("4");
    else if (a >=1400 && a <=1599 )printf("3");
    else if (a >=1600 && a <= 1799)printf("2");
    else if (a >=1800 && a <= 1999)printf("1");
    return 0;
}


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

#pragma GCC optimize("Ofast")
#include  "bits/stdc++.h"
using namespace std;
#define I_AM_SPEED  ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define printclock  cerr <<"Time : "<<(double)clock()/(double)CLOCKS_PER_SEC<<" sec\n";
#define mp(a , b)   make_pair(a , b)
#define eb(a)       emplace_back(a)
#define SZ(n)       ((int)(n).size())
#define all(n)      (n).begin(), (n).end()
#define anal           '\n'
#define mod         1000000007
#define fst         first
#define sec         second
#define pr(n)       cerr << n  << " ";
#define pfor(a)       for(auto (w) : (a)) pr(w)
//const double PI = acos(-1.0);
typedef long long ll;
typedef unsigned long long ull;

//_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

vector<int> v(26, -1);

//_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
      
int main(){
I_AM_SPEED;
#ifndef ONLINE_JUDGE  
        freopen("input.in", "r", stdin);
        freopen("output.in", "w", stdout);
#endif 

//_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
      
     
      int n;
      cin >> n;
      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 && 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 cout << "1";

        

//_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
//printclock; 
return  0 ;      
}        



      

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

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

Compiler output:
Main.java:8: error: ';' expected
        }elseif(600 <= X && X < 800){
                                    ^
Main.java:10: error: ';' expected
        }elseif(800<=X && X < 1000){
                                   ^
Main.java:12: error: ';' expected
        }elseif(1000<=X && X<1200){
                                  ^
Main.java:14: error: ';' expected
        }elseif(1200<=X && X<1400){
                                  ^
Main.java:16: error: ';' expected
        }elseif(1400<=X && X<1600){
                                  ^
Main.java:18: error: ';' expected
        }elseif(1600<=X && X<1800){
                                  ^
Main.java:20: error: ';' expected
        }elseif(1800<=X && X<2000){
                                  ^
7 errors
Language: C++

#inclide <iostream>

using namespace std;

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

}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         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 | #inclide <iostream>
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "8";
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "7";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "6";
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << "5";
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "4";
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << "3";
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << "2";
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << "1";
      |         ^~~~
a.cc:24:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.Scanner;

public class Mkun {
    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 );
        else
            System.out.println( -1 );
    }
}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected ';' before ':' token
   14 |   cout << b:
      |            ^
      |            ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:36: error: expected ';' before 'else'
    5 |     if(x>=400&&x<=599)printf("8\n")
      |                                    ^
      |                                    ;
    6 |     else if(x>=600&&x<=799)printf("7\n");
      |     ~~~~
Language: C++

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

#define F(i, a, b) for(int i=a; i<b; i++)
#define mem(arr, val) memset(arr, val, sizeof(arr))

#define MOD 1000000007
#define INF 1000000001
#define epsilon 1e-15

typedef long long int ll;
typedef unsigned long long int ull;

/*int seive(int N){
    bool primes[N+1];
    int cnt=0;
    mem(primes, true); primes[1] = false;
    int m = sqrt(N);
    for(int i=2; i<=m; i++){
        if(primes[i]){
            for(int p = i*i; p<=N; p+=i)
                primes[p] = false;
        }
    }

    for(int i=2; i<=N; i++){
        if(primes[i])
            cnt++;
    }

    return cnt;
} */

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


   
int main()
{

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

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

    int X, kyu;
    cin >> X;

    if(X < 600) kyu = 8; 
    else if(X < 800) kyu = 7;
    else if(X < 1000) kyu = 6;
    else if(X < 1200) kyu = 5;
    else if(X < 1400) kyu = 4;
    else if(X < 1600) kyu = 3;
    else if(X < 1800) kyu = 2
    else  kyu = 1;
    
    cout << kyu << '\n';

    return 0;
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:30: error: expected ';' before 'else'
   61 |     else if(X < 1800) kyu = 2
      |                              ^
      |                              ;
   62 |     else  kyu = 1;
      |     ~~~~
Language: C++

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


Compiler output:
a.cc:2:23: error: '::main' must return 'int'
    2 | #define int long long int
      |                       ^~~
a.cc:4:1: note: in expansion of macro 'int'
    4 | int main()
      | ^~~
Language: C++

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

Compiler output:
a.cc:2:23: error: '::main' must return 'int'
    2 | #define int long long int
      |                       ^~~
a.cc:4:1: note: in expansion of macro 'int'
    4 | int main()
      | ^~~
Language: C++

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int x;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (400 <= x <= 599) cout << 8;
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 |   else if (600 <= x <= 799) cout << 7;
      |   ^~~~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else if (800 <= x <= 999) cout << 6;
      |   ^~~~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else if (1000 <= x <= 1199) cout << 5;
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else if (1200 <= x <= 1399) cout << 4;
      |   ^~~~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else if (1400 <= x <= 1599) cout << 3;
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |   else if (1600 <= x <= 1799) cout << 2;
      |   ^~~~
a.cc:13:3: error: expected unqualified-id before 'else'
   13 |   else if (1800 <= x <= 1999) cout << 1;
      |   ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int x;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (400 <= x <= 599) cout << 8;
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (600 <= x <= 799) cout << 7;
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (800 <= x <= 999) cout << 6;
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if (1000 <= x <= 1199) cout << 5;
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if (1200 <= x <= 1399) cout << 4;
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (1400 <= x <= 1599) cout << 3;
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if (1600 <= x <= 1799) cout << 2;
      |   ^~
a.cc:13:3: error: expected unqualified-id before 'if'
   13 |   if (1800 <= x <= 1999) cout << 1;
      |   ^~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'if'
    5 |   if (400 <= 599) cout << 8;
      |   ^~
a.cc:5:3: error: expected '}' before 'if'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (600 <= 799) cout << 7;
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (800 <= 999) cout << 6;
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (1000 <= 1199) cout << 5;
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if (1200 <= 1399) cout << 4;
      |   ^~
a.cc:10:3: error: expected unqualified-id before 'if'
   10 |   if (1400 <= 1599) cout << 3;
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (1600 <= 1799) cout << 2;
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'if'
   12 |   if (1800 <= 1999) cout << 1;
      |   ^~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N, K = inpl()
A = inpl()
for i in range(K, N):
    if A[i] > A[i-K]:
        print('Yes')
    else:
        print('No')

# -----------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)


Compiler output:
a.cc:9:3: error: invalid preprocessing directive #--
    9 | # ------------------------------
      |   ^~
a.cc:15:15: warning: multi-character character constant [-Wmultichar]
   15 |         print('Yes')
      |               ^~~~~
a.cc:17:15: warning: multi-character character constant [-Wmultichar]
   17 |         print('No')
      |               ^~~~
a.cc:19:3: error: invalid preprocessing directive #--
   19 | # -----------------------------
      |   ^~
a.cc:21:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   21 | print('time:', ed-st, file=sys.stderr)
      |       ^~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'if'
    5 |   if (400 <= 599) {
      |   ^~
a.cc:5:3: error: expected '}' before 'if'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
int k=600;
  int count=1;
for(int k=1;k<=8;k++){
if(n<k){
  cout<<count<<endl;
}
  else{
    k+=200;
    count++;
  }
}

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

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

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

#include<stdio.h>
int main(void){
    int X;
    int i;
    scanf("%d",&X);
    for(i=8, X < 400, i--){
        X = X - 200;
        if(X > 400) break;
    }
    printf("%d",X);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:26: error: expected ';' before ')' token
    6 |     for(i=8, X < 400, i--){
      |                          ^
      |                          ;
main.c:6:26: error: expected expression before ')' token
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:26: error: expected ';' before '}' token
   17 |         cout<<"8"<<endl;1
      |                          ^
      |                          ;
   18 | 
   19 | }
      | ~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner s =new Scanner(System.in);
    int a =s.nextInt()/200;
    System.out.println(10-b);
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    System.out.println(10-b);
                          ^
  symbol:   variable b
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner s =new scanner(System.in);
    int a =s.nextInt();
    int b =a/200;
    System.out.println(10-b);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scanner s =new scanner(System.in);
                   ^
  symbol:   class scanner
  location: class Main
1 error
Language: C++

#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using vi = vector<int>;
using pi = pair<int,int>;

#define f first
#define s second
#define mp make_pair
#define pb push_back
#define rsz resize
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()

void setIO(string name = ""){
    freopen((name+".in").c_str(), "r", stdin); 
    freopen((name+".out").c_str(), "w", stdout);
}

int main(){
 	ios_base::sync_with_stdio(0); cin.tie(0); 
	// setIO();
	int x; cin >> x;
    if(x>=400 && x<600) 
    cout << '8' << "\n";
    else if(x>=600 && x<800) 
    cout << '7' << "\n";
    else if(x>=800 && x<1000) 
    cout << '6' << "\n"; 
    else if(x>=1000 && x<1200) 
    cout << '5' << "\n";
    else if(x>=1200 && x<1400) 
    cout << '4' << "\n";
    else if(x>=1400 && x<1600) 
    cout << '3' << "\n"; 
    else if(x>=1600 && x<1800 )
    cout << '2' << "\n";
    else 
    cout << '1' << "\n";





}


Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

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

int main(){
  int n;
  //int temp;
  long syoji=1000;
  long kabun;//kabukin,
  //int kattaflag;
  cin >> n;
  vector<int> a(n,0);
  for(int i=0;i<n;i++){
    cin >> a.at(i);
  }
  //cout << "hahaha" << endl;
  /*if(a.at(0)<a.at(1)){
    kattaflag=1;//次売る
  }else{
    kattaflag=-1;//次買う
  }*/
  kabun=0;
  temp=0;
  //kabukin=0;

  for(int i=0;i<n-1;i++){
    temp=0;
    if(a.at(i)<a.at(i+1)){//買う
      //kabukin=a.at(i);
      //kabun=0;
      while(syoji>=a.at(i)){//(temp+=a.at(i))<=syoji){
        syoji-=a.at(i);
        kabun++;
      }
      //syoji-=a.at(i)*kabun;
      //kabun=floor(syoji/a.at(i));
      //syoji=syoji-(a.at(i)*kabun);
    }else if(a.at(i)>a.at(i+1)){//売る
      //while(kabun>0){
        syoji=syoji+(a.at(i)*kabun);
        kabun=0;
      //}
      //kabukin=0;
    }
    //cout << i << ":" << kabukin << endl;
  }
  if(kabun>0){
    //while(kabun>0){
      syoji=syoji+(a.at(n-1)*kabun);
      //kabun--;
    //}
  }
  cout << syoji << endl;

  return(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'temp' was not declared in this scope; did you mean 'tm'?
   24 |   temp=0;
      |   ^~~~
      |   tm
Language: C++

#include <iostream>

using namespace std;

int main() {
	int A, B, C;
	int K;

	cin >> A >> B >> C;
	cin >> K;

	int a = 0;

	while(A > B) {
		B *= 2;
		a++;
	}

	while(C < B) {
		C *= 2;
		a++;
	}

	if (a =< K)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:16: error: expected primary-expression before '<' token
   24 |         if (a =< K)
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int unsigned long long
int vec[2000005];

int32_t main()
{
   int n,k;
   cin>>n>>k;


   vec[0]=1;
   vector<int>res;

   int a, ans=1;

   for(int i=1; i<=n; i++){
       cin>>a;
       vec[i]=vec[i-1]*a;
   }


   for(int i=k; i<=n; i++){

      //cout<<i<<" "<<i-k<<endl;
      if(i-k>=0)
      int temp  = vec[i]/vec[i-k];
      else int temp = vec[i];
      //cout<<temp<<endl;
      res.push_back(temp);
   }

    for(int i=1; i<res.size(); i++){

      if(res[i-1]<res[i]) cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
   }



    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:30:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
   30 |       res.push_back(temp);
      |                     ^~~~
      |                     tm
Language: C++

// Example program
#include <iostream>
#include <string>

int main()
{
  int n;
  cin >> n;  
  int offset = (n - 400) / 200;
  cout << 8 - offset;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << 8 - offset;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
#define F first
#define S second
#define MAX 100000003
using namespace std;
int main()
{
	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 <= 1199)
     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:19:28: error: expected primary-expression before '=' token
   19 |  else if (x >= 1400 && x < =1599)
      |                            ^
a.cc:21:28: error: expected primary-expression before '=' token
   21 |  else if (x >= 1600 && x < =1799)
      |                            ^
Language: Java

import java.util.Scanner;
Class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int a=0,b=0,c=0;
    a=sc.nextInt();
    b=sc.nextInt();
    c=sc.nextInt();
    int k=sc.nextInt();
    if(a>b&&b>c)
      System.out.print("Yes");
    else
      System.out.print("No");
  }
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
Class Main{
^
Main.java:3: 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)
Main.java:15: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

int main() {
	int a, b, c;
	int k;
	scanf_s("%d" "%d" "%d", &a, &b, &c);
	scanf_s("%d", &k);
	for (int i = 0; i < k; i++) {
		if (a > b) {
			b *= 2;
			continue;
		}
		if (b> c) {
			c *= 2;
			continue;
		}
	}
	if (a < b && b < c) {
		printf("Yes");
	}
	if (a > b || b > c) {
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    4 |         scanf_s("%d" "%d" "%d", &a, &b, &c);
      |         ^~~~~~~
main.c:17:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |                 printf("Yes");
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:17:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   17 |                 printf("Yes");
      |                 ^~~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |                 printf("No");
      |                 ^~~~~~
main.c:20:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
		try(Scanner X = new Scanner(System.in)){
		    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		try(Scanner X = new Scanner(System.in)){
		                    ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int n,k;
  cin >> n >> k;
  int ar[n],grad[n];
  for(int i=1;i<=(n-k);i++)
  {
    cin>> ar[i];
  }
  for(int i=1;i<=(n-k);i++)
  {
    grad[i+2]=ar[i}*ar[i+1]*ar[i+2];
  }
   for(int i=1;i<=n;i++)
  {
   	if(grad[k+i]>grad[k+i-1])
       cout<< "Yes" << endl;
    else
       cout << "No" << endl;
  }
   return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ']' before '}' token
   15 |     grad[i+2]=ar[i}*ar[i+1]*ar[i+2];
      |                   ^
      |                   ]
a.cc:15:19: error: expected ';' before '}' token
   15 |     grad[i+2]=ar[i}*ar[i+1]*ar[i+2];
      |                   ^
      |                   ;
a.cc:15:24: error: 'i' was not declared in this scope
   15 |     grad[i+2]=ar[i}*ar[i+1]*ar[i+2];
      |                        ^
a.cc: At global scope:
a.cc:17:4: error: expected unqualified-id before 'for'
   17 |    for(int i=1;i<=n;i++)
      |    ^~~
a.cc:17:16: error: 'i' does not name a type
   17 |    for(int i=1;i<=n;i++)
      |                ^
a.cc:17:21: error: 'i' does not name a type
   17 |    for(int i=1;i<=n;i++)
      |                     ^
a.cc:24:4: error: expected unqualified-id before 'return'
   24 |    return 0;
      |    ^~~~~~
a.cc:25:2: error: expected declaration before '}' token
   25 |  }
      |  ^
Language: C

int main() {
	int a, b, c;
	int k;
	scanf("%d %d %d", &a, &b, &c);
	scanf("%d", &k);
	for (int i = 0; i < k; i++) {
		if (a > c) {
			c *= 2;
			continue;
		}
		if (b > c) {
			c *= 2;
			continue;
		}
		if (a > b) {
			b *= 2;
			continue;
		}
		}
if (a < b && b < c) {
			printf("Yes");
			break;
}
	if (a > b || b > c) {
		printf("No");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |         scanf("%d %d %d", &a, &b, &c);
      |         ^~~~~
main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:21:25: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   21 |                         printf("Yes");
      |                         ^~~~~~
main.c:21:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:21:25: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:21:25: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:25: error: break statement not within loop or switch
   22 |                         break;
      |                         ^~~~~
main.c:25:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 |                 printf("No");
      |                 ^~~~~~
main.c:25:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

package app;

import java.util.Map.Entry;
import java.util.*;
 
//import org.w3c.dom.css.Counter;
 
public class App {
//public class App {
 
    public static void main(final String[] args){
     //スキャン
     final Scanner s = new Scanner(System.in);
     final int X = Integer.parseInt(s.next());
     //final int M = Integer.parseInt(s.next());
     int how = X /200;
     System.out.println(10 - how);

 

    
/*
     for(int i=0; i< K;i++){
        int di = Integer.pa rseInt(s.next());
        String blank = s.nextLine();
        String huge = s.nextLine();

        String[] hage = huge.split(" ",0);
        int hageN= hage.length;
        for (int num =0;num<hageN;num++){
            if(!hashSet.contains(hage[num])){
                hashSet.add(hage[num]);
            }
        }

     }
     s.close();

     System.out.println(N-hashSet.size());


}
*/
}
}

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

#include<iostream>
using namespace std;
int main(){
   int 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:11:14: error: expected ';' before ':' token
   11 |       cout<<6:
      |              ^
      |              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
   int 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:11:14: error: expected ';' before ':' token
   11 |       cout<<6:
      |              ^
      |              ;
Language: C

/* A - Kyu in AtCoder */

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

int main(){
  int X, ans = 0;
  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 if(X >= 1800 && X <= 1999){
    ans = 1;
  }else{
    fprintf(stderr, "Error!\n");
    exit(1);
  }
  cout << ans << endl;
}


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

#include<stdio.h>

int main(void) {

	double i;

	scanf_s("%lf", &i);

	if (i >= 400 && i <= 599) {
		printf("8\n");
	}
	else if (i >= 600 && i <= 799) {
		printf("7\n");
	}
	else if (i >= 800 && i <= 999) {
		printf("6\n");
	}
	else if (i >= 1000 && i <= 1199) {
		printf("5\n");
	}
	else if (i >= 1200 && i <= 1399) {
		printf("4\n");
	}
	else if (i >= 1400 && i <= 1599) {
		printf("3\n");
	}
	else if (i >= 1600 && i <= 1799) {
		printf("2\n");
	}
	else if (i >= 1800 && i <= 1999) {
		printf("1\n");
	}


	return 0;
}

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

#include<bits/stdc++.h>

using namespace std;
#define IO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
typedef long long ll;
const int N=1e5+5;///1e18+5

void solve()
{
    int n;
    cin>>n;
    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()
{
   // freopen("input.txt","r",stdin);
    IO;

    int tc=1;
    //cin>>tc;
    while(tc--)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:12:8: error: 'x' was not declared in this scope
   12 |     if(x<=400 && x>=599)cout<<8<<endl;
      |        ^