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

#include <iostream>
using namespace std;
int a, b;
cin >> a >> b;
if (a <= b){
  cout << a;
}
else {
  cout << b;
}
return 0;

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> a >> b;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if (a <= b){
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else {
      | ^~~~
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
Language: C++

int main(void) {
  int h, a;
  std::cin >> h >> a;
  std::cout << std::ceil((double) h / (double)a) << 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 >> 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 | int main(void) {
a.cc:4:8: error: 'cout' is not a member of 'std'
    4 |   std::cout << std::ceil((double) h / (double)a) << 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:21: error: 'ceil' is not a member of 'std'
    4 |   std::cout << std::ceil((double) h / (double)a) << std::endl;
      |                     ^~~~
a.cc:4:58: error: 'endl' is not a member of 'std'
    4 |   std::cout << std::ceil((double) h / (double)a) << 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(void) {
Language: C++

#include<iostream>
using namespace std; 
int main()
{
  int H=10 A=4;


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected ',' or ';' before 'A'
    5 |   int H=10 A=4;
      |            ^
a.cc:5:16: error: expected '}' at end of input
    5 |   int H=10 A=4;
      |                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <iostream>
#include <cstdin>
#include <cmath>

int main(void) {
  int h, a;
  std::cin >> h >> a;
  std::cout << std::floor((double) h / (double)a) << std::endl;
}

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

#include<stdio.h>

int main(void){
  int h,a,n;
  scanf(%d%d,h,a);
  n=h/a;
  printf(n);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected primary-expression before '%' token
    5 |   scanf(%d%d,h,a);
      |         ^
a.cc:5:10: error: 'd' was not declared in this scope
    5 |   scanf(%d%d,h,a);
      |          ^
a.cc:7:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |   printf(n);
      |          ^
      |          |
      |          int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>

int main(void){
  int h,a,n;
  scanf("%d%d",&h,&a);
  n=h/a;
  printf(n);
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |   printf(n);
      |          ^
      |          |
      |          int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
using namespace std;

#define ll long long
#define endl "\n"

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

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)<<endl;
      |               ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll h, a;cin>>h>>a;
      |   ^~
a.cc:5:16: error: 'h' was not declared in this scope
    5 |   ll h, a;cin>>h>>a;
      |                ^
a.cc:5:19: error: 'a' was not declared in this scope
    5 |   ll h, a;cin>>h>>a;
      |                   ^
Language: C

int A,H,X;
scanf("%d%d",H,A);
do{X = H - A;
  int i++;}while(X > 0 )
printf("%d", i);


Compiler output:
main.c:2:7: error: expected declaration specifiers or '...' before string constant
    2 | scanf("%d%d",H,A);
      |       ^~~~~~
main.c:2:14: error: expected declaration specifiers or '...' before 'H'
    2 | scanf("%d%d",H,A);
      |              ^
main.c:2:16: error: expected declaration specifiers or '...' before 'A'
    2 | scanf("%d%d",H,A);
      |                ^
main.c:3:1: error: expected identifier or '(' before 'do'
    3 | do{X = H - A;
      | ^~
main.c:4:12: error: expected identifier or '(' before 'while'
    4 |   int i++;}while(X > 0 )
      |            ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int h, a, x;
  cin >> h >> a;
  x=h/a;
  if(h%a!=0)
    x++
  cout << x << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'cout'
    9 |     x++
      |        ^
      |        ;
   10 |   cout << x << '\n';
      |   ~~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected primary-expression before '<' token
   16 |        cout<<<k;
      |              ^
Language: C++

#include <stdio.h>

int main(void)
{
  	int a, b, output;
	cin >> a >> b;
  	output = a / b;
  	if(a % b != 0)
      output++;
  
  	cout << output << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << output << endl;
      |         ^~~~
a.cc:11:27: error: 'endl' was not declared in this scope
   11 |         cout << output << endl;
      |                           ^~~~
Language: Java

import java.util.Scanner;
import java.util.ArrayList;

public class Main{
    Scanner scan = new Scanner(System.in);

    int H;
    int N;
    ArrayList<Integer> A = new ArrayList<>();

    Main(){
        H = scan.nextInt();
        N = scan.nextInt();
        for(int i = 0; i < N; i++){
            A.add(scan.nextInt());
        }

        judge(H, A);

        /*
        for(int i = 0; i < N; i++){
            System.out.println(A.get(i));
        }*/
    }

    public void judge(int H, ArrayList<Integer> A){
        for(int i = 0; i < A.size(); i++){
            H -= A.get(i);
        }
        if(H <= 0){System.out.println("Yes");}
        else{System.out.println("No");}
    }

    public static void main(String[] args){
        new Common();
    }
}

Compiler output:
Main.java:35: error: cannot find symbol
        new Common();
            ^
  symbol:   class Common
  location: class Main
1 error
Language: Java

import java.util.Scanner;
import java.util.ArrayList;

public class Common{
    Scanner scan = new Scanner(System.in);

    int H;
    int N;
    ArrayList<Integer> A = new ArrayList<>();

    Common(){
        H = scan.nextInt();
        N = scan.nextInt();
        for(int i = 0; i < N; i++){
            A.add(scan.nextInt());
        }

        judge(H, A);

        /*
        for(int i = 0; i < N; i++){
            System.out.println(A.get(i));
        }*/
    }

    public void judge(int H, ArrayList<Integer> A){
        for(int i = 0; i < A.size(); i++){
            H -= A.get(i);
        }
        if(H <= 0){System.out.println("Yes");}
        else{System.out.println("No");}
    }

    public static void main(String[] args){
        new Common();
    }
}

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

#include <iostream>

int main()
{
  int h, a;
  cin >> h >> a;
  cout << (h / a) + 1 << 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 >> 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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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: C++

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

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

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


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

#include <iostream>
using namespace std;
int main(void){
	int H,A,k;

    cin >> H >> A;
  

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

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

#include "pch.h"

#include <iostream>
#include <string>


using namespace std;

int main()
{
	// 整数の入力
	int H, A;
	cin >> H >> A;


	int tmp = H / A;
	int ama = H % A;

	if( ama ) tmp ++;

	// 出力
	cout << tmp << ama <<  endl;


	return 0;
}

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

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

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


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

//Serval Vs Monster
#include <iostream>
using namespace std;
int main() {
	double a, h;
	cin >> h >> a;
	cout << ceil(h / a) << endl;
	return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d", &n, &a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d", &n, &a);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:18: error: 'n' undeclared (first use in this function)
    3 |   scanf("%d%d", &n, &a);
      |                  ^
main.c:3:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   printf("%d\n", (n+a-1)/a);
      |   ^~~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
using namespace std; 

int main() {
  long H, N;
  long A[100001];
  
  cin >>H >> N;
  
  if(H < 1 || H > 1000000000) {
    return -1;
  }
  if(N < 1 || N > 100000) {
    return -1;
  }
  
  for(int i = 0; i < N; i ++) {
    cin >> A[i];
    /*if(A[i] < 1 || A[i] > 10000) {
      return -1;
    }
  }*/
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      /*if(A[i] == A[j]) {
        printf("No\n");
        return 0;
      }*/
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += A[i];
  }
  if(sum < H) {
    printf("No\n");
  }else {
    printf("Yes\n");
  }
  return 0;
}


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

#include<iostream>
using namespace std; 

int main() {
  long H, N;
  long A[100001];
  
  cin >>H >> N;
  
  if(H < 1 || H > 1000000000) {
    return -1;
  }
  if(N < 1 || N > 100000) {
    return -1;
  }
  
  for(int i = 0; i < N; i ++) {
    cin >> A[i]
    if(A[i] < 1 || A[i] > 10000) {
      return -1;
    }
  }
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      if(A[i] == A[j]) {
        printf("No\n");
        return 0;
      }
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += A[i];
  }
  if(sum < H) {
    printf("No\n");
  }else {
    printf("Yes\n");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: expected ';' before 'if'
   18 |     cin >> A[i]
      |                ^
      |                ;
   19 |     if(A[i] < 1 || A[i] > 10000) {
      |     ~~
Language: C++

#include <iostream>
#include <string>
#include<algorithm>
#include<vector>

using namespace std;
typedef long long ll;

int main() {
	int H, A;
	cin >> H >> A;
	cout << int(ceil(double(H) / double(A))) << endl;
}

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

#include<iostream>

int main() {
  long H, N;
  long A[100001];
  
  scanf("%ld %ld", &H, &N);
  
  if(N < 1 || N > 100000) {
    return -1;
  }
  for(int i = 0; i < N; i ++) {
    scanf("%ld", &A[i]);
    if(A[i] < 1 || A[i] > 10000) {
      return -1;
  }
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      if(A[i] == A[j]) {
        printf("No");
        return 0;
      }
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += A[i];
  }
  if(sum < H) {
    printf("No");
  }else {
    printf("Yes");
  }
  return 0;
}


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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: 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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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: C++

#include<iostream>

int main() {
  long H, N;
  long A[100001];
  
  if(H < 1 || H > 1000000000) {
    return -1;
  }
  if(N < 1 || N > 100000) {
    return -1;
  }
  
  scanf("%ld %ld", &H, &N);
  
  for(int i = 0; i < N; i ++) {
    scanf("%ld ", &A[i]);
    if(A[i] < 1 || A[i] > 10000) {
      return -1;
    }
  }
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      if(A[i] == A[j])) {
        printf("No\n");
        return 0;
      }
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += A[i];
  }
  if(sum > H) {
    printf("No\n");
  }else {
    printf("Yes\n");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:23: error: expected primary-expression before ')' token
   24 |       if(A[i] == A[j])) {
      |                       ^
Language: C++

#include<iostream.h>

int main() {
  long H, N;
  long A[100001];
  
  if(H < 1 || H > 1000000000) {
    return -1;
  }
  if(N < 1 || N > 100000) {
    return -1;
  }
  
  scanf("%ld %ld", &H, &N);
  
  for(int i = 0; i < N; i ++) {
    scanf("%ld ", A + i);
    if(*(A + i) < 1 || *(A + i) > 10000) {
      return -1;
    }
  }
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      if(*(A+i) == *(A+j)) {
        printf("No\n");
        return 0;
      }
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += *(A+i);
  }
  if(sum > H) {
    printf("No\n");
  }else {
    printf("Yes\n");
  }
  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++

#include<istream.h>

int main() {
  long H, N;
  long A[100001];
  
  if(H < 1 || H > 1000000000) {
    return -1;
  }
  if(N < 1 || N > 100000) {
    return -1;
  }
  
  scanf("%ld %ld", &H, &N);
  
  for(int i = 0; i < N; i ++) {
    scanf("%ld ", A + i);
    if(*(A + i) < 1 || *(A + i) > 10000) {
      return -1;
    }
  }
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j ++) {
      if(*(A+i) == *(A+j)) {
        printf("No\n");
        return 0;
      }
    }
  }
  long sum = 0;
  for(int i = 0; i < N; i ++) {
    sum += *(A+i);
  }
  if(sum > H) {
    printf("No\n");
  }else {
    printf("Yes\n");
  }
  return 0;
}


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

#include <iostream>
#include <string>
#include<algorithm>
#include<vector>

using namespace std;
typedef long long ll;

int main(){
	int h, a,ans;
	ans = 0;
	cin >> h >> a;
	ans = std::ceil(h+a-1)/a;
	cout << ans;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: 'ceil' is not a member of 'std'
   13 |         ans = std::ceil(h+a-1)/a;
      |                    ^~~~
Language: C++

#include<iostream>
#include<math.h>

int main() {
  
  char H[50];
  char A[50];
  int h, a, result;
  int ret = scanf("%s %s", H, A);
  int h = atoi(H);
  int a = atoi(A);
  if(H == 0 || A == 0) {
    return -1;
  }
  if(ret == EOF) {
    return -1;
  }
  
  if(h < 1 || h > 10000) {
    return -1;
  }
  if(a < 1 || a > 10000) {
    return -1;
  }
  result = ceil((float)(h / a));
  printf("%d\n", result);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: redeclaration of 'int h'
   10 |   int h = atoi(H);
      |       ^
a.cc:8:7: note: 'int h' previously declared here
    8 |   int h, a, result;
      |       ^
a.cc:11:7: error: redeclaration of 'int a'
   11 |   int a = atoi(A);
      |       ^
a.cc:8:10: note: 'int a' previously declared here
    8 |   int h, a, result;
      |          ^
Language: C++

#include<iostream>
#include<math.h>

int main() {
  
  char H[50];
  char A[50];
  int H, A, result;
  int ret = scanf("%s %s", H, A);
  int H = atoi(H);
  int A = atoi(A);
  if(H == 0 || A == 0) {
    return -1;
  }
  if(ret == EOF) {
    return -1;
  }
  
  if(H < 1 || H > 10000) {
    return -1;
  }
  if(A < 1 || A > 10000) {
    return -1;
  }
  result = ceil((float)(H / A));
  printf("%d\n", result);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: conflicting declaration 'int H'
    8 |   int H, A, result;
      |       ^
a.cc:6:8: note: previous declaration as 'char H [50]'
    6 |   char H[50];
      |        ^
a.cc:8:10: error: conflicting declaration 'int A'
    8 |   int H, A, result;
      |          ^
a.cc:7:8: note: previous declaration as 'char A [50]'
    7 |   char A[50];
      |        ^
a.cc:10:7: error: conflicting declaration 'int H'
   10 |   int H = atoi(H);
      |       ^
a.cc:6:8: note: previous declaration as 'char H [50]'
    6 |   char H[50];
      |        ^
a.cc:11:7: error: conflicting declaration 'int A'
   11 |   int A = atoi(A);
      |       ^
a.cc:7:8: note: previous declaration as 'char A [50]'
    7 |   char A[50];
      |        ^
a.cc:19:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   if(H < 1 || H > 10000) {
      |      ~~^~~
a.cc:19:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   if(H < 1 || H > 10000) {
      |               ~~^~~~~~~
a.cc:22:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   if(A < 1 || A > 10000) {
      |      ~~^~~
a.cc:22:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   if(A < 1 || A > 10000) {
      |               ~~^~~~~~~
a.cc:25:27: error: invalid operands of types 'char [50]' and 'char [50]' to binary 'operator/'
   25 |   result = ceil((float)(H / A));
      |                         ~ ^ ~
      |                         |   |
      |                         |   char [50]
      |                         char [50]
Language: C++

#include<iostream>
#include<math.h>

int main() {
  
  int H, A,result;
  int ret = scanf("%d %d" &H, &A);
  if(ret == EOF) {
    return -1;
  }
  if(H < 1 || H > 10000) {
    return -1;
  }
  if(A < 1 || A > 10000) {
    return -1;
  }
  result = ceil((float)(H / A));
  printf("%d\n" result);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    7 |   int ret = scanf("%d %d" &H, &A);
      |                   ~~~~~~~ ^~
      |                   |        |
      |                   |        int
      |                   const char [6]
a.cc:18:16: error: expected ')' before 'result'
   18 |   printf("%d\n" result);
      |         ~      ^~~~~~~
      |                )
Language: C++

#include <iostream>
#include <string>
#include<algorithm>
#include<vector>

using namespace std;
typedef long long ll;

int main(){
	int h, a,ans;
	ans = 0;
	cin >> h >> a;
	ans = ceil(h+a-1)/a;
	cout << ans;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'ceil' was not declared in this scope
   13 |         ans = ceil(h+a-1)/a;
      |               ^~~~
Language: C++

#include <iostream>
#include <string>
#include<algorithm>
#include<vector>

using namespace std;
typedef long long ll;

int main(){
	int h, a,ans;
	ans = 0;
	cin >> h >> a;
	ans = ceil(h+a-1)/a;
	cout << ans;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'ceil' was not declared in this scope
   13 |         ans = ceil(h+a-1)/a;
      |               ^~~~
Language: C++

#include<iostream>
#include<math.h>

int main() {
  
  int H, A,result;
  scanf("%d %d" &H, &A);
  
  if(H < 1 || H > 10000) {
    return -1;
  }
  if(A < 1 || A > 10000) {
    return -1;
  }
  result = ceil((float)(H / A));
  printf("%d\n" result);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    7 |   scanf("%d %d" &H, &A);
      |         ~~~~~~~ ^~
      |         |        |
      |         |        int
      |         const char [6]
a.cc:16:16: error: expected ')' before 'result'
   16 |   printf("%d\n" result);
      |         ~      ^~~~~~~
      |                )
Language: C++

#include <stdio.h>
#include <math.h>

void main() {
  int H, A,reuslt;
  
  scanf("%d %d", &H, &A);
  
  result = ceil(H / A);
  
  printf("%d", result);
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'result' was not declared in this scope; did you mean 'reuslt'?
    9 |   result = ceil(H / A);
      |   ^~~~~~
      |   reuslt
Language: C++

#include <stdio.h>
#include <cmath>

main() {
  int H, A;
  
  scanf("%d", &H);
  scanf("%d", &A);
  
  int result = ceil(H / A);
  
  printf("%d", result);

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:24: error: expected '}' at end of input
   12 |   printf("%d", result);
      |                        ^
a.cc:4:8: note: to match this '{'
    4 | main() {
      |        ^
Language: C++

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


int main() {
    int h,a,ans;
    cin>>h>>a;
    if(h<=a){
        ans =1;
    }
    else{
    for(int i = h ; i>0 ;i-=a){
        ans++
    }
    ans++;
}
  cout<<ans;
  return 0;
}


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

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

int main(void) {
  int n, h; cin >> n >> h;
  int ans = (h / n) + (h % n ? 1 : 0);
  cout << ans << '\n';
  return 0;
}

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:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int n, h; cin >> n >> 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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << ans << '\n';
      |   ^~~~
      |   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<stdio.h>
int min(int a, int b)
{
	if (a < b)
		return a;
	else
		return b;
}
int main()
{int h, n;
	cin>>h>>n;
	int i, j;
	int a[1003], b[1003];
	for (i = 0; i < n; i++)
		cin>>a[i]>>b[i];
	int dp[10004];
	for (i = 0; i < 10004; i++)
		dp[i] = 1000000009;
	       dp[0] = 0;
	for (i = 0; i < n; i++)
		for (j = 0; j < h; j++)
dp[min(h, j + a[i])] = min(dp[min(h, j + a[i])], dp[j] + b[i]);
	printf("%d\n", dp[h]);
	return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'min'?
   11 |         cin>>h>>n;
      |         ^~~
      |         min
Language: C

#include<stdio.h>
int main()
{
  long int h,a,i;
  scanf("%ld",&h);
  scanf("%ld",&a);
  for(i=0; ;i++)
  {
    h=h-a;
    if(h>i)
    {
      printf("%ld",i+1);
      break;
  	}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   return 0;
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
 int H,N,A[N],sum=0;
  cin>>H>>N;
  for(int i=0;i<N;i++){
    cin>>A[i];
  }
  for(int i=0;i<N;i++)
  {
    sum=sum+A[i];
  }
  if(sum>=H){
    cout<<"Yes";
  }
  else{
    cout<<"No";
}
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
 int H,N,A,sum=0;
  cin>>H>>N;
  for(int i=0;i<N;i++){
    cin>>A;
    sum=sum+A;
  }
  if(sum>=H){
    cout<<"Yes";
  }
  else{
    cout<<"No";

Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:35:16: error: expected '}' at end of input
   35 |     cout<<"No";
      |                ^
a.cc:34:7: note: to match this '{'
   34 |   else{
      |       ^
a.cc:35:16: error: expected '}' at end of input
   35 |     cout<<"No";
      |                ^
a.cc:24:1: note: to match this '{'
   24 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
 int H,N,A[N],sum=0;
  cin>>H>>N;
  for(int i=0;i<N;i++){
    cin>>A[i];
  }
  for(int i=0;i<N;i++)
  {
    sum=sum+A[i];
  }
  if(sum>=H){
    cout<<"Yes";
  }
  else{
    cout<<"No";
}
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
 int H,N,A[N],sum=0;
  cin>>H>>N;
  for(int i=0;i<N;i++){
    cin>>A[i];
    sum=sum+A[i];
  }
 
  if(sum>=H){
    cout<<"Yes";
  }
  else{
    cout<<"No";

Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:36:16: error: expected '}' at end of input
   36 |     cout<<"No";
      |                ^
a.cc:35:7: note: to match this '{'
   35 |   else{
      |       ^
a.cc:36:16: error: expected '}' at end of input
   36 |     cout<<"No";
      |                ^
a.cc:24:1: note: to match this '{'
   24 | {
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int maxn=1e6+5;

typedef long long ll;

const ll mod=1e9+7;

ll a[maxn];

int num[maxn];

ll qPow(ll a,ll b){
	ll ans=1;
	while(b){
		if(b&1) ans=(ans*a)%mod;
		a=(a*a)%mod;
		b>>=1;
	}
	return ans;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:31: error: expected ';' before 'return'
   28 |         printf("%d",(n-1)/m+1)
      |                               ^
      |                               ;
   29 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int H,A,y;
  cin>>H>>A;
  float x;
  x=float(H)/float(A);
  y=int(x)+1;
  if(A==1)
  {cout<<H;}
  if(H==1)
  {cout<<"1";}
  if(A>H)
  {cout<<"1";}
  else
  {
  if(x==0)
  {
  cout<<x;
  }
  else
  {
    cout<<y;
  }
  }
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: expected '}' at end of input
   27 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
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 A=sc.nextInt();
  int i=1;
  int N=H-i*A;
  while(0=<N){
    i++;
   }System.out.println(i);
 }
}

Compiler output:
Main.java:11: error: > or ',' expected
  while(0=<N){
            ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected '}' at end of input
    9 |       cout<<n/k+1;
      |                   ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define EACH(i,c) for(__typeof((c).begin()) i=(c).begin(),i##_end=(c).end();i!=i##_end;++i)
LL D,A;
pair<LL,LL> P[200011];
LL F[200011];
void MAIN(){
    scanf("%d%lld%lld",&N,&D,&A);
    REP (i,N) scanf("%lld%lld",&P[i].first,&P[i].second);
    sort(P,P+N);
    LL ans=0;
    REP (i,N){
		if (F[i]<P[i].second){
	    LL rest=P[i].second-F[i];
	    LL t=(rest+A-1)/A;
	    F[i]+=A*t;
	    ans+=t;
	    LL right=P[i].first+D+D;
	    int k=upper_bound(P,P+N,make_pair(right,1LL<<60))-P;
	    F[k]-=A*t;
		}
		F[i+1]+=F[i];
    }
	printf("%lld\n",ans);
}
int main() {
    int Tc=1;
    REP (tc,TC) MAIN();
    return 0;
}


Compiler output:
a.cc: In function 'void MAIN()':
a.cc:11:25: error: 'N' was not declared in this scope
   11 |     scanf("%d%lld%lld",&N,&D,&A);
      |                         ^
a.cc: In function 'int main()':
a.cc:31:13: error: 'TC' was not declared in this scope; did you mean 'Tc'?
   31 |     REP (tc,TC) MAIN();
      |             ^~
a.cc:5:40: note: in definition of macro 'REP'
    5 | #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
      |                                        ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,f,t) for(int i=f;i<t;i++)
#define pii pair<int,int>
#define fi first
#define se second
#define ll long long
#define mkp make_pair
using namespace std;
int main(){
	ll n,d,a;
    cin>>n>>d>>a;
    vector<pair<ll,ll> > arr;
    ll c[n];
    rep(i,0,n){
    	c[i]=0;
        int x,y;
        cin>>x>>y;
        arr.push_back(mkp(x,y));
     }
     ll ans=0;
     sort(arr.begin(),arr.end());
     rep(i,0,n){
     	int j=0;
        while(j<n&&arr[j].fi<=arr[i].fi+2*d)j++;
        ll need=max(arr[i].se-c[i]*a+a-1)/2,0ll);
        ans+=need;
        c[i]+=need;
        c[j]-=need;
        c[i+1]+=c[i];
     }
     cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:20: error: no matching function for call to 'max(long long int)'
   25 |         ll need=max(arr[i].se-c[i]*a+a-1)/2,0ll);
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:25:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   25 |         ll need=max(arr[i].se-c[i]*a+a-1)/2,0ll);
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'N' was not declared in this scope
    8 |   if (N % A ==0) {
      |       ^
Language: C++

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

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

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

int main(){int H,A;scanf("%d%d",&H,&A);printf("%d",(H+A-1)/A);} 

Compiler output:
a.cc: In function 'int main()':
a.cc:1:20: error: 'scanf' was not declared in this scope
    1 | int main(){int H,A;scanf("%d%d",&H,&A);printf("%d",(H+A-1)/A);}
      |                    ^~~~~
a.cc:1:40: error: 'printf' was not declared in this scope
    1 | int main(){int H,A;scanf("%d%d",&H,&A);printf("%d",(H+A-1)/A);}
      |                                        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){int H,A;scanf("%d%d",&H,&A);printf("%d",(H+A-1)/A);}
Language: C++

#include<iostream>main(){int H,A;std::cin>>H>>A;std::cout<<(H+A-1)/A;} 

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<iostream>main(){int H,A;std::cin>>H>>A;std::cout<<(H+A-1)/A;}
      |                       ^
a.cc:1:9: fatal error: iostream>mai: No such file or directory
    1 | #include<iostream>main(){int H,A;std::cin>>H>>A;std::cout<<(H+A-1)/A;}
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class FizzBuzz {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int hp = scan.nextInt();
		int damage = scan.nextInt();
		
		if (hp % damage == 0) {
			System.out.println(hp / damage);
		} else {
			System.out.println(hp / damage + 1);
		}
	}
}


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

#include <bits/stdc++.h>

using namespace std;

#define pii pair<int,int>
#define pb push_back
#define ll long long
#define MOD 1000000007

ll fact[1000] = {0};
ll factorial(int n){
    if (n >= 0) {
        fact[0] = 1;
        for (int i=1;i<=n;++i) result[i] = i * result[i - 1];
        return result[n];
    } else return -1;
}

ll mpow(ll a, ll n) {
    ll ret=1;
    ll b=a;
    while(n) {
        if(n&1) 
            ret=(ret*b)%MOD;
        b=(b*b)%MOD;
        n>>=1;
    }
    return (ll)ret;
}

int toint(const string &s) { 
    stringstream ss(s);
    int x; 
    ss >> x; 
    return x; 
}

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

Compiler output:
a.cc: In function 'long long int factorial(int)':
a.cc:14:32: error: 'result' was not declared in this scope
   14 |         for (int i=1;i<=n;++i) result[i] = i * result[i - 1];
      |                                ^~~~~~
a.cc:15:16: error: 'result' was not declared in this scope
   15 |         return result[n];
      |                ^~~~~~
Language: C++

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

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


import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		double H = sc.nextInt();
		double A = sc.nextInt();

		double Answer;

		Answer = Math.ceil(H/A);

		int D = (int) Answer;

		System.out.println(D);

	}

}


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

#include<iostream.h>
int main()
  {
  int n, h;
  int sum;
  sum=0;
  cout<<"enter h:";
  cin>>h;
  
  sum=n(n+1) /2;
  if(sum>=h)
    {
    cout<<"yes";
    }
  else 
    cout<<"no";
    
  ios_base::sync_withstdio(false) ;
  cin.tie(0) ;
  cout.tie(0) ;
  }

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

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

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   print("%d",n);
      |   ^~~~~
      |   printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   print("%d",n);
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>

int main(){
  int H, A;
  scanf("%d %d",&H, &A);
  int cnt=0;
  while H > 0{
    H-=A;
    cnt++;
  }
  printf("%d", cnt);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected '(' before 'H'
    7 |   while H > 0{
      |         ^
      |         (
Language: C++

#include <iostream>

int main(void)
{
  int a,b;
  
  std::cin>> a >> b;
  std::cout << (a/b) + ((a%b == 0)?0:1) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   std::cout << (a/b) + ((a%b == 0)?0:1) << endl;
      |                                            ^~~~
      |                                            std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before ';' token
    7 |   ans=(h-10/a;
      |       ~      ^
      |              )
Language: C++

#include<iostream.h>
using namespace std;
int main()
{
  int h,a,ans;
  cin>>h>>a;
  ans=(H-1)/a;
  cout<<ans+1;
  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++

#include<iostream>
using namespace std;
 
int main(){
	int h,a;
  	cin>>h>>a;
	result = 1 + (h-1)/a;
  	cout<<result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'result' was not declared in this scope
    7 |         result = 1 + (h-1)/a;
      |         ^~~~~~
Language: C++

#include<iostream>
include namespace std;

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

Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include namespace std;
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:7:9: error: 'result' was not declared in this scope
    7 |         result = 1 + (h-1)/a;
      |         ^~~~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<result;
      |         ^~~~
      |         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;

int main()
{
	int h, a;
	cin >> h >> a;

	f(h%a == 0) cout << h/a << "\n";
	else cout << h/a + 1 << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'f' was not declared in this scope
   10 |         f(h%a == 0) cout << h/a << "\n";
      |         ^
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else cout << h/a + 1 << "\n";
      |         ^~~~
Language: Java

import java.util.Scanner;

public class DynamicArray {

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

	}

}

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

#include<iostream>
using namespace std;
int win(h,a)
{
  	int l=h;
    int cnt=0;
  	while(l>0)
    {
		l-=a;
    	cnt+=1;
    }
    return cnt;         
} 
void main()
{
int h,a,f;
cin>>h;
cin>>a;
f=win(h,a);
cout<<f;
}



Compiler output:
a.cc:3:9: error: 'h' was not declared in this scope
    3 | int win(h,a)
      |         ^
a.cc:3:11: error: 'a' was not declared in this scope
    3 | int win(h,a)
      |           ^
a.cc:3:12: error: expression list treated as compound expression in initializer [-fpermissive]
    3 | int win(h,a)
      |            ^
a.cc:14:1: error: '::main' must return 'int'
   14 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:19:6: error: 'win' cannot be used as a function
   19 | f=win(h,a);
      |   ~~~^~~~~
Language: C++

#include<iostream>
using namespace std;
int win(h,a)
{
  	l=h;
    cnt=0;
  	while(l>0)
    {
		l-=a;
    	cnt+=1;
    }
    return cnt;         
} 
void main()
{
cin>>h;
cin>>a;
f=win(h,a);
cout<<f;
getch();
}



Compiler output:
a.cc:3:9: error: 'h' was not declared in this scope
    3 | int win(h,a)
      |         ^
a.cc:3:11: error: 'a' was not declared in this scope
    3 | int win(h,a)
      |           ^
a.cc:3:12: error: expression list treated as compound expression in initializer [-fpermissive]
    3 | int win(h,a)
      |            ^
a.cc:14:1: error: '::main' must return 'int'
   14 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:6: error: 'h' was not declared in this scope
   16 | cin>>h;
      |      ^
a.cc:17:6: error: 'a' was not declared in this scope
   17 | cin>>a;
      |      ^
a.cc:18:1: error: 'f' was not declared in this scope
   18 | f=win(h,a);
      | ^
a.cc:18:6: error: 'win' cannot be used as a function
   18 | f=win(h,a);
      |   ~~~^~~~~
a.cc:20:1: error: 'getch' was not declared in this scope; did you mean 'getc'?
   20 | getch();
      | ^~~~~
      | getc