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


import java.util.Scanner;

public class rightMost {
    static int binarySearchRightMost(int arr[],int key){
        int l=0,r=arr.length-1;
        while (l<r){
            int mid=Math.floorDiv(l+r,2);
            if(arr[mid]>key){
                r=mid;
            }
            else{
                l=mid+1;
            }
        }
        return r-1;

    }

    public static void main(String[] args) {
//        int arr[]={1,2,3,4,4,4,6,7};
//        System.out.println(binarySearchRightMost(arr,4));
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println(a%b==0?Math.floorDiv(a,b):Math.floorDiv(a,b)+1);
    }
}


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

import java.util.Scanner;
 
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int H = sc.nextInt();
    int M = sc.nextInt();
    
    int i = 0;
    while(H >= 0){
      H = H - M;
      i++;
    }
    System.out.println(i);
  }


Compiler output:
Main.java:15: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

    public static void main(String[] args) {
        int hp = Integer.valueOf(args[0]);
        int attack = Integer.valueOf(args[1]);
        int result = hp / attack;
        System.out.println(result);
    }

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++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
for (int i=0;;i++)
{
if (a<=0)
{
cout<<i<<endl;
break;
}
a-=b;
}
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected '}' at end of input
   16 | return 0;
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

int monster(int h, int a){
	int count=0;
  while(h>0){
  	h=h-a;
    count++;
  }
  return count;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

# include<stdio.h>
int main()
{
  int a,b,count=1;
  scanf("%d%d",&a,&b):
  while(a-b)
  {
    count++;
    a=a-b;
  }
  printf("%d",count);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: expected ';' before ':' token
    5 |   scanf("%d%d",&a,&b):
      |                      ^
      |                      ;
Language: C++

int attacks = H/A +1;
cout<<" No of Attacks"<<attacks;

Compiler output:
a.cc:1:15: error: 'H' was not declared in this scope
    1 | int attacks = H/A +1;
      |               ^
a.cc:1:17: error: 'A' was not declared in this scope
    1 | int attacks = H/A +1;
      |                 ^
a.cc:2:1: error: 'cout' does not name a type
    2 | cout<<" No of Attacks"<<attacks;
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int h,a,ans;
  cin>>h>>a;
  if(h%a==0)
    cout<<(h/a)<<"\n;
  else
    cout<<(h/a+1)<<"\n;
}

Compiler output:
a.cc:8:18: warning: missing terminating " character
    8 |     cout<<(h/a)<<"\n;
      |                  ^
a.cc:8:18: error: missing terminating " character
    8 |     cout<<(h/a)<<"\n;
      |                  ^~~~
a.cc:10:20: warning: missing terminating " character
   10 |     cout<<(h/a+1)<<"\n;
      |                    ^
a.cc:10:20: error: missing terminating " character
   10 |     cout<<(h/a+1)<<"\n;
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else
      |   ^~~~
Language: C++

#include <bits/std++.h>
using namespace std;
typedef long long ll;
const int maxx = 1e5 + 7;
const int Inf = 1 << 30;
const ll INF = 1ll << 60;
int h, a;

int main() {
	scanf("%d %d", &h, &a);
	int ans = h / a;
	if(h % a) ans++;
	return 0;
}

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

#include<iostream.h>
int main()
{
  int H,A,s,count;
  cin>>H>>A;
  count=0;
  while(s==0||s==-1)
    s=H-A;
    count++;
  cin>>count;
}
  

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

#include<iostream.h>
#include<conio.h>
void main()
{
  int H,A;
  float t;
  cin>>H>>A;
  t=H/A;
  cout<<ceil(t);
  return 0;
}
  

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

using namespace std;
int main()
{
    int H, A;
    cin >> H >> A;
    cout << H / A + 1;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int h,a;
  cin>>h>>a;
  if(h<=a)
    cout<<1<<endl;
  else if(h%a=!0)
    cout<<(h/a)+1<<endl;
  else 
    cout<<(h/a)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   else if(h%a=!0)
      |           ~^~
Language: Java

//package codeforces;

import java.util.Scanner;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.TreeMap;
import java.util.TreeSet;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Stack;
import java.util.Set;

public class main {
	static Scanner scn = new Scanner(System.in);
	static int mod = 1000000007;
	//static int count = 0;

	public static void main(String[] args) {
		int h=scn.nextInt();
		int a=scn.nextInt();
		int count=1;
		while(h>a)
		{
			h=h-a;
			count++;
		}
		System.out.println(count);
	}
	

	public static long gcd(long a, long b) {
		if (a == 0)
			return b;
		long l = gcd(b % a, a);
		return l;
	}

	public static void permu(String str, String ans) {
		if (str.length() == 0) {
			System.out.println(ans + " ");
			return;
		}

		for (int i = 0; i < str.length(); i++) {
			char ch = str.charAt(i);
			String res = str.substring(0, i) + str.substring(i + 1);
			permu(res, ans + ch);

		}
	}

	

}


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

import java.util.*;

public class p1
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		System.out.println(Math.ceil((double)n/(double)k));
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int h,a;
  int n=0;
  cin >> h >> a;
  for(int i=0;i<a;i++)
  {
    n=h-a;
    i+=1;
    if(n<=0)
    {
      cout << i;
    }
  } 

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

#include <stdio.h>
int main(){
  int A,H;
  scanf("%d %d",&H,&A);
  pritnf("%d",H/A+1);
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   pritnf("%d",H/A+1);
      |   ^~~~~~
      |   printf
Language: C

int monster(int H, int a){
	int count=0;
  	while(H>0){
    	H=H-a;
      	count++;
    }
  return count;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;


public class CodeForce{
    public static void main(String [] args){
        Scanner sc=new Scanner(System.in);
        int H=sc.nextInt();
        int A=sc.nextInt();
        int rem=H%A;
        int div=H/A;
        if(rem==0)System.out.println(div);
        else System.out.println(div+1);
    
    }
}
      

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

#include <iostream>

int main(){

  float H, A;
  
  cin>> H>> A;
  
  H += H%A;
  
  int ans = H/A;
  
  cout<< ans<<endl;
    
  
  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>> H>> A;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    9 |   H += H%A;
      |        ~^~
      |        | |
      |        | float
      |        float
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout<< ans<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   cout<< ans<<endl;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

package binarySearch;

import java.util.Scanner;

public class rightMost {
    static int binarySearchRightMost(int arr[],int key){
        int l=0,r=arr.length-1;
        while (l<r){
            int mid=Math.floorDiv(l+r,2);
            if(arr[mid]>key){
                r=mid;
            }
            else{
                l=mid+1;
            }
        }
        return r-1;

    }

    public static void main(String[] args) {
//        int arr[]={1,2,3,4,4,4,6,7};
//        System.out.println(binarySearchRightMost(arr,4));
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println(a%b==0?Math.floorDiv(a,b):Math.floorDiv(a,b)+1);
    }
}


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

#include <iostream>
using namespace std;
int main (){
int H,A,i;
  cin>>H>>A;
  for(H;H>0;H-A){i++}
  cout<<i<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before '}' token
    6 |   for(H;H>0;H-A){i++}
      |                     ^
      |                     ;
Language: Java

import java.util.Scanner;
 
class Main{
  public static void main(String args[]){
    Scanenr sc = new Scanner(System.in);
    int H = sc.nextInt();
    int M = sc.nextInt();
    
    int i = 0;
    while(H >= 0){
      H = H - M;
      i++;
    }
    System.out.println(i);
  }
}


Compiler output:
Main.java:5: error: cannot find symbol
    Scanenr sc = new Scanner(System.in);
    ^
  symbol:   class Scanenr
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class atcoder {
  public static void main(String args[]) {

    Scanner scan = new Scanner(System.in);
    int p = scan.nextInt();
    int h = scan.nextInt();

    int count = 0;

    while(h > 0){
      count++;
    }
    System.out.println(count);
  }
}

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

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

const int MOD = 1000000007;
const int INF = 1000000000;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

// 最小公倍数
unsigned lcm(unsigned a, unsigned b){
    return a / gcd(a, b) * b; 
}
int main(){
Int a, b;
cin >> a >> b;
Int ans = a(b - 1) / b;
print(and);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:1: error: 'Int' was not declared in this scope; did you mean 'int'?
   39 | Int a, b;
      | ^~~
      | int
a.cc:40:8: error: 'a' was not declared in this scope
   40 | cin >> a >> b;
      |        ^
a.cc:40:13: error: 'b' was not declared in this scope
   40 | cin >> a >> b;
      |             ^
a.cc:41:4: error: expected ';' before 'ans'
   41 | Int ans = a(b - 1) / b;
      |    ^~~~
      |    ;
a.cc:11:28: error: expected identifier before '<<' token
   11 | #define print(x) cout << x << endl
      |                            ^~
a.cc:42:1: note: in expansion of macro 'print'
   42 | print(and);
      | ^~~~~
Language: C++

#include <iostream>
int main(){
int h, a;
  cin >> h >> a;
  int res=h/a;
  if(h%a){++res}
  cout << res;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> h >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:16: error: expected ';' before '}' token
    6 |   if(h%a){++res}
      |                ^
      |                ;
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << res;
      |   ^~~~
      |   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/#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,a,x;
    cin>>n>>a;
    x=n/a;
    if(n%a==0)
    {
        cout<<x<<endl;
    }
    else
    {
        cout<<x+1<<endl;
    }
    return 0;
}

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

#include<iostream>
using namespace std;
int main(
  {
    int h,a;
    cin>>h>>a;
    int count =0;
    int d=h;
    while(d>0){
      d=d-a;
      count++;
    }
    return count;
  }

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int h,a;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:3: note: to match this '{'
    4 |   {
      |   ^
a.cc:4:4: error: expected ')' before 'int'
    4 |   {
      |    ^
      |    )
    5 |     int h,a;
      |     ~~~
a.cc:3:9: note: to match this '('
    3 | int main(
      |         ^
a.cc:5:11: error: 'a' was not declared in this scope
    5 |     int h,a;
      |           ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin>>h>>a;
      |     ^~~
a.cc:8:11: error: 'h' was not declared in this scope
    8 |     int d=h;
      |           ^
a.cc:9:5: error: expected unqualified-id before 'while'
    9 |     while(d>0){
      |     ^~~~~
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return count;
      |     ^~~~~~
a.cc:14:3: error: expected declaration before '}' token
   14 |   }
      |   ^
Language: C++

include<iostream>
using namespace std;
int main()
{
  int h,a;
  cin>>h>>a;
  h+=a;
  h--;
  int sm=h/a;
  cout<<sm<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>h>>a;
      |   ^~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<sm<<endl;
      |   ^~~~
a.cc:10:13: error: 'endl' was not declared in this scope
   10 |   cout<<sm<<endl;
      |             ^~~~
Language: C++

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

int main(){
	int h,a;
  	cin >> h >> a;
  	
  	cout << (unsigned long long)(ceil(double(h)/a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:55: error: expected ')' before ';' token
    8 |         cout << (unsigned long long)(ceil(double(h)/a);
      |                                     ~                 ^
      |                                                       )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  double h,n;
  cin>>h>>n;
  cout<<(int)ceil(h/n));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before ')' token
    7 |   cout<<(int)ceil(h/n));
      |                       ^
      |                       ;
Language: C++

#include<iostream.h>
#include<bits/stdc++.h>
#include<math.h>
int main()
{
int h,i,a;
  cin>>h>>a;
  i=(h/a)+(h%a);
  cout<<i;

}

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

// best coder in the world do not mess with me!!
#include <bits/stdc++.x>
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define FORD(i, a, b) for(int i = (a); i > (b); i--)
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
typedef long long int ll;
using namespace std;
ll mod=1000000007;
void generate(int per[],int t)
{
	
	for(int i=t-1;i>0;i--)
	{
		int k=rand()%i;
		swap(per[k],per[i]);
	}
}
int main()
{
    
    
    	int x,Y;
    	cin>>x>>Y;
    	cout<<(x+Y-1)/Y<<'\n';
    
}


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

#include<iostream>
using namespace std;
int main()
{
    int H, A;
    cin >> H >> A;
  　cout << H / A + 1;
    return 0;
}

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　cout << H / A + 1;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000cout' was not declared in this scope
    7 |   　cout << H / A + 1;
      |   ^~~~~~
Language: C++

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

int main()
{
    int H, A;

    cin >> H >> A;

    for(int i=1; i<=H; i++)
    {
        if(H - A <= 0)
        {
            cout << i << endl;
            return;
        }
        else
        {
            H = H - A;
        }
    }
    return 0;
}

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

//package codeforces;

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

import java.util.Stack;

public class main {
	static Scanner scn = new Scanner(System.in);
	static long cunt = 0;
	static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    }
	static FastReader s=new FastReader(); 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		// System.out.format("%.10f", ans);char c = sc.next().charAt(0);
		int h=scn.nextInt();
		int a=scn.nextInt();
		int count=1;
		while(h>a)
		{
			h=h-a;
			count++;
		}
		System.out.println(count);
		
		
}
		
	public static String factorial(int n) {
		BigInteger fact = new BigInteger("1");
		for (int i = 1; i <= n; i++) {
			fact = fact.multiply(new BigInteger(i + ""));
		}
		return fact.toString();
	}

	public static int bs(int arr[], int k) {
		int high = 0, low = Integer.MIN_VALUE, ans = 0;
		for (int i = 0; i < arr.length; i++) {
			high += arr[i];
			if (arr[i] > low)
				low = arr[i];
		}
		while (low <= high) {
			int mid = (high + low) / 2;
			if (valid(arr, mid, k)) {
				ans = mid;
				high = mid - 1;
			} else
				low = mid + 1;
		}
		return ans;
	}

	public static boolean valid(int arr[], int mid, int k) {
		int sum = 0, cs = 1;
		for (int i = 0; i < arr.length; i++) {
			if (sum + arr[i] > mid) {
				cs++;
				if (cs > k)
					return false;
				sum = arr[i];
			} else
				sum += arr[i];
		}
		return true;
	}

	public static long gcd(long a, long n) {

		if (a == 0)
			return n;
		return gcd(n % a, a);
	}

}


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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
	int h;
	int a;
	cin >> h >> a;
	cout << (h/a +1) << endl;
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#define rep(i,n) for (int i = 0; i < (n); ++i)
^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i,n) for (int i = 0; i < (n); ++i)
                                 ^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i,n) for (int i = 0; i < (n); ++i)
                                          ^
Main.java:4: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:9: error: not a statement
	cin >> h >> a;
	         ^
Main.java:10: error: not a statement
	cout << (h/a +1) << endl;
	                 ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
9 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	int a,h;
	cin>>h>>a;
	int ans = 0;
	while(h > 0){
		h = h - a;
		ans++
	}
	cout<<ans<<endl;
	
	return 0;
}



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

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

int main(){
    int a,h;
    cin >> h >> a;
    int count = 0;
    while(h>0){
        count ++;
        h -= a;
    }
    cout << count << endl;
    return 0;

}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main(){
      | ~~~
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int h,a;
	cin>>h>>a;
	int ans=h/a;
	if(h%a==0)
		cout<<ans;
	else
	cout<<ans+1<<endl;
//	for(int i=0;i<n;i++)
//	{
//		
//	}
}

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++

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanenr sc = new Scanner(System.in);
    int H = sc.nextInt();
    int M = sc.nextInt();
    
    int i = 0;
    while(H >= 0){
      H = H - M;
      i++;
    }
    System.out.println(i);
  }
}
      

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String args[]){
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String args[]){
      |                           ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scanenr' was not declared in this scope
    5 |     Scanenr sc = new Scanner(System.in);
      |     ^~~~~~~
a.cc:6:13: error: 'sc' was not declared in this scope
    6 |     int H = sc.nextInt();
      |             ^~
a.cc:14:5: error: 'System' was not declared in this scope
   14 |     System.out.println(i);
      |     ^~~~~~
Language: C++

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

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

#include <iostream>

int main(){

  int H, A;
  
  cin>> H>> A;
  
  if(H%A == 0)
    cout<<(int)(H/A);
  else
    cout<<(int)(H/A) + 1;
    
  
  return 0;

}


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

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int h = s.nextInt();
        int a = s.nextInt();
        int r = (int)Math.ceil(1.0 * h / a);
        System.out.println(r);
    }
}



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

#include"iostream"
using namespace std;
int main (void){
int a,b;
  int res;
  cin >> a >> b;
  if(a/b = 0){
  	cout << a/b;
  }else{
  	cout << a/b + 1;
  }
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |   if(a/b = 0){
      |      ~^~
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: Java


public class MyMacin {
 public static void main(String[] args) {
	int hp = Integer.valueOf(args[0]);
    int attack = Integer.valueOf(args[1]);
   	int result = hp / attack;
    return result == 0 ? 1 : result;
 }
}

Compiler output:
Main.java:2: error: class MyMacin is public, should be declared in a file named MyMacin.java
public class MyMacin {
       ^
Main.java:7: error: incompatible types: unexpected return value
    return result == 0 ? 1 : result;
                       ^
2 errors
Language: C++

#include<iostream>
using namespace std;                                        

int main(){
    //ios_base::sync_with_stdio(false);
    //cin.tie(NULL);cout.tie(NULL);
    int h,a
    cin>>h>>a;
    if(h%a==0)cout<<h/a<<'\n';
    else cout<<h/a+1<<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'cin'
    8 |     cin>>h>>a;
      |     ^~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     if(h%a==0)cout<<h/a<<'\n';
      |          ^
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    int h=sc.nextInt();
    int a=sc.nextInt();
    
    int ans=h/a+(h%a==0)?0:1;
    
    System.out.println(ans);
  }

}

Compiler output:
Main.java:9: error: bad operand types for binary operator '+'
    int ans=h/a+(h%a==0)?0:1;
               ^
  first type:  int
  second type: boolean
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
  int h,a,res;
  cin >> h >> a;
  res = 0;
  while(h<0){
    h = h-a;
    res = res+1
  }
  cout << res << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |     res = res+1
      |                ^
      |                ;
   11 |   }
      |   ~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <regex>
#define pb push_back
using namespace std;

int main() {
	int a, b;
	cin >> a >> b;
	int c=1;
	if (a % b == 0) {c=0}
	cout << (a/b)+c;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before '}' token
   12 |         if (a % b == 0) {c=0}
      |                             ^
      |                             ;
Language: Java

//  Twitter@KonoLv1 2020年春からエンジニア見習いデビュー！
 
//  標準入出力を扱うヘッダーファイルの読み込み
#include <stdio.h>
//  "atoi" "atof"などのキャスト、"rand" 疑似乱数を発生させるヘッダーファイルの読み込み
#include <stdlib.h>
//  "strcpy" "strcat"などの文字列操作や"strlen"文字列長さ取得などを行うヘッダーファイルの読み込み
#include <string.h>
//  "sqrtl" "fmax"などの数値操作を行うヘッダーファイルの読み込み
#include <math.h>
 
int main(void){
 
    int x,y,z;
    int i,j,k;
    int count = 0;
    int flg = 0;
    char s[200000] = {};
    int box[200000] = {};
 
    //scanf("%s %d",&s,&box[0]);
    scanf("%d %d",&x,&y);
    // HP x
    // DM y
    while(1){
        if (x <= 0){
            break;
        }
        count++;
        x = x - y;
    }
    
    //printf("%s \n%d",s,box[0]);
    printf("%d",count);
  
 
}

Compiler output:
Main.java:4: error: illegal character: '#'
#include <stdio.h>
^
Main.java:4: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:8: error: illegal character: '#'
#include <string.h>
^
Main.java:10: error: illegal character: '#'
#include <math.h>
^
Main.java:15: error: class, interface, enum, or record expected
    int i,j,k;
    ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
    int count = 0;
    ^
  (use --enable-preview to enable unnamed classes)
Main.java:18: error: class, interface, enum, or record expected
    char s[200000] = {};
    ^
Main.java:19: error: class, interface, enum, or record expected
    int box[200000] = {};
    ^
Main.java:22: error: class, interface, enum, or record expected
    scanf("%d %d",&x,&y);
    ^
Main.java:25: error: class, interface, enum, or record expected
    while(1){
    ^
Main.java:28: error: class, interface, enum, or record expected
        }
        ^
Main.java:30: error: class, interface, enum, or record expected
        x = x - y;
        ^
Main.java:31: error: class, interface, enum, or record expected
    }
    ^
Main.java:37: error: class, interface, enum, or record expected
}
^
15 errors
Language: C++

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int h = s.nextInt();
        int a = s.nextInt();
        int r = (int)Math.ceil(1.0 * h / a);
        System.out.println(r);
    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class A {
      | ^~~~~~
Language: C++

#include <iostream>

int main(){
 int h, a;
  cin >> h >> a;
  cout << h/a + 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> h >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << h/a + 1 << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << h/a + 1 << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;
public class C {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		int sum = a%b==0?a/b:a/b+1;
		System.out.println(sum);
	}
}


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

#include <birs/stdc++.h>
using namespace std;
int main() {
  int h, a; cin >> h >> a;
  cout << (h+a-1)/a << endl;
  return 0;
}

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

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

int main() {
    int H, A;
    cin >> H >> A;
    int b = (H + A - 1) / A;
    cout << b;
}

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
Language: C++

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

int main() {
 int h, a;
  cin >> h >> a;
  
  cout << (int)(ceil((h*1.0)/a) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << (int)(ceil((h*1.0)/a) << endl;
      |                 ~~~~~~~~~~~~~~~~^~~~~~~
a.cc:8:40: error: expected ')' before ';' token
    8 |   cout << (int)(ceil((h*1.0)/a) << endl;
      |                ~                       ^
      |                                        )
Language: C++

#include <birs/stdc++.h>
using namespace std;
int main() {
  int h, a;
  cout << (h+a-1)/a << endl;
  return 0;
}

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

#include<iostream>
using namespace std;                                        

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    int h,a
    cin>>h>>a;
    if(h%a==0)cout<<h/a<<'\n';
    else cout<<h/a+1<<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'cin'
    8 |     cin>>h>>a;
      |     ^~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     if(h%a==0)cout<<h/a<<'\n';
      |          ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int h,a,res;
  cin >> h >> a;
  res = 0;
  while(h<0){
    h = h-a;
    res = res+1
  }
  cout << res << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |     res = res+1
      |                ^
      |                ;
   11 |   }
      |   ~             
a.cc:12:23: error: expected '}' at end of input
   12 |   cout << res << endl;
      |                       ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

/*Lucky_Glass*/
#include<vector>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
    double H,A;scanf("%lf%lf",&H,&A);
    printf("%d\n",(int)ceil(H/A));
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: 'ceil' was not declared in this scope
    9 |     printf("%d\n",(int)ceil(H/A));
      |                        ^~~~
Language: C++

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

int main()
{
  int H,A;
  int sum=0;
  
  cin >> H >> A;
  
  while(H=>0)
  {
    H=H-A;
    sum++;
  }
  cout << sum;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected primary-expression before '>' token
   11 |   while(H=>0)
      |           ^
Language: C++

int main(){
  
  int a, n;
  cin >> h >> a;
  
  cout << (h+a-1) / a << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> h >> a;
      |   ^~~
a.cc:4:10: error: 'h' was not declared in this scope
    4 |   cin >> h >> a;
      |          ^
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << (h+a-1) / a << endl;
      |   ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |   cout << (h+a-1) / a << endl;
      |                          ^~~~
a.cc:6:31: error: expected '}' at end of input
    6 |   cout << (h+a-1) / a << endl;
      |                               ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

#include<string>
#include<cmath>
#include<algorithm>
#include<vector>
#include<stdio.h>
using namespace std;



void solve() {

	
	int H, N;
	cin >> H >> N;
	cout << H / N + 1 << endl;;
	

}


int main() {
	solve();

}

Compiler output:
a.cc: In function 'void solve()':
a.cc:14:9: error: 'cin' was not declared in this scope
   14 |         cin >> H >> N;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<vector>
  +++ |+#include <iostream>
    5 | #include<stdio.h>
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << H / N + 1 << endl;;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:30: error: 'endl' was not declared in this scope
   15 |         cout << H / N + 1 << endl;;
      |                              ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<vector>
  +++ |+#include <ostream>
    5 | #include<stdio.h>
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
    int H,A
    cin >> H >> A;
    if(H%A >0){
        cout << H/A+1 << endl;
    }
    else
    {
        cout << H/A << endl;
    }

    return 0;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected initializer before 'cin'
   12 |     cin >> H >> A;
      |     ^~~
a.cc:13:10: error: 'A' was not declared in this scope
   13 |     if(H%A >0){
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int H;
  cin >> A;
  cout << (H + A - 1) / A << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A;
      |          ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define pb(x) push_back(x)
#define TEST(t) int inox,t;cin>>t; for(inox=1;inox<=t;inox++)
using namespace std;

int main(){
	double h,a; cin>>h>>a;
	int h=ceil(h/a);
	cout<<h;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: conflicting declaration 'int h'
    9 |         int h=ceil(h/a);
      |             ^
a.cc:8:16: note: previous declaration as 'double h'
    8 |         double h,a; cin>>h>>a;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
template<class T> inline T sqr(T x) {return x*x;}
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<string> VS;
typedef pair<int, int> PII;
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(v, n) sort(v, v+n)
#define VSORT(v) sort(v.begin(), v.end())
#define REP(i, n) for(ll i = 0;i < n;i++)
#define REPR(i, n) for(ll i = n;i >= 0;i--)
#define FOR(i, m, n) for(ll i = m;i < n;i++)
#define FORR(i, m, n) for(ll i = m;i >= n;i--)
#define INF 999999999
const double EPS = 1e-10;
const double PI  = acos(-1.0);
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

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

    int n,s;
    string s;
    cin >> n>>s;
    
    if(n%s==0){
        cout<<n/s<<endl;
    }else{
        cout<<n/s+1<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:12: error: conflicting declaration 'std::string s'
   37 |     string s;
      |            ^
a.cc:36:11: note: previous declaration as 'int s'
   36 |     int n,s;
      |           ^
Language: C

#inclue <stdio.h>

int main(void) {
  int a, b;
  scanf("%d%d", &a, &b);
  
  printf("%d\n", (a - 1) / b + 1);
  
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d%d", &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclue <stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d%d", &a, &b);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("%d\n", (a - 1) / b + 1);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define all(v) v.begin(), v.end()
using in = int64_t;
#define rep(i, n) for (in i = 0; i < (in)(n); i++)
const double PI=3.14159265358979323846;
const int64_t waru = 1000000007;
const in INF=1<<30;
using vec = vector<vector<vector<vector<int>>>>;
 int main(){
 int h,b;
   cin>>h>>b;
   if(h%a==0) cout<<h/a;
   else cout<<h/a+1;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'a' was not declared in this scope
   14 |    if(h%a==0) cout<<h/a;
      |         ^
Language: C++



#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;


#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;


void Main()
{
  int H, A;
  cin >> H >> A;
  int ans = (H-1)/A +1;
  cout << ans << endl;

 return;
}


int main()
{
 cin.tie(nullptr);
 ios_base::sync_with_stdio(false);
 cout << fixed << setprecision(15);
 Main();
 return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    ans=a/b;
    if(a%b!=0) ++ans;
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans=a/b;
      |     ^~~
      |     abs
Language: Java

import java.io.*;
import java.math.BigInteger;
import java.util.*;


public class A {

  void solve() throws IOException {
    int h = nextInt();
    int a = nextInt();
    out.println((h - 1) / a + 1);
  }

  public static void main(String[] args) throws IOException {
    new A().run();
  }

  void run() throws IOException {
    reader = new BufferedReader(new InputStreamReader(System.in));
//		reader = new BufferedReader(new FileReader("input.txt"));
    tokenizer = null;
    out = new PrintWriter(new OutputStreamWriter(System.out));
//		out = new PrintWriter(new FileWriter("output.txt"));
    solve();
    reader.close();
    out.flush();

  }

  BufferedReader reader;
  StringTokenizer tokenizer;
  PrintWriter out;

  int nextInt() throws IOException {
    return Integer.parseInt(nextToken());
  }

  long nextLong() throws IOException {
    return Long.parseLong(nextToken());
  }

  double nextDouble() throws IOException {
    return Double.parseDouble(nextToken());
  }

  String nextToken() throws IOException {
    while (tokenizer == null || !tokenizer.hasMoreTokens()) {
      tokenizer = new StringTokenizer(reader.readLine());
    }
    return tokenizer.nextToken();
  }
}


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