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

#include <bits/stdc++.h>

using namespace std;

 
int main() {
    int n,h;

    cin >> h >> n;
　if(h%n != 0){
     cout << h/n+1;
 }else{
     count << h/n;
}

    }


Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　if(h%n != 0){
      | ^
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000if' was not declared in this scope
   10 | 　if(h%n != 0){
      | ^~~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |  }else{
      |   ^~~~
a.cc:13:12: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   13 |      count << h/n;
      |      ~~~~~~^~~~~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<cmath>
#include<cstring>
#include<set>
#include<climits>
using namespace std;

#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define size(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll inc(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
llfor;///////////////////////////////////////////////////////////
int main(){
 ll h,n;
 sc(h);sc(n);
 pr(inc(h,n))
  
return 0;}

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

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

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


Compiler output:
a.cc:5:4: error: expected ';' before 'main'
    5 | int main() {
      |    ^~~~~
      |    ;
Language: Java

import java.util.Scanner;
public class Serval153A {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int hp = scan.nextInt();
		int attack = scan.nextInt();
		int re = 0;

		do {

			hp -= attack;
			re++;
		}while(hp > 0);

		System.out.println(re);
		scan.close();

	}

}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'vout' was not declared in this scope
   11 |     vout << a/b + 1 << endl;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '=' token
    9 |       H- = A;
      |          ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    int h,a;
    cin >> h >> a;
    int count=0
    while(true){
        if(h<=0) break;
        else{
            h-=a;
            count++;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected ',' or ';' before 'while'
   12 |     while(true){
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
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;
  }
}

  /*
  if (H % A == 0) {
    cout << H << endl;
  }
  else if (H <= A) {
    cout << "1" << endl;
  }
  else {
    cout << (H / A) + 1 << endl;
  }
  */
}


Compiler output:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n1) for(int i=0;i<n1;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define yesno(flg) if(flg){cout<<'YES'<<endl;}else{cout<<'NO'<<endl;}
#define vi vector<int>
#define pb push_back
#define i197 1000000007
#define MAX_N 200002
#define PI 3.141592653589793
using namespace std;

typedef long long ll;
typedef pair<int,int> Pii;
typedef pair<Pii,int> Piii;
typedef pair<int,ll> Pil;
typedef pair<ll,ll> Pll;
typedef pair<string,int> Psi;
typedef pair<Psi,int> Psii;

const ll inf=1000000007;
struct edge{
	int myc,to,c,cost;
};
struct pos{
	int to,cost,color;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

vector<Pii> v[100001];
ll dp2[300000][60]={};
int main() {
	int n;
	cin>>n;
	ll r=0;
	rep(i,n){
		int h,a;
		cin>>h>>a;
		int r=h/a;
		if(h%a>0)r++;
		printf("%d",r);
	return 0;
}


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

#include <stdio.h>

int main()
{
	int monsterHP, attacksDone, specialAttack;
	int attackPower = 0;
	scanf("%d %d", &monsterHP, &attacksDone);

	// Reads from input specialAttack
	for (int i = 0; i < attacksDone; i++)
	{
		scanf("%d", &specialAttack);
		// Adds 'power' of specialAttacks to basic attackPower of the monster
		attackPower += specialAttack;
	}

	if (attackPower >= monsterHP)
	{
		printf_s("Yes\n");
	}
	else
	{
		printf_s("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   19 |                 printf_s("Yes\n");
      |                 ^~~~~~~~
      |                 printf
Language: C

#include <stdio.h>

int main()
{
	int monsterHealth, attackPower, attacksAmount, isKilled;
	scanf("%d %d", &monsterHealth, &attackPower);

	// Counts how many attacks will take whole HP of the monster
	attacksAmount = monsterHealth / attackPower;

	// Checks if attacks where enough to kill monster, if not then adds one more attack
	isKilled = attacksAmount * attackPower >= monsterHealth;
	if (!isKilled)
	{
		attacksAmount++;
	}

	printf_s("%d \n", attacksAmount);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:9: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |         printf_s("%d \n", attacksAmount);
      |         ^~~~~~~~
      |         printf
Language: C++

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

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


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

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '==' token
    6 |   if(a%b)==0{
      |          ^~
Language: C++

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

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

    int answer = (q+a-1) / a;

    cout << answer << endl;
}

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incliude; did you mean #include?
    1 | #incliude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #incliude <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (H+A-1) / A;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'ans'
   11 |     if ans%a==0{
      |        ^~~
      |        (
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else{
      |     ^~~~
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'ans'
   11 |     if ans%a==0{
      |        ^~~
      |        (
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else{
      |     ^~~~
Language: C++

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

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

    return 0;
}

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

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

int main() {
 int A; int B; cin>>A>>B;
  int W=0;
  while(H>0){
    W++;
    H-=A;
  }
  cout<<W<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'H' was not declared in this scope
    8 |   while(H>0){
      |         ^
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();

   for(int i=0;;i++){
    H=H-A;
     if(H<=0){
     break;
       System.out.println(i);
     }
   }
   
 }
}


Compiler output:
Main.java:13: error: unreachable statement
       System.out.println(i);
       ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int H = sc.nextInt();
   int A = sc.nextInt();

   for(int i=0;;i++){
    H=H-A;
     if(H<=0){
     berak;
       System.out.println(i);
     }
   }
   
 }
}

Compiler output:
Main.java:12: error: not a statement
     berak;
     ^
1 error
Language: C++

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

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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before '>=' token
    6 |   for(int i=0,i>=0;i++){
      |                ^~
      |                ;
a.cc:6:16: error: expected primary-expression before '>=' token
    6 |   for(int i=0,i>=0;i++){
      |                ^~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'cout'
   12 |     }while(h>0)
      |                ^
      |                ;
   13 | 
   14 |     cout<<cnt<<endl;
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int H, A,i=0;
      |   ^~~
a.cc:6:9: error: 'H' was not declared in this scope
    6 |   cin >>H >> A;
      |         ^
a.cc:6:14: error: 'A' was not declared in this scope
    6 |   cin >>H >> A;
      |              ^
a.cc:9:3: error: 'i' was not declared in this scope
    9 |   i++;
      |   ^
a.cc:13:11: error: 'i' was not declared in this scope
   13 |   cout << i << endl;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int H, A,i=0;
      | ^~~
a.cc:7:3: error: 'H' was not declared in this scope
    7 |   H=H-A;
      |   ^
a.cc:7:7: error: 'A' was not declared in this scope
    7 |   H=H-A;
      |       ^
a.cc:8:3: error: 'i' was not declared in this scope
    8 |   i++;
      |   ^
a.cc:12:11: error: 'i' was not declared in this scope
   12 |   cout << i << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'retu' was not declared in this scope
   17 |     retu
      |     ^~~~
a.cc:17:9: error: expected '}' at end of input
   17 |     retu
      |         ^
a.cc:9:11: note: to match this '{'
    9 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
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:22:7: error: lvalue required as left operand of assignment
   22 |   if(H%A=0){
      |      ~^~
Language: C

#include<stdio.h>
int main()
  { 
    int H,A,s,i;
    scanf"%d %d",&H,&A);
    s=H-A;
    while(s>0)
      { 
       for(i=1;s>0;i++)
        { 
          s=H-i*A;
          count++;
         } 
      } 
  if(H-A<=0)
    printf("-1");
  return 0;
  }
    
      
  

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected ';' before string constant
    5 |     scanf"%d %d",&H,&A);
      |          ^~~~~~~
      |          ;
main.c:5:23: error: expected statement before ')' token
    5 |     scanf"%d %d",&H,&A);
      |                       ^
main.c:12:11: error: 'count' undeclared (first use in this function)
   12 |           count++;
      |           ^~~~~
main.c:12:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h.
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:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h.
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h.: No such file or directory
    1 | #include <bits/stdc++.h.
      |          ^
compilation terminated.
Language: Java

import java.util.Arrays;
 
public class Main {
	
	public static void main(String[] args) {
		
		java.util.Scanner scan = new java.util.Scanner(System.in);
 
		if(K >= N ) {
			System.out.println(0);
		} 
		
		int N = scan.nextInt();
		int K = scan.nextInt();
		long[] H = new long[N];
		long sum = 0;
		
		for (int i = 0; i < N; i++) {
			H[i] = scan.nextLong();
		}
		
		Arrays.sort(H);
		
		
		for(int i =N-1; K>0  ; i--) {
			H[i] = 0;
			K--;
		}
	
		for(long h : H) {
			sum += h;
		}
	
			System.out.println(sum);
	
	}
}


Compiler output:
Main.java:9: error: cannot find symbol
		if(K >= N ) {
		   ^
  symbol:   variable K
  location: class Main
Main.java:9: error: cannot find symbol
		if(K >= N ) {
		        ^
  symbol:   variable N
  location: class Main
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before ')' token
    8 |   else if( )
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before ')' token
    8 |   else if()
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: lvalue required as left operand of assignment
    6 |   if(H % A = 0)
      |      ~~^~~
a.cc:9:5: error: expected '(' before 'cout'
    9 |     cout << H / A + 1 << endl;
      |     ^~~~
      |     (
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |   for ( i = 0; ; i++){
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before ';' token
    7 |   while (; ; i ++){
      |          ^
a.cc:7:10: error: expected ')' before ';' token
    7 |   while (; ; i ++){
      |         ~^
      |          )
a.cc:7:18: error: expected ';' before ')' token
    7 |   while (; ; i ++){
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'i' was not declared in this scope
   10 |     cout << i << endl;
      |             ^
a.cc:11:5: error: break statement not within loop or switch
   11 |     break;
      |     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if (d >= H)
      |     ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'while'
    8 |   while(h>0){
      |   ^~~~~
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;
  }
  cout << i+1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'i' was not declared in this scope
   10 |   cout << i+1 << 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
  }
  cout << i+1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before '}' token
    8 |     h -=a
      |          ^
      |          ;
    9 |   }
      |   ~       
a.cc:10:11: error: 'i' was not declared in this scope
   10 |   cout << i+1 << endl;
      |           ^
Language: C

H,A = map(int,input().split())

print(int((H - H % A)/A + 1))

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | H,A = map(int,input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'H' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'A' [-Wimplicit-int]
    1 | H,A = map(int,input().split())
      |   ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | H,A = map(int,input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | H,A = map(int,input().split())
      |           ^~~
main.c:3:1: error: expected ',' or ';' before 'print'
    3 | print(int((H - H % A)/A + 1))
      | ^~~~~
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int n = sc.nextInt();
        int[] a = new int[n];

        for(int i = 0;i<n;i++){
            a[i] = sc.next();
        }


        if((a[0]+a[1]+a[2]+a[3]+a[4])>=h){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }
}


Compiler output:
Main.java:10: error: incompatible types: String cannot be converted to int
            a[i] = sc.next();
                          ^
1 error
Language: Java

import java.util.*;
public class MyClass {
    public static void main(String args[]) {
    Scanner sc  = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int count  =0;
    for(int i=0;i<=a;i=i+b){
        count++;
         
        
    }
    System.out.println(count);
    }
}

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower

using namespace std;
using ll = long long;

#define rep(i,N) for(int i=0;i<(int)N;++i)

int main() {
	double H, A;
	cin >> H >> A;

	cout << ceil(H/A) << endl;
}

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

#include<iostream>


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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     std::cout<<H/A<<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)
      |     ^~~~
a.cc:11:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     std::cout<<H/A+1<<endl;
      |                       ^~~~
      |                       std::endl
/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(){
	int h , a; cin >> h >> a;
  	if(h%a==0) {cout << h/a << endl;}
  	else cout << h/a + 1 << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         int h , a; 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:5:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |         if(h%a==0) {cout << h/a << 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:5:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |         if(h%a==0) {cout << h/a << 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:6:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         else cout << h/a + 1 << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         else cout << h/a + 1 << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:8:8: error: extended character 　 is not valid in an identifier
    8 |   ans =　(h + a -1)/a;
      |        ^
a.cc: In function 'int main()':
a.cc:8:8: error: '\U00003000' was not declared in this scope
    8 |   ans =　(h + a -1)/a;
      |        ^~
Language: C++

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

Compiler output:
a.cc:7:12: error: extended character 　 is not valid in an identifier
    7 |   int ans =　(h + a -1)/a;
      |            ^
a.cc: In function 'int main()':
a.cc:7:12: error: '\U00003000' was not declared in this scope
    7 |   int ans =　(h + a -1)/a;
      |            ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected initializer before '==' token
    7 |   int ans == (h + a -1)/a;
      |           ^~
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include<bits/stdc++.h>


int main(){
  int h,n;
  cin>>h>>n;
  vector<int> arr;
  for(int i=0;i<n;i++){
   int m;
   cin>>m;
   arr.push_back(m); 
  }
  int sum=0;
  for(auto x:arr){
  sum+=x;
  }
  if(sum<h){
  cout<<Yes;
    return 0;
  }
  else{
  cout<<No;
    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>>n;
      |   ^~~
      |   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: 'vector' was not declared in this scope
    7 |   vector<int> arr;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> arr;
      |          ^~~
a.cc:11:4: error: 'arr' was not declared in this scope
   11 |    arr.push_back(m);
      |    ^~~
a.cc:14:14: error: 'arr' was not declared in this scope
   14 |   for(auto x:arr){
      |              ^~~
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout<<Yes;
      |   ^~~~
      |   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:9: error: 'Yes' was not declared in this scope
   18 |   cout<<Yes;
      |         ^~~
a.cc:22:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |   cout<<No;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:9: error: 'No' was not declared in this scope
   22 |   cout<<No;
      |         ^~
Language: C++

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

int main {
  int a,b;
  
  cin >> a >> b;
    
  cout << a % b << endl;
  return 0;
}
  


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> a >> b;
      |   ^~~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout << a % b << endl;
      |   ^~~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main () {
  int a,b;
  
  cin >> a >> b
    
  cout << a % b << endl;
  return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected ';' before 'cout'
    7 |   cin >> a >> b
      |                ^
      |                ;
    8 | 
    9 |   cout << a % b << endl;
      |   ~~~~
Language: C++

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

int main {
  int a,b;
  
  cin >> a >> b
    
  cout << a % b << endl;
  return 0;
}
  

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> a >> b
      |   ^~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

h, a = map(int, input().split())
count = 0
if h<=a:
    count = 1
elif h%a == 0:
    count = int(h/a)
else:
    count = int(h/a) + 1

print(count)

Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h, a = map(int, input().split())
      | ^
Language: C++

h, a = map(int, input().split())
count = 0
if h<=a:
    count = 1
elif h%a == 0:
    count = h/a
else:
    count = int(h/a) + 1

print(count)

Compiler output:
a.cc:1:1: error: 'h' does not name a type
    1 | h, a = map(int, input().split())
      | ^
Language: C++

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

int main(){
  int HP,AP;
  cin >> HP >> AP;
  int ans=0;
  for(int i=0; ; i++){
    HP = HP - AP;
    ans++; 
    if(HP <= 0)break;
  }
  cout << ans << endl;
}

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

#include<iostream>
#include<cstdio>
using namespace std;
int mian()
{
	int h,a,ans;
	cin>>h>>a;
	if(h%a!=0)
	{
		cout<<h/a+1;
	}
	else{
		cout<<h/a;
	}
	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<cstdio>
using namespace std;
int mian()
{
	int h,a,ans;
	cin>>h>>a;
	if(h%a!=0)
	{
		ans=h/a+1;
	}
	else{
		ans=h/a;
	}
	cout<<ans;
	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<bits/stdc++.h>
using namespace std;
#define int long long

int32_t main()
{
	int h,a;
	cin>>h>>a;
	int count = 0;
	while(h>0)
	{
		h-=a;
		count++
	}
	
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:14:24: error: expected ';' before '}' token
   14 |                 count++
      |                        ^
      |                        ;
   15 |         }
      |         ~
Language: C++

#include<stdio.h>
int main(void)
{
  	int h,a,cnt;
  int i;
  scanf("%d %d",h,a);
  cnt=0;
  for(i=0;i<100,i++){
    if(h<=0){
      break;
    }
    else{
      cnt++;
    }
    h=h/a;
  }
  printf("%d",cnt);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before ')' token
    8 |   for(i=0;i<100,i++){
      |                    ^
      |                    ;
Language: C++

#include<stdio.h>
int main(void)
{
  int h,a,cnt;
  int i;
  scanf("%d %d %d",h,a,cnt);
  cnt=0;
  for(i=0;i<h,i++){
    if(h<=0){
      break;
    }
    else{
      cnt++;
    }
  }
  printf("%d",cnt);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ')' token
    8 |   for(i=0;i<h,i++){
      |                  ^
      |                  ;
Language: Java

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


Compiler output:
Main.java:7: error: ';' expected
    int ans = 0
               ^
1 error
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<queue>
using namespace std;

int main(){
    int h,a,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:11:16: error: expected primary-expression before ')' token
   11 |     if(h%a!=0||){
      |                ^
Language: C++

#include <iostream>
#include <set>
#include <map>
#include <string>
#include <math.h>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <bitset>
#include <string.h>

using namespace std;

// #define for(i,a,b) for (int i=(a);i<(b);++i)
typedef long long ll;
typedef pair<ll,ll> P;
#define REP(i,n) for(long long i = 0; i < (long long)(n); i++)
#define pb push_back // vectorに要素追加
#define INF (ll)1e18

ll mod = 1e9+7;
  
// 検索タグ
int main() {
	// 入力
	ll H,A;cin>>H>>A;

	// 解法
	ll ans = H/A;
	if (H%A!=-) ans++;

	//出力
	printf("%lld\n", ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:19: error: expected primary-expression before ')' token
   31 |         if (H%A!=-) ans++;
      |                   ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: lvalue required as left operand of assignment
    6 | if(a%b=0)  printf("%ld",a/b);
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:7: error: lvalue required as left operand of assignment
    6 | if(a%b=0)  printf("%ld",a/b+1);
      |       ^
Language: C++

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

int mian(){
  int H, A;
  cin >> H >> A;
  if(H % A == 0){
    cout << H / A << endl;
    return 0;
  }
  else{
    cout << H / A + 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<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n)for(int i=0;i<n;i++)

const ll INF = 1001001001;


int main(){
  int h,a;
  cin>>h>>a;
  int ans = h/a;
  if(h%a==0){
    cout<<ans<<ensl;
  }else{
    ans++;
    cout<<ans<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'ensl' was not declared in this scope
   14 |     cout<<ans<<ensl;
      |                ^~~~
Language: C++

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

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

#include <stdio.h>

int main(void)
{

        int a,h,x;

        scanf("%d",&h);
        scanf("%d",&a);
        x=h/a;
        y=x+1;
        if(!h%a) printf("%d\n",x);
        else     printf("%d\n",y);
        return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'y' was not declared in this scope
   11 |         y=x+1;
      |         ^
Language: C++

#include <stdio.h>

int main(void)
{

        int a,h,x;

        scanf("%d",&h);
        scanf("%d",&a);
        x=h/a;
        y=x+1
        if(!h%a) printf("%d\n",x);
        else     printf("%d\n",y);
        return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'y' was not declared in this scope
   11 |         y=x+1
      |         ^
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else     printf("%d\n",y);
      |         ^~~~
Language: C++

#include <stdio.h>

int main(void)
{

        double a,h,x;

        scanf("%d",&h);
        scanf("%d",&a);
        x=h/a;
        if(!h%a) printf("%d\n",x);
        else     printf("%d\n",x+1);
        return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: invalid operands of types 'bool' and 'double' to binary 'operator%'
   11 |         if(!h%a) printf("%d\n",x);
      |            ~~^~
      |            |  |
      |            |  double
      |            bool
Language: C++

#include <stdio.h>

int main(void)
{
   int h,a,i;

   scanf("%d%d",&h,&a);

   h/a=i;
   if(h%a!=0) i++;

   printf("%d\n",i);

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |    h/a=i;
      |    ~^~
Language: C

#include <stdio.h>

int main(void)
{
    int H,A,a,i;

    scanf("%d%d",&H,&A);

    h=H/A;
    if(H%A>=1) h=h+1;

    printf("%d",h);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'h' undeclared (first use in this function)
    9 |     h=H/A;
      |     ^
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <stdio.h>

int main(void)
{
   int h,a,i;

   scanf("%d%d",&h,&a);

   h/a=i;
   if(h%a=!0) i++;

   printf("%d\n",i);

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 |    h/a=i;
      |    ~^~
a.cc:10:8: error: lvalue required as left operand of assignment
   10 |    if(h%a=!0) i++;
      |       ~^~
Language: C

include <stdio.h>

int main(void)
{
    int H,A,a,i;

    scanf("%d%d",&H,&A);

    for(i=1;0<H;i++)
       a=H-i*A;

    printf("%d",i);

    return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include<stdio.h>

int main(void)
{

   int H,A,a;

   scanf("%d%d", &H, &A);
   for (i=0; H<=0;i++){
      H=H-A;
      a++;
   }

}
~    

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'i' undeclared (first use in this function)
    9 |    for (i=0; H<=0;i++){
      |         ^
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:15:1: error: expected identifier or '(' before '~' token
   15 | ~
      | ^
Language: C++


using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int A,B;
  cin>>A>>B;
  ans=A/B;
  if(ans*B==A)
    cout<<ans<<endl;
  else
    cout<<ans+1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   36 |   ans=A/B;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int H, A, a;

  cin >> H >> A;
  
  while(N > 0){
  H = H - A;
  a++;
  }
  
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'N' was not declared in this scope
    9 |   while(N > 0){
      |         ^
Language: C++

#include<iostream>
#include<conio.h>
using namespace std;

int main()
{
    int h,a;
    cin>>h>>a;
    if(h/a==0)
        cout<<h/a;
    else
        cout<<h/a+1;
    getch();

}


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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <limits>
#include <numeric>
#include <type_traits>

using namespace std;
using ll = long long int;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<vvll> vvvll;

ll factor(int n){
    ll ret=1;
    for(int i=2;i<=n;i++) ret*=i;
    return ret;
}

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


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

int n[1000000]
int main(){
	int H, n;
	cin >> h >> n;
	for ( int i = 0; i < 100000; i ++1){
    	cin >> int A;
    }
}

Compiler output:
a.cc:2:1: error: expected initializer before 'int'
    2 | int main(){
      | ^~~
Language: C++

#include <iostream>
using namespace std;

int A[100000]

int main()
{
	int h, n;
	cin >> h >> n;
	for (int i = 0;i < n; ++i)
	{
		cin >> A[i];
	}
	for (int i = 0;i < n; ++i)
	{
		h = h - A[i]
	}
	if (h > 0)
	cout << "No";
	else
	cout << "Yes";
}

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main()
      | ^~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int h, n;
	cin >> h >> n;
	for (int i = 0;i < n; ++i)
	{
		cin >> A[i];
	}
	for (int i = 0;i < n; ++i)
	{
		h = h - A[i];
	}
	if (h > 0)
	cout << "No";
	else
	cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'A' was not declared in this scope
   10 |                 cin >> A[i];
      |                        ^
a.cc:14:25: error: 'A' was not declared in this scope
   14 |                 h = h - A[i];
      |                         ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int h, n;
	cin >> h >> n;
	for (int i = 0;i < n; ++i)
	{
		cin >> A[i];
	}
	for (int i = 0;i < n; ++i)
	{
		h = h - A[i]
	}
	if (h > 0)
	cout << "No";
	else
	cout << "Yes";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'A' was not declared in this scope
   10 |                 cin >> A[i];
      |                        ^
a.cc:14:25: error: 'A' was not declared in this scope
   14 |                 h = h - A[i]
      |                         ^
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^