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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '<' token
    8 |         if(h - a * i =< 0 ){
      |                       ^
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
#define int long long
int32_t main() 
{ 
	int h,n;
	cin>>h>>n;
	cout<<(h+n-1)/n;
	return 0;
	int h,n;
	cin>>h>>n;
	int s=0;
	while(n--){
		int t;
		cin>>t;
		s+=t;
	}
	if(s>=h)
		cout<<"Yes";
	else
		cout<<"No";
} 


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:10:13: error: redeclaration of 'long long int h'
   10 |         int h,n;
      |             ^
a.cc:6:13: note: 'long long int h' previously declared here
    6 |         int h,n;
      |             ^
a.cc:10:15: error: redeclaration of 'long long int n'
   10 |         int h,n;
      |               ^
a.cc:6:15: note: 'long long int n' previously declared here
    6 |         int h,n;
      |               ^
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
#define int long long
int32_t main() 
{ 
	int h,n;
	cin>>h>>n;
	cout<<(h+n-1)/n;
	return 0;
	int a[n],b[n];
	for(int i=0;i<n;++i)
		cin>>a[i]>>b[i];
	cost[h+1];
	for(int i=0;i<=h;++i)
		cost[i]=1e9;
	cost[0]=0;
	for(int i=0;i<n;++i){
		for(int j=1;j<=h;++j){
			if(j<a[i]){
				cost[j]=min(cost[j],b[i]);
			}else{
				cost[j]=min(cost[j-a[i]]+b[i],cost[j]);
			}
		}
	}
	return 0; 
} 


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:9: error: 'cost' was not declared in this scope; did you mean 'cosl'?
   13 |         cost[h+1];
      |         ^~~~
      |         cosl
Language: C++

import math

h, n = map(int,input().split())
ans = math.ceil(h // n)
if h % n:
    ans += 1
print(ans)

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before '}' token
    7 |   cout << (H + A - 1)/A
      |                        ^
      |                        ;
    8 | }
      | ~
Language: Java

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

		Scanner sc = new Scanner(System.in);

		int H = sc.nextInt();
		int A = sc.nextInt();
		int cnt = 0;
		
		while (H >= 0) {
			if (H - A >= 0) {
				cnt++;
			}
		}
		
		System.out.println(cnt);

		

	}
}

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'count' was not declared in this scope; did you mean 'cnt'?
   13 |   count<<cnt;
      |   ^~~~~
      |   cnt
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected ';' before '}' token
   18 |                 sum += a[i]
      |                            ^
      |                            ;
   19 |         }
      |         ~
Language: Java


import java.util.Scanner;


public class main {

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


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

#include<bits/stdc++.h>
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define PI 3.141592653589793238462643383279502884L
#define make_unique(vec) vec.resize(distance(vec.begin(),unique(vec.begin(),vec.end())))
#define Sort(vec) sort(vec.begin(),vec.end())
#define RSort(vec) sort(vec.rbegin(),vec.rend())
#define endl "\n"
#define tr1(i) cout<<i<<endl;
#define tr2(i,j) cout<<i<<" "<<j<<endl;
#define tr3(i,j,k) cout<<i<<" "<<j<<" "<<k<<endl;
#define vvi vector<vector<int> > 
#define vvl vector<vector<ll> >
#define all(st) st.begin(),st.end()
#define vpl vector<pair<ll,ll> >
#define vpi vector<pair<int,int> >
#define pi pair<int,int>
#define pl pair<ll,ll>
#define al vector<list<int> >
#define vs vector<string>
#define vi vector<int>
#define vb vector<bool>
#define vl vector<ll>
#define vc vector<char>
#define rep(i,l,r) for(int i=l;i<r;i++)
#define repit(st) for(auto it=st.begin();it!=st.end();it++)
#define ull unsigned long long int
#define eb emplace_back
#define pb push_back
#define ll long long int
#define minf -(1e18)
#define inf 1e18
#define f first
#define se second
#define mod 1000000007
#define mx 500001
using namespace std;
ll mi(ll n,ll m){ll pw=n;ll ex=m-2;ll ans=1;while(ex){if(ex&1) ans = ans*pw%m;pw = pw*pw%m;ex>>=1;}return ans;}
ll pw(ll a,ll n){ll pw=a;ll ex=n;ll ans=1;while(ex){if(ex&1) ans = ans*pw;pw = pw*pw;ex>>=1;}return ans;}
template<typename T>istream &operator>>(istream &is, vector<T> &v) { for (T &t : v) is >> t; return is; }
template<typename T>ostream &operator<<(ostream &os, const vector<T> &v) { for (const T &t : v) {os << t <<" ";} os << '\n'; return os; }
void show(ll x){cout<<x<<" ";}
ll gcd(ll a,ll b){return b==0?a:gcd(b,a%b);}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
ll max(ll a,ll b){return a>b?a:b;}
ll min(ll a,ll b){return a<b?a:b;}
ll Abs(ll x){return x>0?x:(-x);}
ll Ceil(ll a,ll b){return a/b+(a%b!=0);}
#define bs binary_search
#define lb lower_bound
#define mkp make_pair
//#define d double
void solve(){
ll h,n;
cin>>h>>n;
cout<<Ceil(h/n);

}
int32_t main(){
FIO;
int t=1;
//cin>>t;
while(t--){
	solve();
}
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:55:11: error: too few arguments to function 'long long int Ceil(long long int, long long int)'
   55 | cout<<Ceil(h/n);
      |       ~~~~^~~~~
a.cc:47:4: note: declared here
   47 | ll Ceil(ll a,ll b){return a/b+(a%b!=0);}
      |    ^~~~
Language: C

main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:31: error: implicit declaration of function 'prinrf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);prinrf("%d\n",(a+b-1)/b);}
      |                               ^~~~~~
Language: Java

import java.util.*;

 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String H = sc.nextLine();
        String A = sc.nextLine();
        
        int cnt;
        int health = H
        
        for(int i = 0,i>=10001,i++){
        
      　  health = health - A
        
        　  if (health =< 0) {
              　  break;
            }
        }
        System.out.println(i);
    }

Compiler output:
Main.java:13: error: illegal character: '\u3000'
      ?  health = health - A
      ^
Main.java:15: error: illegal character: '\u3000'
        ?  if (health =< 0) {
        ^
Main.java:15: error: not a statement
        ?  if (health =< 0) {
                         ^
Main.java:16: error: illegal character: '\u3000'
              ?  break;
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
 public static void main(String[] args) {
               ^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: ';' expected
        for(int i = 0,i>=10001,i++){
                       ^
Main.java:11: error: ';' expected
        for(int i = 0,i>=10001,i++){
                              ^
Main.java:13: error: ';' expected
      ?  health = health - A
                            ^
Main.java:15: error: ';' expected
        ?  if (health =< 0) {
                          ^
9 errors
Language: C

#include<stdio.h>
int main(void){  
  int H,A,i;
  
  if (H%A == 0) c = H/A;
  else c = H/A + 1;
  printf("%d",c);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'c' undeclared (first use in this function)
    5 |   if (H%A == 0) c = H/A;
      |                 ^
main.c:5:17: 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, C;
 
  cin >> H >> A ;
  
  C = H / A;
  
  #cout << H << endl;
  #cout << A << endl;
  cout << C << endl;
}

Compiler output:
a.cc:12:4: error: invalid preprocessing directive #cout
   12 |   #cout << H << endl;
      |    ^~~~
a.cc:13:4: error: invalid preprocessing directive #cout
   13 |   #cout << A << endl;
      |    ^~~~
Language: C

#include<stdio.h>
int main(void){  
  int H,A,i;
  c = H/A + 1;
  printf("%d",c);
  
  return 0;
}

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

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

void main(){
  float a, b;
  int c;
  scanf("%f %f", &a, &b);
  c=Math.ceil(a/b);
  printf("%d", c);
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'Math' undeclared (first use in this function)
    8 |   c=Math.ceil(a/b);
      |     ^~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

void main(){
  float a, b;
  int c;
  scanf("%d %d", &a, &b);
  c=Math.ceil(a/b);
  printf("%d", c);
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'Math' undeclared (first use in this function)
    8 |   c=Math.ceil(a/b);
      |     ^~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

void main(){
  float a, b;
  int c;
  scanf("%d %d", &a, &b);
  c=Math.ceil(a/b);
  printf("%d", c);
}

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

#include<stdio.h>
int main(void){
  
  int H,A,i,c,d;
  
  scanf("%d %d",&H,&A);
  for(i = 0; H <= 0; i++){
    H = H - B;
  }
  printf("%d",i);
  
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'B' undeclared (first use in this function)
    8 |     H = H - B;
      |             ^
main.c:8:13: 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 N,K;
  cin>>N>>K;
  if(N<=K){
    cout<<N<<endl;
  }
  vector<int> H(N);
  else{
    for(int i=0;i<N;i++){
      cin>>H.at(i);
    }
      sort(H.begin(),H.end());
    int a =0;
    for(int i=0;i<N-K;i++){
      for(int j=0;j<H.size();j++){
      H.at(i)--;
      a++;
      if(H.at(i)==0){
        break;
      }
    }
      cout<<a+K<<endl;
  }
  return 0;
}
      
      
      
      
      
      
      
      


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{
      |   ^~~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++


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


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

#include<stdio.h>

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

while(0)
{
  H = H - A;
  i = i + 1;
  if(H <= 0)
  {
  break();
  }
}

printf("%d", i);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:8: error: expected ';' before '(' token
   13 |   break();
      |        ^
      |        ;
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 count = sc.nextInt();
    for(int i=0 ,i<count,i++){sum = sum +sc.nextInt();};
    if (sum<H){
      System.out.println( "No" );}
    else { 
      System.out.println( "Yes" );};
  }
}
    

Compiler output:
Main.java:8: error: ';' expected
    for(int i=0 ,i<count,i++){sum = sum +sc.nextInt();};
                  ^
Main.java:8: error: > or ',' expected
    for(int i=0 ,i<count,i++){sum = sum +sc.nextInt();};
                          ^
Main.java:8: error: illegal start of expression
    for(int i=0 ,i<count,i++){sum = sum +sc.nextInt();};
                            ^
3 errors
Language: C++

#include <iostream> 
#include <cmath>
#include <iomanip>
#include<stdio.h>
using namespace std; 
int main()
{
  int H,K,h[200000],n,sum,sum1,t,i,j,temp;
  cin>>n>>K;
  sum=0;
  for(i=0;i<n;i++)
  {
    cin>>h[i];
    sum=sum+h[i]
  }
  if(K>=n)
    cout<<"0";
  else if(K==0)
    cout<<sum;
  else 
    for(i=0;i<=n;i++)
 	{
 	for(j=0;j<=n-i;j++)
 		{
 			if(h[j]>h[j+1])
 				{
 					temp=h[j];
 					h[j]=h[j+1];
 					h[j+1]=temp;
 				}
 		}
	}
    t=n-K+1;
  	for(i=n;i>t;i--)
    {
      sum1=sum1+h[i];
    }
    cout<<sum1;
}  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |     sum=sum+h[i]
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

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


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

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

const ll ts = 100005;

#define IOS  ios::sync_with_stdio(0); cin.tie(0);
#define endl "\n"

signed main() {

    IOS;
    int h , a; cin >> h >> a;
    int x = h / a; 
    h = h % a; 
    x = x + (h != 0);
    cout << x; 1 10000
    
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: expected ';' before numeric constant
   19 |     cout << x; 1 10000
      |                 ^~~~~~
      |                 ;
Language: C++

#include <iostream> 
#include <cmath>
#include <iomanip>
#include<stdio.h>
using namespace std; 
int main()
{
  int H,K,h[200000],n,sum,sum1,t,i,j;
  cin>>n>>K;
  sum=0;
  for(i=0;i<n;i++)
  {
    cin>>h[i];
    sum=sum+h[i]
  }
  if(K>=n)
    cout<<"0";
  else if(K==0)
    cout<<sum;
  else 
    for(i=0;i<=n;i++)
 	{
 	for(j=0;j<=n-i;j++)
 		{
 			if(h[j]>h[j+1])
 				{
 					temp=h[j];
 					h[j]=h[j+1];
 					h[j+1]=temp;
 				}
 		}
	}
    t=n-K+1;
  	for(i=n;i>t;i--)
    {
      sum1=sum1+h[i];
    }
    cout<<sum1;
  return 0;
}  
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |     sum=sum+h[i]
      |                 ^
      |                 ;
   15 |   }
      |   ~              
a.cc:27:41: error: 'temp' was not declared in this scope; did you mean 'tm'?
   27 |                                         temp=h[j];
      |                                         ^~~~
      |                                         tm
Language: C++

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

int main(){
  int hitpoint=0;
  int attackpoint=0;
  int count=0;
  cin>> hitpoint >> attackpoint;

  for(int i=0;i<10000;i++){
  if(hitpoint > 0){
    hitpoint=hitpoint-attackpoint;
    count++;
  }
  else if(hitpoint =< 0){
   break;
  }
  }
  cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected primary-expression before '<' token
   15 |   else if(hitpoint =< 0){
      |                     ^
Language: C++

#include <iostream>

using namespace std;


int main()
{
    

    int H;
    int A;

    cin >> H >> A;

    double kasu = H*1.0/(A*1.0);


    if ((int)kasu < kasu){


        return (int)kasu + 1;
    }
    else if{


        return kasu;



    }



}

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

#include <iostream>

using namespace std;


int main()
{
    

    int H;
    int A;

    cin >> H >> A;

    double kasu = H*1.0/(A*1.0);


    if ((int)kasu < kasu){


        return int(kasu) + 1;
    }
    else if{


        return int(kasu);



    }



}

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

#include <iostream>

using namespace std;


int main()
{
    

    int H;
    int A;

    cin >> H >> A;

    double kasu = H*1.0/(A*1.0);


    if ((int)kasu < kasu){


        return int(kasu) + 1;
    }
    else if{


        return kasu;



    }



}

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

include<iostream>
using namespace std;
int main()
{
  int H,A,s,count;
  cin>>H>>A;
  count=0;
  while(s==0||s==-1)
  {
    s=H-A;
    count++;
  }
  cout<<count;
  return 0;
}
  

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>H>>A;
      |   ^~~
a.cc:13:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   13 |   cout<<count;
      |   ^~~~
      |   count
Language: C++

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

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

clude<iostream>
using namespace std;
int main(void){
  int n;
  int k;
  cin>>n;
  cin>>k;
  int count=n-k;
  int h[n];
  for(int i=0;i<n;i++){
    cin>>h[i];
     }
  for(int i=0;i<n;i++){
for(int j=i+1;j<n;j++){
  int tmp;
 if (h[i] > h[j]) {
 
        tmp =  h[i];
        h[i] = h[j];
        h[j] = tmp;
}
}
  }
  if(count<=0){cout<<count<<endl;}
 else{int a=0;
   for(int i=0;i<n-k;i++){
    a+=h[i];
   }
      cout<<a<<endl;
 }
  return 0;
    
}
#include<iostream>
using namespace std;
int main(void){
  int n;
  int k;
  cin>>n;
  cin>>k;
  int count=n-k;
  int h[n];
  for(int i=0;i<n;i++){
    cin>>h[i];
     }
  for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
  int tmp;
 if (h[i] > h[j]) {

        tmp =  h[i];
        h[i] = h[j];
        h[j] = tmp;
}
}
  }
  if(count<=0){cout<<count<<endl;}
 else{int a=0;
   for(int i=0;i<n-k;i++){
    a+=h[i];
   }
      cout<<a<<endl;
 }
  return 0;
    
}


Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<iostream>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n;
      |   ^~~
a.cc:24:16: error: 'cout' was not declared in this scope; did you mean 'count'?
   24 |   if(count<=0){cout<<count<<endl;}
      |                ^~~~
      |                count
a.cc:24:29: error: 'endl' was not declared in this scope
   24 |   if(count<=0){cout<<count<<endl;}
      |                             ^~~~
a.cc:29:7: error: 'cout' was not declared in this scope; did you mean 'count'?
   29 |       cout<<a<<endl;
      |       ^~~~
      |       count
a.cc:29:16: error: 'endl' was not declared in this scope
   29 |       cout<<a<<endl;
      |                ^~~~
a.cc: At global scope:
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(void){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int n;
  int k;
  cin>>n;
  cin>>k;
  int count=n-k;
  int h[n];
  for(int i=0;i<n;i++){
    cin>>h[i];
     }
  for(int i=0;i<n;i++){
for(int j=i+1;j<n;j++){
  int tmp;
 if (h[i] > h[j]) {
 
        tmp =  h[i];
        h[i] = h[j];
        h[j] = tmp;
}
}
  }
  if(count<=0){cout<<count<<endl;}
 else{int a=0;
   for(int i=0;i<n-k;i++){
    a+=h[i];
   }
      cout<<a<<endl;
 }
  return 0;
    
}
#include<iostream>
using namespace std;
int main(void){
  int n;
  int k;
  cin>>n;
  cin>>k;
  int count=n-k;
  int h[n];
  for(int i=0;i<n;i++){
    cin>>h[i];
     }
  for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
  int tmp;
 if (h[i] > h[j]) {

        tmp =  h[i];
        h[i] = h[j];
        h[j] = tmp;
}
}
  }
  if(count<=0){cout<<count<<endl;}
 else{int a=0;
   for(int i=0;i<n-k;i++){
    a+=h[i];
   }
      cout<<a<<endl;
 }
  return 0;
    
}
提出情報
提出日時	2020-01-26 22:17:17
問題	C - Fennec vs Monster
ユーザ	DanBlack
言語	C++14 (GCC 5.4.1)
得点

Compiler output:
a.cc:71:20: error: too many decimal points in number
   71 | 言語    C++14 (GCC 5.4.1)
      |                    ^~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main(void){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void){
      |     ^~~~
a.cc:67:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   67 | 提出情報
      | ^~~~~~~~
Language: C++

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




int main()
{
  int H,A,i,j;
  
  cin >> A >> H;
  
	int x=H-1;
  long t;
  long sum=0;
  long min=0;
  vector<long> N;
   vector<long> v(H,0); 
  
  if(N<K)
  { 
    for(i=0;i<A;i++)
  	{
    	cin >> t;
    	N.push_back(t);
    	sum=sum+t;
    	if(min<t)
    	{
      
     		for(int i=0;i<H;i++)
  			{
    			if(t<v[i])
            	{
      				x=i-1;
      				break;
            	}
            }
  			for(int i=0;i<x;i++)
  			{
    			v[i+1]=v[i];
  			}
  			v[x]=t;
      		min=v[0];
          	x=H-1;
        }
    }
  	for(i=0;i<H;i++)
  	{
    sum=sum-v[i];
  	}
  }
  
  cout << sum;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: 'K' was not declared in this scope
   20 |   if(N<K)
      |        ^
Language: C++

#include<bits/stdc++.h>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<iostream>
#define ios   ios_base::sync_with_stdio(false);  cin.tie(0);    cout.tie(0);
typedef long long int ll;
typedef long double ld;
using namespace std;
const int M=1e9+7;
#include<iostream> 
#include<climits> 
using namespace std; 
int main() {
    ios;
   ll h,a,cin>>h>>a;
   if(h%a==0)
   cout<<h/a;
   else
   cout<<h/a+1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: expected initializer before '>>' token
   17 |    ll h,a,cin>>h>>a;
      |              ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n , a;
  cin >> n >> a;
  int k = ceil( n / a );
  cout << k << endl;
  reurn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'reurn' was not declared in this scope
    9 |   reurn 0;
      |   ^~~~~
Language: C++

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

int maint(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  
  int h,a,cnt=0;
  cin>>h>>a;
  while(h>0){
    cnt++;
    h=h-a;
  }
  
  cout<<cnt;  
  return 0;
}


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

#include<iostream>

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

return 0;

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

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

Compiler output:
main.c: In function 'main':
main.c:15:11: error: expected expression before '<' token
   15 |   while(H=<0){
      |           ^
main.c:18:12: error: expected ';' before '}' token
   18 |     H=H-A*i
      |            ^
      |            ;
......
   22 |   }
      |   ~
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//typedef tree < int , null_type, less <int>, rb_tree_tag, tree_order_statistics_node_update> TREE;
#define ll long long int
#define ull unsigned long long int
#define pb push_back
#define mp make_pair
#define vi vector<int>
#define pii pair<int,int>
#define pss pair<short,short>
#define pld pair<long double,long double >
#define ld long double
#define piii  pair<pii,int>
#define vii vector<pair<int,int> >
#define st first
#define nd second
#define pll pair<ll,ll>
#define speed ios::sync_with_stdio(false);cin.tie();cout.tie();
#define M_PI 3.14159265358979323846
//#define int long long
const int mod=1000000007;
//const int mod=1009;
//const int mod=998244353;
const int inf=1000000009;
const long long INF=1000000000000000009;
const long long big=1000000000000000;
const long double eps=0.000000000000000000001;
using namespace std;
pll T[2000005];
queue<pll > K;
int main()
{
    speed
    ll n,d,a;
    cin>>n>>d>>a;
    d*=2;
    for(int i=1;i<=n;i++)
        cin>>T[i].st>>T[i].nd;
    sort(T+1,T+n+1);
    ll suma=0,wynik=0;
    for(int i=1;i<=n;i++)
    {
        while(!K.empty()&&T[i].st-d*2>K.front().st)
        {
            suma-=K.front().nd;
            K.pop();
        }
        if(suma>=INF/a||suma*a>=T[i].nd)
            continue;
        ll ile=(T[i].nd-suma*a)/a;
        if((T[i].nd-suma*a)%a!=0)
            ile++;
        wynik+=ile;
        K.push(mp(T[i].st,ile));
        suma+=ile;
    }
    cout<<wynik;
    return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:6:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::_Deque_base<std::pair<long long int, long long int>, std::allocator<std::pair<long long int, long long int> > >::_Deque_impl::~_Deque_impl()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = std::pair<long long int, long long int>]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/deque:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:139:
/usr/include/c++/14/bits/stl_deque.h:542:14: note: called from here
  542 |       struct _Deque_impl
      |              ^~~~~~~~~~~
Language: C

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

	return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:15:11: error: expected expression before '<' token
   15 |   while(H=<0){
      |           ^
main.c:18:12: error: expected ';' before '}' token
   18 |     H=H-A*i
      |            ^
      |            ;
......
   22 |   }
      |   ~
Language: C++

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

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


public class MyClass {
	public static void main(String[] args) {
		try{
			Scanner sc=new Scanner(System.in);
			int h,a,c=0;
			System.out.println("Enter H:- ");
			h=sc.nextInt();
			System.out.println("Enter a:- ");
			a=sc.nextInt();
			if((h<=0 || h>=10001) || (a<=0 || a>=10001))
			{
			 	System.out.println("EXit.....");
				System.exit(0);
			}
			else
			{
				for(;;)
				{
					if(h<=0)
					{
						System.out.println(c);
						break;
					}
					else{
						h=h-a;
						c++;
					}
				}
			}
		}
		catch(Exception e)
		{
			System.out.println("Error");
			System.exit(0);
		}
	}
}

Compiler output:
Main.java:2: error: class MyClass is public, should be declared in a file named MyClass.java
public class MyClass {
       ^
Main.java:5: error: cannot find symbol
			Scanner sc=new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class MyClass
Main.java:5: error: cannot find symbol
			Scanner sc=new Scanner(System.in);
			               ^
  symbol:   class Scanner
  location: class MyClass
3 errors
Language: C++

include<iostream>
using namespace std;
int main()
{
int w,c;
cin>>w>>c;
if(w%c==0)
{
cout<<w/c;
}
else
{
cout<<w/c+1;
}
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>w>>c;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<w/c;
      | ^~~~
a.cc:13:1: error: 'cout' was not declared in this scope
   13 | cout<<w/c+1;
      | ^~~~
Language: Java

import java.util.*;
public class MyClass {
	public static void main(String[] args) {
		try{
			Scanner sc=new Scanner(System.in);
			int h,a,c=0;
			System.out.println("Enter H:- ");
			h=sc.nextInt();
			System.out.println("Enter a:- ");
			a=sc.nextInt();
			if((h<=0 || h>=10001) || (a<=0 || a>=10001))
			{
			 	System.out.println("EXit.....");
				System.exit(0);
			}
			else
			{
				for(;;)
				{
					if(h<=0)
					{
						System.out.println(c);
						break;
					}
					else{
						h=h-a;
						c++;
					}
				}
			}
		}
		catch(Exception e)
		{
			System.out.println("Error");
			System.exit(0);
		}
	}
}

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

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

Compiler output:
Main.java:4: error: cannot find symbol
    int h=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
    int a=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
2 errors
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before '}' token
   11 |       i+=1
      |           ^
      |           ;
   12 |   }
      |   ~        
a.cc:13:8: error: expected primary-expression before ')' token
   13 |   else()
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before '<' token
    6 |   if(N=<A){cout<<1<<endl;}
      |        ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
  int h,a,n;
scanf("%d %d",&h,&a);
n=h/a; 
int f=abs(n);
if(f==n)
  printf("%d",n);
else
  printf("%d",f+1);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected declaration specifiers before 'scanf'
    5 | scanf("%d %d",&h,&a);
      | ^~~~~
main.c:6:1: error: expected declaration specifiers before 'n'
    6 | n=h/a;
      | ^
main.c:7:1: error: parameter 'f' is initialized
    7 | int f=abs(n);
      | ^~~
main.c:7:7: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
    7 | int f=abs(n);
      |       ^~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | int main()
main.c:8:1: error: expected declaration specifiers before 'if'
    8 | if(f==n)
      | ^~
main.c:10:1: error: expected declaration specifiers before 'else'
   10 | else
      | ^~~~
main.c:12:1: error: expected declaration specifiers before 'return'
   12 | return 0;
      | ^~~~~~
main.c:13:1: error: expected declaration specifiers before '}' token
   13 | }
      | ^
main.c:7:5: error: declaration for parameter 'f' but no such parameter
    7 | int f=abs(n);
      |     ^
main.c:4:11: error: declaration for parameter 'n' but no such parameter
    4 |   int h,a,n;
      |           ^
main.c:4:9: error: declaration for parameter 'a' but no such parameter
    4 |   int h,a,n;
      |         ^
main.c:4:7: error: declaration for parameter 'h' but no such parameter
    4 |   int h,a,n;
      |       ^
main.c:14: error: expected '{' at end of input
Language: C++

#include <iostream>
int main(){
  int h,a,cnt=0;
  cin >> h;
  cin >> a;
  for (int i=0; i<h; i+=a)
    cnt++;
  cout << cnt << endl;
  return 0;
}

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

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
       if(H%A ==0){
       int x = H/A;
       System.out.println(x);
      }elseif(H<=A){
       int x = H/A+1;
       System.out.println(x);
       }else{
       int x = H/A+1;
       System.out.println(x);}
	}
}

Compiler output:
Main.java:10: error: ';' expected
      }elseif(H<=A){
                   ^
Main.java:13: error: 'else' without 'if'
       }else{
        ^
2 errors
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
  int N, K;
  cin>>N>>K;
  int arr[N];
  int i,sum=0;
  for(i=0;i<N;i++)
    cin>>arr[i];
  sor(arr, arr+N);
  
    for(i=0;i<(N-K); i++)
    {
      sum = sum + arr[i];
    }
  cout<<sum;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'sor' was not declared in this scope
   12 |   sor(arr, arr+N);
      |   ^~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream> 
#include <cmath> 
using namespace std; 
void main()
{
  int H,a;
  cin>>H>>a;
  cout<<ceil(H/a);
}
  
  


Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
Language: C++

#include<iostream.h>
#include<conio.h>
int main()
{
  int h;
  int a;
  cin>>h;
  cin>>a;
  int n;
  n=h/a;
  if(n<=0)
    cout<<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 <bits/stdc++.h>
    using namespace std
     
    int main(a>=b){
      int a,b;
      cin >> a >> b >>endl;
      if (a<b){
        if (a%d == 0){
          cout << a/b << endl;
        }else{
          cout << (a-a%b)/b+1 << endl;
        }
      }else{
      cout << 1 << endl;
      }
    }

Compiler output:
a.cc:2:24: error: expected ';' before 'int'
    2 |     using namespace std
      |                        ^
      |                        ;
    3 | 
    4 |     int main(a>=b){
      |     ~~~                 
a.cc:4:9: error: cannot declare '::main' to be a global variable
    4 |     int main(a>=b){
      |         ^~~~
a.cc:4:14: error: 'a' was not declared in this scope
    4 |     int main(a>=b){
      |              ^
a.cc:4:17: error: 'b' was not declared in this scope
    4 |     int main(a>=b){
      |                 ^
Language: C++

#include <iostream> 
#include <cmath> 
using namespace std; 
void main()
{
  int H,a;
  cin>>H>>a;
  cout<<ceil(H/a);
  return 0;
}
  
  

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         print(count);
      |         ^~~~~
      |         printf
Language: C++

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

int main() {
  int H,N;
  cin >> H >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A.at(i);
  }
  sort(A.begin(),A.end());
  if (H > A.(N - 1)) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected unqualified-id before '(' token
   12 |   if (H > A.(N - 1)) {
      |             ^
Language: Java

import java.util.Scanner;
 
public class Main{

public static void main(String[] args) {
 
int count = 0;
int H;
int A;
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt()
A = scanner.nextInt();
 
while (H>0){
  H = H-A;
  count = count + 1;
}
  
}
  
}

Compiler output:
Main.java:12: error: ';' expected
H = scanner.nextInt()
                     ^
1 error
Language: C++

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
  int H,A;
  float t;
  cin>>H>>A;
  cout<<ceil(H/A);
  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()
{
    double H, A;
    cin >> H >> A;
    cout << ceil(H / A) << endl;
    return 0;
}


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

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

#include <bits/stdc++.h>

using namespace std;

int main() {
    float x;
    float y;
    cin >> x >> y;
    cout << ceil(x/y);

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected '}' at end of input
    9 |     cout << ceil(x/y);
      |                       ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: Java

import java.util.Scanner;
 
public class Main{

public static void main(String[] args) {
 
int count = 0;
int H;
int A;
 
Scanner scanner = new Scanner(System.in);
H = int(scanner.next());
A = int(scanner.next());
 
while (H>0){
  H = H-A;
  count = count + 1;
}
  
}
  
}

Compiler output:
Main.java:12: error: '.class' expected
H = int(scanner.next());
       ^
Main.java:12: error: ';' expected
H = int(scanner.next());
                      ^
Main.java:13: error: '.class' expected
A = int(scanner.next());
       ^
Main.java:13: error: ';' expected
A = int(scanner.next());
                      ^
4 errors
Language: C++

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

  
 


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

import java.util.Scanner;
 
public class Main{

public static void main(String[] args) {
 
int count = 0;
int H;
int A;
 
Scanner scanner = new Scanner(System.in);
H = scanner.next();
A = scanner.next();
 
while (H>0){
  H = H-A;
  count = count + 1;
}
  
}
  
}

Compiler output:
Main.java:12: error: incompatible types: String cannot be converted to int
H = scanner.next();
                ^
Main.java:13: error: incompatible types: String cannot be converted to int
A = scanner.next();
                ^
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  	itn H,A;
    scanf("%d %d",&H,&A);
	int num;
  	if(H%A ==0) printf("%d",H/A);
  	else printf("%d",H/A+1);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'itn' was not declared in this scope; did you mean 'int'?
    7 |         itn H,A;
      |         ^~~
      |         int
a.cc:8:20: error: 'H' was not declared in this scope
    8 |     scanf("%d %d",&H,&A);
      |                    ^
a.cc:8:23: error: 'A' was not declared in this scope
    8 |     scanf("%d %d",&H,&A);
      |                       ^
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
		int x = H / A + 1;
      System.out.println(x)
	}
}

Compiler output:
Main.java:8: error: ';' expected
      System.out.println(x)
                           ^
1 error
Language: C++

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

    return num;
}
  
 


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

#include<iostream.h>
#include<conio.h>
int win(h,a)
{
	clrscr();
  	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:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int fun(int, int)':
a.cc:5:10: error: expected primary-expression before '=' token
    5 |   if(a > =h)
      |          ^
Language: Java

import java.util.Scanner;
 
public static void main(String[] args) {

int count = 0;
int H;
int A;
 
Scanner scanner = new Scanner(System.in);
H = scanner.next();
A = scanner.next();
 
while (H>0){
  H = H-A;
  count = count + 1;
}
  
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int h = sc.nextInt();
        int a = sc.nextInt();
        sc.close();
        int ans = h%a==0 ? h/a : ha+1;
        System.out.println(ans);
        
    }
}


Compiler output:
Main.java:10: error: cannot find symbol
        int ans = h%a==0 ? h/a : ha+1;
                                 ^
  symbol:   variable ha
  location: class Main
1 error
Language: C++

#include<iostream.h>
#include<conio.h>
int win(h,a)
{
	clrscr();
  	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:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.