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

#include<bits/stdc++.h>
using namespace std;
 
 
int main()
{
    long long int s=0,c,t,result=0,q,p,r;
  double n,m;
    int arra[100000];
   cin>>n>>m;
  r= ceil(n/m*1.00);
  cout<<r<<endl;
        return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |         return 0
      |                 ^
      |                 ;
   14 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define vi vector<long long>
#define vvi vector<vector<long long>>
int main(void){
  int H, A;
  cin >> H, A;
  cout << H/A + (H%A == 0)?(0):(1) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << H/A + (H%A == 0)?(0):(1) << endl;
      |                                ~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define vi vector<long long>
#define vvi vector<vector<long long>>
int main(void){
  float H, A;
  cin >> H, A;
  cout << H/A + (H%A == 0)?(0):(1);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'float' and 'float' to binary 'operator%'
    8 |   cout << H/A + (H%A == 0)?(0):(1);
      |                  ~^~
      |                  | |
      |                  | float
      |                  float
Language: C++

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

int main() {
  int H,A;
  cin >> H >> A;
  for(int i = 0; H <= 0; i++) {
    H - A*i;
  }
  cout << i << endl;
}

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

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

int main() {
  int H,A;
  cin >> H >> A;
  for(int i = 0; H <= 0; i++) {
    H - A*i;
  }
  cout << i << endl;
}

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

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

int main() {
  cin >> H >> A;
  for(int i = 0; H <= 0; i++) {
    H - A*i;
  }
  cout << i << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'H' was not declared in this scope
    5 |   cin >> H >> A;
      |          ^
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   cin >> H >> A;
      |               ^
a.cc:9:11: error: 'i' was not declared in this scope
    9 |   cout << i << endl;
      |           ^
Language: C++

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

int main() {
  cin >> H >> A;
  for(int i = 0; H <= 0; i++) {
    H - A*i;
  }
  cout << i << endl;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ')' before ';' token
    7 |   if(A==H;A<<0;A++);
      |     ~         ^
      |               )
a.cc:7:19: error: expected ';' before ')' token
    7 |   if(A==H;A<<0;A++);
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
int main(){,
  int h, a;
  
  scanf(%d %d, h, a);
  printf(%d回目, h/a);
           
           return 0;
          }

Compiler output:
main.c: In function 'main':
main.c:2:12: error: expected expression before ',' token
    2 | int main(){,
      |            ^
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d %d, h, a);
      |         ^
main.c:6:10: error: expected expression before '%' token
    6 |   printf(%d回目, h/a);
      |          ^
Language: C++

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

int main() {
  int H, A;
  if(H % A 0){
    cout << "H/A" << endl;
  }else{
    cout << "H/A +1" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ')' before numeric constant
    6 |   if(H % A 0){
      |     ~     ^~
      |           )
Language: Java

import java.util.Scanner;

public class A
{
	public static int main0(String[] args) {
		int servalDPS, monsterHealth;
		Scanner sc = new Scanner(System.in);
		monsterHealth = sc.nextInt();
		servalDPS = sc.nextInt();
		int remains = monsterHealth % servalDPS;
		if (remains == 0) return monsterHealth / servalDPS;
		else return monsterHealth / servalDPS + 1;
	}

	public static void main(String[] args) {
		int res = main0(args);
		System.out.print(res);
	}
}

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: Java

import java.util.*;
public class game
{
  
  public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    System.out.printltn("Enter two numbers");
    int a=ob.nextInt();
    int b=ob.nextInt();
    double d=Math.ceil(a/b);
    int t=(int)d;
    System.out.println(t);
  }
}

Compiler output:
Main.java:2: error: class game is public, should be declared in a file named game.java
public class game
       ^
Main.java:8: error: cannot find symbol
    System.out.printltn("Enter two numbers");
              ^
  symbol:   method printltn(String)
  location: variable out of type PrintStream
2 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
  int H, A;
  cin >> H, A;
  if(H % A = 0){
    cout << H / A << endl;
  }else{
   cout <<  (H / A) + 1 << endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: lvalue required as left operand of assignment
    7 |   if(H % A = 0){
      |      ~~^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int H, A, count;
  cin >> H, A;
  if(H % A =0){
    cout << H / A << endl;
  }else{
   cout <<  (H / A) + 1 << endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: lvalue required as left operand of assignment
    7 |   if(H % A =0){
      |      ~~^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int H, A, count;
  cin >> H, A;
  for (int i = 0; H <= 0 ; i++) {
    H -= A;
    count = i
  }
   cout << count << endl;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '}' token
    9 |     count = i
      |              ^
      |              ;
   10 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int H, A;
  cin >> H, A;
  for (int i = 0; H <= 0 ; i++) {
    H -= A;
  }
   cout << i << endl;
 }


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

public class game
{
  void main(String args[])
  {
    InputStreamReader r=new InputStreamReader(System.in);    
    BufferedReader in=new BufferedReader(r);
    int n=Integer.parserInt(in.readLine);
    int t=Integer.parserInt(in.readLine);
    int t=(int)(Math.ceil(n/t));
    System.out.println(t);
  }
}

Compiler output:
Main.java:1: error: class game is public, should be declared in a file named game.java
public class game
       ^
Main.java:5: error: cannot find symbol
    InputStreamReader r=new InputStreamReader(System.in);    
    ^
  symbol:   class InputStreamReader
  location: class game
Main.java:5: error: cannot find symbol
    InputStreamReader r=new InputStreamReader(System.in);    
                            ^
  symbol:   class InputStreamReader
  location: class game
Main.java:6: error: cannot find symbol
    BufferedReader in=new BufferedReader(r);
    ^
  symbol:   class BufferedReader
  location: class game
Main.java:6: error: cannot find symbol
    BufferedReader in=new BufferedReader(r);
                          ^
  symbol:   class BufferedReader
  location: class game
Main.java:9: error: variable t is already defined in method main(String[])
    int t=(int)(Math.ceil(n/t));
        ^
6 errors
Language: Java

public class game
{
  void main(String args[])
  {
    InputStreamReader r=new InputStreamReader(System.in);    
    BufferedReader in=new BufferedReader(r);
    int n=Integer.parserInt(in.readLine);
    int t=Integer.parserInt(in.readLine);
    int t=int(Math.ceil(n/t));
    System.out.println(t);
  }
}

Compiler output:
Main.java:9: error: '.class' expected
    int t=int(Math.ceil(n/t));
             ^
Main.java:9: error: ';' expected
    int t=int(Math.ceil(n/t));
                            ^
2 errors
Language: C++

int att(int H, int A) {
  int ret = 0;
  while(H > 0) {
    ++ret;
    H -= A;
  }
  return ret;
}

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

int att(int H, int A) {
  int ret = 0;
  while(H) {
    ++ret;
    H -= A;
  }
  return ret;
}

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 <iostream>
using namesppace std;
int main()
{
  int a, b, count=0;
  cin >> a >> b;
  
  while(a > 0)
  {
    a-=b;
    count++;
  }
  cout << count;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesppace'
    2 | using namesppace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << count;
      |   ^~~~
      |   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 sc = new Scanner(System.in);
		int h = sc.nextInt();
		int a = sc.nextInt();
		int i=1;
		int tmp=h;
		while(true) {
			tmp = tmp-a;
			if(tmp < 0) break;
			i++;
		}
		System.out.println(i);
		sc.close();

	}

}

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 namesppace std;
int main()
{
  int a, b, count;
  cin >> a >> b;
  
  while(a >= 0)
  {
    a-=b;
    count++;
  }
  cout << count;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesppace'
    2 | using namesppace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << count;
      |   ^~~~
      |   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 <iostream>
using namesppace std;
int main()
{
  int a, b, count;
  cin >> a >> b;
  
  while(a < 0)
  {
    a-=b;
    count++;
  }
  cout << count;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesppace'
    2 | using namesppace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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:13:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   cout << count;
      |   ^~~~
      |   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 <iostream>

using namesppace std;
int count = 0;

void func(int a, int b)
{
  count++;
  
  a -= b;
  if(a < 0){
    cout << count;
    return;
  }
  func(a, b);
    
}

int main()
{
  int a, b;
  cin >> a >> b ;
  func(a,b);
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesppace'
    3 | using namesppace std;
      |       ^~~~~~~~~~
a.cc: In function 'void func(int, int)':
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << count;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:22:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   22 |   cin >> a >> b ;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: Java

import java.util.*;
public class Main { 
    static long cnt = 0;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long  n = sc.nextInt();
      	helper(n);
        System.out.println(cnt);
    }

    private static void helper(long long h) {
       cnt++;
       if(h == 1) {
            return;
       }
       helper(h/2); helper(h/2);
    }
}

Compiler output:
Main.java:11: error: <identifier> expected
    private static void helper(long long h) {
                                   ^
Main.java:11: error: ';' expected
    private static void helper(long long h) {
                                          ^
2 errors
Language: Java

import java.util.*;
public class Main { 
    int cnt = 0;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
      	helper(n);
        System.out.println(cnt);
    }

    private static void helper(int h) {
       cnt++;
       if(h == 1) {
            return;
       }
       helper(h/2); helper(h/2);
    }
}

Compiler output:
Main.java:8: error: non-static variable cnt cannot be referenced from a static context
        System.out.println(cnt);
                           ^
Main.java:12: error: non-static variable cnt cannot be referenced from a static context
       cnt++;
       ^
2 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i <(n) ; ++i)
#define PI 3.14159265
using namespace std;
using ll = long long;
void self_max(int &a,int b){
	a = max(a,b);
}
void self_min(int &a,int b){
	a = min(a,b);
}

class Solution {
public:
    int main(){
    	int a,b ; cin >> a >> b;

    	if(a%b==0){
    		cout << a/b << endl;
    	}else{
    		cout << a/b + 1 << endl;
    	}

    	return 0;

    }
};

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 <iostream>
#include <string>
#include <vector>

using namespace std;
int main() {
  int num_count;
  cin >> h >> a;

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

  cout << count << endl;

  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int mian(){
  	int a,b;
  	cin>>a>>b;
  	int c = (a + b - 1) / b;
  	cout<<c<<endl;
	return 0;
}

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<iostream>
using namspace std;

int main(){
  int x,y;
  cin>>x>>y;
  if(x%y!=0){
  cout<<(x/y)+1<<endl;
    }else{cout<<x/y<<endl;}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>x>>y;
      |   ^~~
      |   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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<(x/y)+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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<(x/y)+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)
      |     ^~~~
a.cc:9:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     }else{cout<<x/y<<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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     }else{cout<<x/y<<endl;}
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int h = Integer.parseInt(sc.next());
        int a = Integer.parseInt(sc.next());
      	int cnt = 0;
      	if(h % a != 0)
          cnt++;
        cnt += h / a;
        System.out.println(cnt);
    }
}

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

#include <iostream>

int main(){
  int h, a;
  cin >> h >> a;
  cout << h / a + min(1, h%a);
  return 0;
}

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 + min(1, 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:6:19: error: 'min' was not declared in this scope; did you mean 'std::min'?
    6 |   cout << h / a + min(1, h%a);
      |                   ^~~
      |                   std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

#include <bits/stdc++.h>

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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> h >> a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << 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: C++


#include <bits/stdc++.h>
using namespace std;
#define pi 3.14159265359
#define int long long
#define pii pair<int,int>
const int mod=1e9+7;
 
int dx[]={-1, 0, 1, 0};
int dy[]={0, -1, 0, 1};
 
  
 

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


  int p,s;
  cin>>p>>a;

  cout<<ceil(p/(1.0*a));
   
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:24:11: error: 'a' was not declared in this scope
   24 |   cin>>p>>a;
      |           ^
Language: C++

#include <cfenv>
#include <cmath>
#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int H,A;
    cin >> H >> A;
    // 出力
    cout << Math.ceil(H/A) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'Math' was not declared in this scope
   11 |     cout << Math.ceil(H/A) << endl;
      |             ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int H,A;
    cin >> H >> A;
    // 出力
    cout << Math.ceil(H/A) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'Math' was not declared in this scope
    9 |     cout << Math.ceil(H/A) << endl;
      |             ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int H,A;
    cin >> H >> A;
    // 出力
    cout << ceil(H/A) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'ceil' was not declared in this scope
    9 |     cout << ceil(H/A) << endl;
      |             ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int H,A;
    cin >> H >> A
    // 出力
    cout << ceil(H/A) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'cout'
    7 |     cin >> H >> A
      |                  ^
      |                  ;
    8 |     // 出力
    9 |     cout << ceil(H/A) << endl;
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int h,a;
	cin >> h;
	cin >> a;
	int c;
	c=h;
	int temp,flag=0;
	for(int i=0;i++)
	{
		temp=h-a;
		h=temp;
			flag=flag+1;
		if(temp<0) break;
	}
	
	cout << flag;
	return 0;
}

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

#include<stdio.h>
int main(void)
{
  int hp,atk,count;
  scanf("%d%d",&hp,&atk)
  for(;;){
    hp=hp-atk;
    count++;
    if(hp<=0){
      break;}
  }
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:5:25: error: expected ';' before 'for'
    5 |   scanf("%d%d",&hp,&atk)
      |                         ^
      |                         ;
    6 |   for(;;){
      |   ~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ';' before 'if'
    7 | a-=b
      |     ^
      |     ;
    8 |   if(a<=0){
      |   ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ';' before 'if'
    7 | a-=b
      |     ^
      |     ;
    8 |   if(a<=0){
      |   ~~ 
a.cc:12:9: error: 'i' was not declared in this scope
   12 |   cout<<i<<endl;
      |         ^
Language: Java

package JavaBasic;

import java.util.Scannner;

class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int healt = input.nextInt();
        int attack = input.nextInt();
        int manyattacks = 0;
        while (attack > 0 && healt >= 0 || healt < 0){
            healt = healt - attack;
            manyattacks++;
        }
        System.out.println(manyattacks);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
import java.util.Scannner;
                ^
  symbol:   class Scannner
  location: package java.util
Main.java:7: error: cannot find symbol
        Scanner input = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
        Scanner input = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

#include <iostream>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <map>
#include <string>
#include <Math.h>
using namespace std;


int main() {

    int i=0;
    int H,A;
    while(H>0){
        H=H-A;
        i++;
    }
    cout << i << endl;
    return 0;
}

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

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

int main(void) {

	int H;
	int A;

	scanf("%d %d\n", &H, &A)

	if(H < 1 || 10000 < H) {
		return 1;
	}
	if(A < 1 || 10000 < A) {
		return 1;
	}

	printf("%d\n", (int)(H/A + 1));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before 'if'
    9 |         scanf("%d %d\n", &H, &A)
      |                                 ^
      |                                 ;
   10 | 
   11 |         if(H < 1 || 10000 < H) {
      |         ~~
Language: C++

#include <iostream>


int main()
{
 	int Health, Attack = 0;
  
  	std::cin >> Health >> Attack;
  	int noOfAttack = 1
  	while(Health - Attack)
    {
     	noOfAttack++; 
    }
  	std::cout << noOfAttack;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ',' or ';' before 'while'
   10 |         while(Health - Attack)
      |         ^~~~~
Language: C++

#include <iostearm>


int main()
{
 	int Health, Attack = 0;
  
  	std::cin >> Health >> Attack;
  	int noOfAttack = 1
  	while(Health - Attack)
    {
     	noOfAttack++; 
    }
  	std::cout << noOfAttack;
}

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

#include <iostream>
using namespace std;
int main()
 {
  int k,j,r=0;
  cin>>k>>;
  while(k>0)
  {
    k=k-j;
    r+=1;
  }
  cout<<r;
   return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before ';' token
    6 |   cin>>k>>;
      |           ^
Language: C++

#include <isotream>
using namespace std;
int main()
 {
  int k,j,r=0;
  cin>>k>>;
  while(k>0)
  {
    k=k-j;
    r+=1;
  }
  cout<<r;
   return 0;
}
  

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

import static java.lang.Math.max;
import static java.lang.Math.min;
import java.util.Scanner;


public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    final int h = scanner.nextInt();
    final int n = scanner.nextInt();
    final int[] a = new int[n];
    final int[] b = new int[n];
    int max = 0;
    
    for (int i = 0; i < n; i++) {
      a[i] = scanner.nextInt();
      b[i] = scanner.nextInt();
      max = (max, a[i]);
    }

    final int[][] dp = new int[n][h+max];

    dp[0][0] = b[0];
    for (int i = 1; i < h+max; i++) {
      dp[0][i] = b[0] * (int) Math.ceil((double) i /(double) a[0]);
    }
    for (int i = 1; i < n; i++) {
      for (int j = 0; j < h+max ; j++) {
        if(j >= a[i]) {
          dp[i][j] = min(dp[i][j-a[i]] + b[i] , dp[i-1][j]);
        } else {
          dp[i][j] = min(dp[i-1][j], b[i]);
        }
      }
    }

    int min = Integer.MAX_VALUE;
    for (int i = 0; i < n; i++) {
      min = min(min, dp[i][h]);
    }
    System.out.println(min);

  }
}


Compiler output:
Main.java:19: error: ')' expected
      max = (max, a[i]);
                ^
Main.java:19: error: not a statement
      max = (max, a[i]);
                   ^
Main.java:19: error: ';' expected
      max = (max, a[i]);
                      ^
3 errors
Language: C++

#include <iostream>
int main(){
  int x, y;
  std::cin >>x>>y;
  std::cout << x/y+1<< std:endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: found ':' in nested-name-specifier, expected '::'
    5 |   std::cout << x/y+1<< std:endl;
      |                           ^
      |                           ::
Language: C++

#include<iostream>
int main(){
  int x, y;
  std::cin >>x>>y;
  std::cout << x/y+1<< std:endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:27: error: found ':' in nested-name-specifier, expected '::'
    5 |   std::cout << x/y+1<< std:endl;
      |                           ^
      |                           ::
Language: C++

int main(){
  int x, y;
  std::cin >>x>>y;
  std::cout << x/y+1<< std:endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:8: error: 'cin' is not a member of 'std'
    3 |   std::cin >>x>>y;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:4:8: error: 'cout' is not a member of 'std'
    4 |   std::cout << x/y+1<< std:endl;
      |        ^~~~
a.cc:4:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:4:27: error: found ':' in nested-name-specifier, expected '::'
    4 |   std::cout << x/y+1<< std:endl;
      |                           ^
      |                           ::
a.cc:4:28: error: 'endl' is not a member of 'std'
    4 |   std::cout << x/y+1<< std:endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ')' before 'ans'
   11 |     printf("%d"ans);
      |           ~    ^~~
      |                )
Language: Java

public class Test {
 public static void main(String[] args){
  String a = "1";
  switch(a){
    case 1:
      print(a);
  }
 }
}

Compiler output:
Main.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
Main.java:5: error: incompatible types: int cannot be converted to String
    case 1:
         ^
Main.java:6: error: cannot find symbol
      print(a);
      ^
  symbol:   method print(String)
  location: class Test
3 errors
Language: C

#include<studio.h>

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

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

#include<studio,h>

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

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

#include<studio,h>

int main()
{
  int a,b;
  scantf("%d%d" , &a, &b);
  printf("%d/n" , a/b)；
    
    return 0;
}
  

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

#include<studio,h>

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

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

#include<studio,h>

int main()
{
  int a,b;
  scantf("%d%d" , &a, &b);
  printf("%d/n" , a/b)
    
    return 0;
}
  

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

int main(void)
{
  int HP;
  int a;
  int b;
  
  HP = 10;
  a  = 4;
  
  b  = HP / a;
  
  printf("必要な攻撃回数は"b"です")；
   
   return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("必要な攻撃回数は"b"です")；
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |   printf("必要な攻撃回数は"b"です")；
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:28: error: expected ')' before 'b'
   12 |   printf("必要な攻撃回数は"b"です")；
      |         ~                  ^
      |                            )
main.c:12:36: error: expected ';' before '\U0000ff1b'
   12 |   printf("必要な攻撃回数は"b"です")；
      |                                    ^~
      |                                    ;
Language: Java

import java.util.*;

public class atq1
{
	public static void main(String[] args)
	{
		Scanner input=new Scanner(System.in);
		int h=input.nextInt();
		int a=input.nextInt();
		int count=0;
		while(h>0)
		{
			h-=a;
			count+=1;
		}
		System.out.println(count);

	}
}

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

import java.util.*;
public class atq1
{
	public static void main(String[] args)
	{
		Scanner input=new Scanner(System.in);
		int h=input.nextInt();
		int a=input.nextInt();
		int count=0;
		while(h>0)
		{
			h-=a;
			count+=1;
		}
		System.out.println(count);

	}
}

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

import java.util.*;

Class atq1
{
	public static void main(String[] args)
	{
		Scanner input=new Scanner(System.in);
		int h=input.nextInt();
		int a=input.nextInt();
		int count=0;
		while(h>0)
		{
			h-=a;
			count+=1;
		}
		System.out.println(count);

	}
}

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

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


Compiler output:
main.c:2:1: warning: data definition has no type or storage class
    2 | inta,h,b=0;
      | ^~~~
main.c:2:1: error: type defaults to 'int' in declaration of 'inta' [-Wimplicit-int]
main.c:2:6: error: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
    2 | inta,h,b=0;
      |      ^
main.c:2:8: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    2 | inta,h,b=0;
      |        ^
main.c: In function 'main':
main.c:4:28: error: 'a' undeclared (first use in this function)
    4 |         scanf("%d,%d",&h, &a);
      |                            ^
main.c:4:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:27: error: expected expression before '%' token
    4 |         scanf("%d,%d",&h, %a);
      |                           ^
Language: Java

import java.util.Scanner;

public class Abc123a {

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

}


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

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

int main() {
  int H,A;
  cin >> H >> A;
  count N = H/A+1;
  cout << N << endl;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'N'
    7 |   count N = H/A+1;
      |        ^~
      |        ;
a.cc:7:18: error: statement cannot resolve address of overloaded function
    7 |   count N = H/A+1;
      |                  ^
a.cc:8:11: error: 'N' was not declared in this scope
    8 |   cout << N << endl;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(H%A = 0){
      |      ~^~
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int H,A;
      | ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> H >> A;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(H%A = 0){
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(H%A != 0){
      |   ^~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(H%A=0){
      |      ~^~
a.cc:9:11: error: expected primary-expression before ')' token
    9 |   if(H%A!=){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H,A,B=0;
  cin >> H >> a;
  while(H=0){
    H-=A,B++;
  }
  cout << B << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(h%a=0){
      |      ~^~
Language: C++

#include<iostream>
using namespace std;
int main (){
  int h,a,j=0;
  cin >> h >> a;
  while(h>0){
    h-=a,j++;
  }
  cout << i << endl;
}

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

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'uint16' was not declared in this scope; did you mean 'uint'?
    6 |   uint16 H,A;
      |   ^~~~~~
      |   uint
a.cc:7:10: error: 'H' was not declared in this scope
    7 |   cin >> H >> A;
      |          ^
a.cc:7:15: error: 'A' was not declared in this scope
    7 |   cin >> H >> A;
      |               ^
Language: C++

#include<bits/stdc++.h>
int main()
{
 
 long long  int H;
  cin>>H;
  
  long long int A;
  cin>>A;
  
  long long int attack=0;
  
  while(H>0)
  {
    H=H-A;
    attack=attack++; 
  }
  cout<<attack<<endl;
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>H;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout<<attack<<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:18:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |   cout<<attack<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

public class HelloWorld{

     public static void main(String []args){
 
		Scanner scan = new Scanner(System.in);
		String[] strArray = scan.nextLine().split(" ");

        int H = Integer.parseInt(strArray[0]);
        int A = Integer.parseInt(strArray[1]);
        int lastCount = 0;
        
        for (int i = 1; H > 0; i++) {
            H = H - A;
            lastCount = i;
        }

        System.out.println(lastCount);

     }
}


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

#include "stdio.h"

int main(void) {
  /* code */
  int s,h;
  scanf("%d %d", &s, &h);
  if(s%a != 0){
    printf("%d\n",s/h+1 );
  }else{
    printf("%d\n",s/h );
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'a' undeclared (first use in this function)
    7 |   if(s%a != 0){
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;

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:7:8: error: 'a\U0000ff01' was not declared in this scope
    7 |   if(h%a！=0)cout<<h/a+1<<endl;
      |        ^~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <iostream>
using namespace std;
int main ()
{
	double h,a;
	cin>>h>>a;
	double b=h/a;
	cout<<ceil(b);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'ceil' was not declared in this scope
   10 |         cout<<ceil(b);
      |               ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <iostream>
using namespace std;
int main ()
{
	double h,a;
	cin>>h>>a;
	cout<<ceil(h/a);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'ceil' was not declared in this scope
    9 |         cout<<ceil(h/a);
      |               ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>
int main()
{
  int h,a;
  scanf("%i %i",&h,&a);
  printf("%i",ceil(h/a));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'ceil' was not declared in this scope
    7 |   printf("%i",ceil(h/a));
      |               ^~~~
Language: Java

import java.util.*;  
public class ScannerClassExample2 {    
      public static void main(String args[]){ 
      Scanner sc = new Scanner (System.in);
	int h = sc.nextInt();
	int b = sc.nextInt();
	int r=0;
	while(h>0)
	{
	    h=h-b;
	    r++;
	}
	System.out.println("" +r);
      }
  }
  

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

#include<stdio.h>
int main()
{
int H,A,i;
i=1;
scanf("%d%d",&H,&A);
while(H=>0)

{
H=H-A;
i++;
}
printf("%d\n",i);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '>' token
    7 | while(H=>0)
      |         ^
Language: C

#include<stdio.h>
int main()
{
int H,A,i;
i=1;
scanf("%d%d",&H,&A);
while(H>A)

{
H=H-A;
i++;
}
printf("%d\n"i+1);
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: expected ')' before 'i'
   13 | printf("%d\n"i+1);
      |       ~      ^
      |              )
Language: Java

class Main{
	public static void main(String[] args){
      int a,count;
      count = 0;
      a=Integer.parseInt(args[0]);
      while(a<=0){
        a-=Integer.parseInt(args[1])];
        count++;
      }
      System.out.println(count);
    }
}

Compiler output:
Main.java:7: error: ';' expected
        a-=Integer.parseInt(args[1])];
                                    ^
1 error
Language: Java

class Main{
	public static void main(int[] args){
      int a,count;
      count = 0;
      a=args[0]
      while(a<=0){
        a-=args[1];
        count++;
      }
      System.out.println(count);
    }
}

Compiler output:
Main.java:5: error: ';' expected
      a=args[0]
               ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^