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

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

int main(){
    int A,B;
    cin >> A >> B >> C;
 if (B == 1){
 cout << 0 << endl;
 }
  else if (B <= A){
  cout << 1 << endl;
  }
  else if (B > A){
  A + (A-1)n
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'C' was not declared in this scope
    6 |     cin >> A >> B >> C;
      |                      ^
a.cc:14:12: error: expected ';' before 'n'
   14 |   A + (A-1)n
      |            ^
      |            ;
Language: C++

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


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

include <iostream>
using namespace std;

int main(){
	int a,b;
  	cin >> a >> b;
    cout << (b/a)+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:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (b/a)+1;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'c' was not declared in this scope
    7 |     cout << (b/c)+1;
      |                ^
Language: C++

include <iostream>
using namespace std;

int main(){
	int a,b;
  	cin >> a >> b;
    cout << (b/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:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (b/c)+1;
      |     ^~~~
a.cc:7:16: error: 'c' was not declared in this scope
    7 |     cout << (b/c)+1;
      |                ^
Language: C++

include <iostream>
using namespace std;

int main(){
	int a,b;
  	cin >> a >> b;
    cout << (b/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:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << (b/c)+1;
      |     ^~~~
a.cc:7:16: error: 'c' was not declared in this scope
    7 |     cout << (b/c)+1;
      |                ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected ';' before '}' token
   12 |     cout << (B - A) /(A - 1) + 2
      |                                 ^
      |                                 ;
   13 |   }
      |   ~
Language: C++

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

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


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

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

int main() {
intA,B;cin>>A>>B;
int ans=0;
int outlet = 1;
while (outlet < B) {
 --outlet;
 outlet += A;
 ++ans;
}
 cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'intA' was not declared in this scope; did you mean 'int'?
    5 | intA,B;cin>>A>>B;
      | ^~~~
      | int
a.cc:5:6: error: 'B' was not declared in this scope
    5 | intA,B;cin>>A>>B;
      |      ^
a.cc:5:13: error: 'A' was not declared in this scope
    5 | intA,B;cin>>A>>B;
      |             ^
Language: C++

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

int main() {
intA,B;cin>>A>>B;
intans=0;
int outlet = 1;
while (outlet < B) {
 --outlet;
 outlet += A;
 ++ans;
}
 cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'intA' was not declared in this scope; did you mean 'int'?
    5 | intA,B;cin>>A>>B;
      | ^~~~
      | int
a.cc:5:6: error: 'B' was not declared in this scope
    5 | intA,B;cin>>A>>B;
      |      ^
a.cc:5:13: error: 'A' was not declared in this scope
    5 | intA,B;cin>>A>>B;
      |             ^
a.cc:6:1: error: 'intans' was not declared in this scope
    6 | intans=0;
      | ^~~~~~
a.cc:11:4: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |  ++ans;
      |    ^~~
      |    abs
a.cc:13:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |  cout << ans << endl;
      |          ^~~
      |          abs
Language: C++

#include <iostream>

int main(){
    int A, B;
    std::cin >> A >> B;

    int r = ((B - 1) % (A - 1) > 0)? 1 : 0;
    int nums = (B - 1) / (A - 1) + r;

    std::cout << nums << endl;
    return nums;

}

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

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

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

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

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

//#pragma GCC optimize "trapv"
//-D_GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define int long long int
#define all(x) x.begin(),x.end()
#define allr(x) x.rbegin(),x.rend()
#define ii pair<int,int>
#define Max 100000+5
#define IO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define f first
#define s second
#define pb push_back
int mod = 1000000007;
int mod1 = 998244353;
vector<int> g[Max];
bool vis[Max];
int d, x, y;
int gcd(int a,int b){
    if(b==0)return a;
    return gcd(b,a%b);
}
void ex(int A, int B) {
    if(B == 0) {
        d = A;
        x = 1;
        y = 0;
    }
    else {
        ex(B, A%B);
        int temp = x;
        x = y;
        y = temp - (A/B)*y;
    }
}


void dfs(int u){

	vis[u]=1;
	for(int i=0;i<g[u].size();i++){
		int v=g[u][i];
		if(vis[v]!=1)
			dfs(v);
	}
}



int power(int a,int b){
    if(b==1)return a;
    if(a>mod)a%=mod;
    int r=1;
    while(b){
        if(b&1)r=r%mod*a%mod;
        a=a%mod*a%mod;
        b/=2;
    }
    return r;
}
class uf{
    vector<int> v;
    vector<int> sz;
    
    
    public :
    uf(int n){
        v.resize(n+1);
        iota(v.begin()+1,v.end(),1);
        sz.resize(n+1,1);
        //1 to sz
    }
    int root(int b){
        while(v[b]!=b){
            b = v[b];
        }   
        return b;
    }
    void u(int a, int b){
        //combine a and b
        
        int ra=root(a);
        int rb=root(b);
        if(ra==rb)return ;
        if(sz[ra]<sz[rb]){
            v[ra] = v[rb];
            sz[rb]+=sz[ra];
        }else{
            v[rb]=v[ra];
            sz[ra]+=sz[rb];
        }
    }
    bool f(int a,int b){
        //same set
        return (root(a)==root(b));
    }
   
    
};
vector<int> matmul(vector<int> a,vector<int> b){
    vector<int> c(4,0);
    c[0] = (a[0]%mod*b[0]%mod + a[1]%mod*b[2]%mod)%mod;
    c[1] = (a[0]%mod*b[1]%mod + a[1]%mod*b[3]%mod)%mod;
    c[2] = (a[2]%mod*b[0]%mod + a[3]%mod*b[2]%mod)%mod;
    c[3] = (a[2]%mod*b[1]%mod + a[3]%mod*b[3]%mod)%mod;
    return c;
}
vector<int> id={1,0,0,1};

int32_t main(){
	IO
	//freopen("input.txt","r",stdin);
    	//freopen("output.txt","w",stdout);
	int a,b;
  cin>>a>>b;
  cout<<(a+b-3)/(a-1);


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:116:23: error: expected '}' at end of input
  116 |   cout<<(a+b-3)/(a-1);
      |                       ^
a.cc:110:15: note: to match this '{'
  110 | int32_t main(){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	int ans = 0;
	int outlet = 1;
	while(outlet < b) {
		outlet--;
		outlet += a;
		ans++;
	}
	printf("%d\n", i);
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return true;
    }
    return false;
}
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return true;
    }
    return false;
}
const long long INF = 1LL << 60;

int main()
{
    int a, b;
    cin >> a >> b;
    int let = 1, ans = 0;

    while (let < B)
    {
        --let;
        let += A;
        ++ans;
    }
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: 'B' was not declared in this scope
   32 |     while (let < B)
      |                  ^
a.cc:35:16: error: 'A' was not declared in this scope
   35 |         let += 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;
 
int main() {
    cin.tie(nullptr); ios::sync_with_stdio(false);
    double a, b;
    cin >> a >> b;
    cout << ceil((b-1)/(a-1)) << endl;
}
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; ++i)

using namespace std;
using ll = long long;

int main() {
    cin.tie(nullptr); ios::sync_with_stdio(false);
    double a, b;
    cin >> a >> b;
    cout << ceil((b-1)/(a-1)) << endl;
}

Compiler output:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main() {
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main() {
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'key' was not declared in this scope; did you mean 'key_t'?
   11 |   cout << key << endl;
      |           ^~~
      |           key_t
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected initializer before '-' token
   11 |     int t - b - 1;
      |           ^
a.cc:12:16: error: 't' was not declared in this scope
   12 |     int ans = (t + s + 1)/s;
      |                ^
Language: C++

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'aa' was not declared in this scope; did you mean 'a'?
    7 |     cout<<(b-1)/aa+1<<endl;
      |                 ^~
      |                 a
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << (b+a-3)/(a-1) << endl;
      |     ^~~~
a.cc:4:30: error: 'endl' was not declared in this scope
    4 |     cout << (b+a-3)/(a-1) << endl;
      |                              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
/* ------------------------------------------------ */
ll fact(int i) {       //階乗
    if (i == 0) return 1;
    return (fact(i - 1)) * i;
}
ll gcm(ll a, ll b) {        //最大公約数
    if(b == 0) return a;
    return gcm(b, a % b); 
}
ll lcm(ll a, ll b) {      //最小公倍数
    return a * b / gcm(a, b);
}
int keta(ll n) {        //桁数を求める
    if(n == 0) return 1;
    int count = 0;
    while(n != 0) {
        n /= 10;
        count++;
    }
    return count;
}
ll ketasum(ll n) {    //各桁の和
    ll sum = 0;
    while(n != 0) {
        sum += n % 10;
        n /= 10;
    }
    return sum;
}
/* ------------------------------------------------ */

int main() {
    int a, b;
    cin >> a >> b;
    else cout << ceil((b - 1) / (a - 1)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:5: error: 'else' without a previous 'if'
   40 |     else cout << ceil((b - 1) / (a - 1)) << endl;
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <cmath>
#include <climits>
#include <iomanip>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
int main(){
  ll a,b;
  cin >> a >> b;
  ll res = b / (a - 1);
  if(b % (a - 1) = 0)res++;
  if(b == 1)cout << 0 << endl;
  else cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: lvalue required as left operand of assignment
   17 |   if(b % (a - 1) = 0)res++;
      |      ~~^~~~~~~~~
Language: Java

import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      
      int useTap = sc.nextInt();
      int nonTap = sc.nextInt();
      
      double d1 = (nonTap - 1) / (useTap - 1);
      int number = Math.ceil(d1);
      
      System.out.println(number);
      
      sc.close();
	}
 
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
      int number = Math.ceil(d1);
                            ^
1 error
Language: Java

import java.util.Scanner

public class Main {

	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      
      int useTap = sc.nextInt();
      int nonTap = sc.nextInt();
      
      double d1 = (nonTap - 1) / (useTap - 1)
      int number = Math.ceil(d1);
      
      System.out.println(number);
      
      sc.close();
	}

}


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
Main.java:11: error: ';' expected
      double d1 = (nonTap - 1) / (useTap - 1)
                                             ^
2 errors
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    System.out.println(B / (A-1));
  }
}


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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    System.out.println(B / (A-1));
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = Scanner(System.in);
                 ^
  symbol:   method Scanner(InputStream)
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;
 
int main() {
  int a,b;
  cin >> a >> b;
  int tap = 1;
  int ans = 0;
  while(tap<b){
    tap--;
    tap += a;
    count ++;
  }

  printf("%d",count);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: no post-increment operator for type
   13 |     count ++;
      |           ^~
a.cc:16:9: error: overloaded function with no contextual type information
   16 |   printf("%d",count);
      |   ~~~~~~^~~~~~~~~~~~
Language: C++

#pragma once
#include<iostream>
#include<string>
#include<vector>
#include<stack>
#include<queue>
#define rep(i,n) for(auto i=0;i<(n);i++)
#define all(vs) (vs).begin(),(vs).end()
#define roundup(A,B) (A)/(B)+((A)%(B)==0?0:1)
using namespace std;


/*
  予想と答えをすべて比較するのが最速。O(n)
*/
void A() {
	string s, t;
	cin >> s >> t;
	int answer = 0;
	rep(i, s.length()) {
		if (s[i] == t[i])answer++;
	}
	cout << answer << endl;
}

/*
  タップを使うごとにA-1ずつ増える。Bと1の距離をA-1で割った（切り上げ）のが答え。
  A,Bの値によらないのでO(1)の解法である。
*/
void B() {
	int A, B; cin >> A >> B;
	cout << roundup(B-1, A-1) << endl;
}

Compiler output:
a.cc:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
/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 <math>
using namespace std;
int main(){
    int A,B;
    cin>>A>>B;
    cout<<ceil(((B-A+1)/(A-1)))<<endl;
    return 0;
}

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

#include <bits/stdc++.h>
#include <stdio.h>

int main()
{
  int A, B;
  scanf_s("%d %d", &A, &B);
  for(int i=1; i<20; i++){
    if(A*i-(i-1) >= B){
      printf("%d\n", i);
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |   scanf_s("%d %d", &A, &B);
      |   ^~~~~~~
      |   scanf
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>

int main()
{
  int A, B;
  scanf_s("%d %d", &A, &B);
  for(int i=1; i<20; i++){
    if(A*i-(i-1) > B){
      printf("%d\n", i);
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |   scanf_s("%d %d", &A, &B);
      |   ^~~~~~~
      |   scanf
Language: C++

#include <bits/stdc++.h>

int main(void)
{
  int A, B;
  scanf_s("%d %d", &A, &B);
  for(int i=1; i<20; i++){
    if(A*i-(i-1) > B){
      printf("%d\n", i);
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%d %d", &A, &B);
      |   ^~~~~~~
      |   scanf
Language: C++

#include <bits/stdc++.h>

int main()
{
  int A, B;
  scanf_s("%d %d", &A, &B);
  for(int i=1; i<20; i++){
    if(A*i-(i-1) > B){
      printf("%d\n", i);
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%d %d", &A, &B);
      |   ^~~~~~~
      |   scanf
Language: C++

#include <bits/stdc++.h>

int main()
{
  int A, B;
  scanf_s("%d %d", &A, &B);
  for(int i=1; i<20; i++){
    if(A*i-(i-1) > B){
      printf("%d\n", i);
      return 0:
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%d %d", &A, &B);
      |   ^~~~~~~
      |   scanf
a.cc:10:15: error: expected ';' before ':' token
   10 |       return 0:
      |               ^
      |               ;
a.cc:10:15: error: expected primary-expression before ':' token
Language: Java

import java.util.Scanner;

public class powerSocket {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
//		int t = sc.nextInt();
//		StringBuilder finalAns = new StringBuilder();
//		while (--t >= 0) {
		int a = sc.nextInt(), b = sc.nextInt();
		double x = Math.floor(Math.log(b) / Math.log(a));
		double ans = Math.pow(a, x);
		x += Math.ceil((b - ans) / (a - 1));
		System.out.println(ans);
//		}
//		System.out.print(finalAns);
		sc.close();
	}
}


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

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

int main() {
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while (true) {
    
    if (b <= num) {
      cout << i << endl;
      break;
    }
    i = i + a;
    i = i -1;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |     if (b <= num) {
      |              ^~~
      |              enum
Language: C++

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

int main() {
  
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while (true) {
    
    num = i * a;
    
    if (b =< num) {
      cout << i << endl;
      break;
    }
      i++;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |     num = i * a;
      |     ^~~
      |     enum
a.cc:14:12: error: expected primary-expression before '<' token
   14 |     if (b =< num) {
      |            ^
Language: C++

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

int main() {
  
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while(True) {
    num = i * a;
    
    if (b < num) {
      cout << i << endl;
      break;
    }
      i++;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'True' was not declared in this scope
   10 |   while(True) {
      |         ^~~~
a.cc:11:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |     num = i * a;
      |     ^~~
      |     enum
Language: C++

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

int main() {
  
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while(True) {
    
    num = i * a;
    if (b < num) {
      cout << i-1 <<endl;
      break;
    i++;
    }
  }
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'True' was not declared in this scope
   10 |   while(True) {
      |         ^~~~
a.cc:12:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |     num = i * a;
      |     ^~~
      |     enum
Language: C++

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

int main() {
  
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while(True) {
    
    num = i * a;
    if (b < num) {
      cout << i-1 <<endl;
      break;
    i++
    }
  }
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'True' was not declared in this scope
   10 |   while(True) {
      |         ^~~~
a.cc:12:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |     num = i * a;
      |     ^~~
      |     enum
a.cc:16:8: error: expected ';' before '}' token
   16 |     i++
      |        ^
      |        ;
   17 |     }
      |     ~
Language: C++

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

int main() {
  
  int a,b;
  cin >> a >> b;
  int i = 1;
  
  while (True) {
    
    num = i * a;
    if (b < num) {
      cout << i-1 <<endl;
      break;
    i++
    }
  }
}
    
      



Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'True' was not declared in this scope
   10 |   while (True) {
      |          ^~~~
a.cc:12:5: error: 'num' was not declared in this scope; did you mean 'enum'?
   12 |     num = i * a;
      |     ^~~
      |     enum
a.cc:16:8: error: expected ';' before '}' token
   16 |     i++
      |        ^
      |        ;
   17 |     }
      |     ~
Language: Java

public class Main {

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

		Scanner sc = new Scanner(System.in);

		//入力表示
		int A = sc.nextInt();
		int B = sc.nextInt();
		int ans = 0;
		int puls = 1;
		
		while (puls<B) {
			puls--;
			 puls +=A;
			 ans++;
			
		}
		System.out.println(ans);
	}
}

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

import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = (int)Math.ceal(b-1/a-1);
        System.out.println(ans);
    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        int ans = (int)Math.ceal(b-1/a-1);
                           ^
  symbol:   method ceal(int)
  location: class Math
1 error
Language: Java

import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        ans = 0;
        if(b!=1){
            ans = (b/(a-1))+1;
        }
        System.out.println(ans);
    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        ans = 0;
        ^
  symbol:   variable ans
  location: class Main
Main.java:10: error: cannot find symbol
            ans = (b/(a-1))+1;
            ^
  symbol:   variable ans
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(ans);
                           ^
  symbol:   variable ans
  location: class Main
3 errors
Language: Java

import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        ans = 0;
        if(b!=1){
            ans = (b/a)+1;
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        ans = 0;
        ^
  symbol:   variable ans
  location: class Main
Main.java:10: error: cannot find symbol
            ans = (b/a)+1;
            ^
  symbol:   variable ans
  location: class Main
Main.java:12: error: cannot find symbol
        System.out.println(ans);
                           ^
  symbol:   variable ans
  location: class Main
3 errors
Language: C++

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

int main(){
    int a, b;
    int sum=0;
    cin >> a >> b;
    for(int i=0; sum<b; i++) {
        sum+=a;
        i++;
    }
    cout << i << endl;
}

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

#include<iostream.h>

int main()
{
int a,b,c=0,n;
    cin>>a>>b;
    int outlet=1;
    n=0;
 
    while(outlet<b)
    {
       --outlet;
       outlet+=a;
       ++c;
    }
    cout<<c<<endl;
    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>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;

#define imx INT_MAX
#define imn INT_MIN
#define llmx LLONG_MAX
#define llmn LLONG_MIN
#define INF         100000000000000000
#define PI          3.1415926535897932384626433832795l



#define fi first
#define se second
#define pb push_back
#define f_s(a) sort(a.begin(), a.end())
#define b_s(a) sort(a.rbegin(), a.rend())
#define p(a) cout<<a<<"\n"


// ll mod = 1000000007;
// #define l(i, )
// #define rl(i, a, b) for(int i = a; i < b; i++)






// struct mycomp {
//     bool operator() (const pair<int,int> &a, const pair<int,int> &b) const{
//         if (a.second-a.first != b.second-b.first)
//         return (a.second-a.first > b.second-b.first);
//         return a.first < b.first;
//     }
// };



/////////////////////GCD//////////////////////
ll gcd(ll a, ll b)
{
	if(b==0) return a;
	return gcd(b, a%b);
}


ll extended_gcd(ll a, ll b, ll& x, ll& y)
{
	if(b==0)
	{
		x=1;
		y=0;
		return a;
	}
	ll x1, y1;
	ll d = extended_gcd(b, a%b, x1, y1);
	x=y1;
	y=x1-y1*(a/b);
	return d;
}

////////////////////SIEVE OF ERATOSTHENES//////////////////////
vector<int> sieveoferatosthenes(int n)
{
	vector<bool> prime(n+1, true);
	for(int i = 2; i <= sqrt(n); i++)
	{
		if(prime[i])
		{
			for(int j = i*i; j<=n; j+=i)
			{
				prime[j]=false;
			}
		}
	}	
	vector<int> all_primes;
	for(int i = 2; i <=n; i++)
	{
		if(prime[i]) all_primes.pb(i);
	}
	return all_primes;
}

////////////////////BINARY EXPONENTIATION///////////////////////
ll bin_exp(ll a, ll b, ll mod)
{
	ll ans = 1;
	while(b)
	{
		if(b%2)
		{
			b--;
			ans = (ans%mod*a%mod)%mod;
		}
		b/=2;
		a = (a%mod*a%mod)%mod;
	}
	return ans;
}


///////////////////////////BFS//////////////////////////////////
void bfs(vector<int>& distance, vector<int> a[], vector<bool>& visited, int u, vector<int>& parent)
{
	visited[u]=true;
	parent[u]=-1;
	distance[u]=0;
	queue<int> q;

	q.push(u); 
    while (!q.empty()) { 
  
        int f = q.front(); 
        q.pop(); 
  		for(int i =0; i < a[f].size(); i++)
  		{
  			if(visited[a[f][i]]==false)
  			{
  				distance[a[f][i]]=distance[f]+1;
  				parent[a[f][i]]=f;
  				visited[a[f][i]]=true;
  				q.push(a[f][i]);
  			}
  		}
    } 

}

void solve()
{

}
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	// #ifndef ONLINE_JUDGE
	// freopen("input.txt", "r", stdin);
	// freopen("output.txt", "w", stdout);
	// #endif
	int a, b;
	cin>>a>>b;
	if(b==1)
	{ 
		p(0);
		continue;
	}
	int sum = 0, i = 0;
	while(true)
	{
		if(sum+a>=b)
		{
			i++;
			break;
		}
		else
			sum+=(a-1);
		i++;
	}
	p(i);
	return 0;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:158:17: error: continue statement not within a loop
  158 |                 continue;
      |                 ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pi;
typedef pair<ll, ll> pll;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;

#define imx INT_MAX
#define imn INT_MIN
#define llmx LLONG_MAX
#define llmn LLONG_MIN
#define INF         100000000000000000
#define PI          3.1415926535897932384626433832795l



#define fi first
#define se second
#define pb push_back
#define f_s(a) sort(a.begin(), a.end())
#define b_s(a) sort(a.rbegin(), a.rend())
#define p(a) cout<<a<<"\n"


// ll mod = 1000000007;
// #define l(i, )
// #define rl(i, a, b) for(int i = a; i < b; i++)






// struct mycomp {
//     bool operator() (const pair<int,int> &a, const pair<int,int> &b) const{
//         if (a.second-a.first != b.second-b.first)
//         return (a.second-a.first > b.second-b.first);
//         return a.first < b.first;
//     }
// };



/////////////////////GCD//////////////////////
ll gcd(ll a, ll b)
{
	if(b==0) return a;
	return gcd(b, a%b);
}


ll extended_gcd(ll a, ll b, ll& x, ll& y)
{
	if(b==0)
	{
		x=1;
		y=0;
		return a;
	}
	ll x1, y1;
	ll d = extended_gcd(b, a%b, x1, y1);
	x=y1;
	y=x1-y1*(a/b);
	return d;
}

////////////////////SIEVE OF ERATOSTHENES//////////////////////
vector<int> sieveoferatosthenes(int n)
{
	vector<bool> prime(n+1, true);
	for(int i = 2; i <= sqrt(n); i++)
	{
		if(prime[i])
		{
			for(int j = i*i; j<=n; j+=i)
			{
				prime[j]=false;
			}
		}
	}	
	vector<int> all_primes;
	for(int i = 2; i <=n; i++)
	{
		if(prime[i]) all_primes.pb(i);
	}
	return all_primes;
}

////////////////////BINARY EXPONENTIATION///////////////////////
ll bin_exp(ll a, ll b, ll mod)
{
	ll ans = 1;
	while(b)
	{
		if(b%2)
		{
			b--;
			ans = (ans%mod*a%mod)%mod;
		}
		b/=2;
		a = (a%mod*a%mod)%mod;
	}
	return ans;
}


///////////////////////////BFS//////////////////////////////////
void bfs(vector<int>& distance, vector<int> a[], vector<bool>& visited, int u, vector<int>& parent)
{
	visited[u]=true;
	parent[u]=-1;
	distance[u]=0;
	queue<int> q;

	q.push(u); 
    while (!q.empty()) { 
  
        int f = q.front(); 
        q.pop(); 
  		for(int i =0; i < a[f].size(); i++)
  		{
  			if(visited[a[f][i]]==false)
  			{
  				distance[a[f][i]]=distance[f]+1;
  				parent[a[f][i]]=f;
  				visited[a[f][i]]=true;
  				q.push(a[f][i]);
  			}
  		}
    } 

}

void solve()
{

}
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	// #ifndef ONLINE_JUDGE
	// freopen("input.txt", "r", stdin);
	// freopen("output.txt", "w", stdout);
	// #endif
	int a, b;
	cin>>a>>b;
	if(b==1)
	{ 
		p(0)
		continue;
	}
	int sum = 0, i = 0;
	while(true)
	{
		if(sum+a>=b)
		{
			i++;
			break;
		}
		else
			sum+=(a-1);
		i++;
	}
	p(i);
	return 0;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:158:17: error: expected ';' before 'continue'
  158 |                 continue;
      |                 ^~~~~~~~
Language: Java

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





public class ABC {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    public static void main(String args[]) throws IOException {
        double  A= in.nextInt();
        double B = in.nextInt();
        int outlet = 1;
        int ans =0;
      while(outlet<B){
          --outlet;
          outlet+=A;
        ans++;
      }
      out.println(ans);

        out.flush();
        }
       static boolean isEven(long a){
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
        static boolean same(int [] arr,int [] temp){
            Arrays.sort(arr);
           Arrays.sort(temp);
            for(int i=0;i<arr.length;i++){
                if(temp[i]!=arr[i])
                return false;
            }
            return true;
        }

 
  


    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

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





public class ABC {

    static MyScanner in = new MyScanner();
    static   PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int N;
    static int max = 200001;
    static int [] dr = {1,-1,0,0};
    static int [] dc={0,0,-1,1};
    public static void main(String args[]) throws IOException {
        double  A= in.nextInt();
        double B = in.nextInt();
        out.println((int)Math.ceil(B/A));


        out.flush();
        }
       static boolean isEven(long a){
            return (a&1)==0;
        }
       static  void swap (int a, int b){

        int temmp = b;
        b=a;
        a = temmp;
        }
        static boolean same(int [] arr,int [] temp){
            Arrays.sort(arr);
           Arrays.sort(temp);
            for(int i=0;i<arr.length;i++){
                if(temp[i]!=arr[i])
                return false;
            }
            return true;
        }

 
  


    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;
   
        public MyScanner() {
           br = new BufferedReader(new InputStreamReader(System.in));
        }
   
        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
   
        int nextInt() {
            return Integer.parseInt(next());
        }
   
        long nextLong() {
            return Long.parseLong(next());
        }
   
        double nextDouble() {
            return Double.parseDouble(next());
        }
   
        String nextLine(){
            String str = "";
        try {
           str = br.readLine();
        } catch (IOException e) {
           e.printStackTrace();
        }
        return str;
        }
  
     }
}

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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define RS(x) rsort(x.begin(),x.end()))
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
int INF = 1e9 + 1;
int MOD = 1e9+7;
int convert(int x, int n){
    int y=0, i=0, z;
    while(x > 0){
        z = x%n;
        y += z*pow(10, i);
        x = x/n;
        i++;
    }
    return y;
unsigned GetDigit(unsigned num){
    return std::to_string(num).length();
}
signed main()
{
    int a,b,ans=0,i=0;
    cin >> a >>b;
    while(i<b){
        --i;
        i+=a;
        ans++
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'long long int convert(long long int, long long int)':
a.cc:21:32: error: a function-definition is not allowed here before '{' token
   21 | unsigned GetDigit(unsigned num){
      |                                ^
a.cc:24:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   24 | signed main()
      |            ^~
a.cc:24:12: note: remove parentheses to default-initialize a variable
   24 | signed main()
      |            ^~
      |            --
a.cc:24:12: note: or replace parentheses with braces to value-initialize a variable
a.cc:25:1: error: a function-definition is not allowed here before '{' token
   25 | {
      | ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:12:26: note: to match this '{'
   12 | int convert(int x, int n){
      |                          ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:12: error: lvalue required as left operand of assignment
    5 |     if(b%a = 0){
      |            ^
Language: C++

// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>

#define FOR(i, a, b) for (int i = (a); i < int(b); ++i)
#define RFOR(i, a, b) for (int i = (b)-1; i >= int(a); --i)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, int(n) + 1)
#define RREP(i, n) RFOR(i, 0, n)
#define RREP1(i, n) RFOR(i, 1, int(n) + 1)
#define ALL(c) begin(c), end(c)

int _ = (
#ifndef LOCAL
    std::cin.tie(nullptr), std::ios::sync_with_stdio(false),
#endif
    std::cout.precision(10), std::cout.setf(std::ios::fixed));

using ll = long long;
using ull = unsigned long long;
using ld = long double;
template <typename T> using vec = std::vector<T>;
using namespace std;

int main() {
  int A, B;
  cin >> A >> B;
  int out = 1;
  REP1(i, 40000) {
    out = out + A - 1;
    if (out >= B) {
      cout << i << endl;
      break
    }
  }
  return 0;
}


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

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

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

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

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

// #include <bits/stdc++.h>
#include <iostream>

#define rep(i,f,n) for (int i = (f); i < (n); ++i)
#define repr(i,f,n) for (int i = (n); i < (f); --i)
using namespace std;
using ll = long long;
using P = pair<int,int>;


int main() {
  int a, b;
  cin >> a >> b;
  int ans = 0;
  int outlet = 1;
  while (outlet < b)
  {
    --outlet;
    total += a;
    ++ans;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'total' was not declared in this scope
   19 |     total += a;
      |     ^~~~~
Language: C++

// #include <bits/stdc++.h>
#include <iostream>

#define rep(i,f,n) for (int i = (f); i < (n); ++i)
#define repr(i,f,n) for (int i = (n); i < (f); --i)
using namespace std;
using ll = long long;
using P = pair<int,int>;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'cout'
   15 |   cout << n << endl;
      |   ^~~~
Language: C++

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


    

      

    
     

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected '}' at end of input
   15 |   cout<<count<<endl;
      |                     ^
a.cc:8:26: note: to match this '{'
    8 |   for(int i=0;i<1000;i++){
      |                          ^
a.cc:15:21: error: expected '}' at end of input
   15 |   cout<<count<<endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected ',' or ';' before ':' token
    4 |   int a,b,i=1 :
      |               ^
a.cc:9:16: error: expected ';' before ':' token
    9 |   cout<<i<<endl:
      |                ^
      |                ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long       ll;

#define all(x)            (x).begin(),(x).end()
#define Sort(x)            sort(all(x))
#define A               first
#define B               second
#define sep             ' '
#define fast_io         ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define set_random     mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count())

const int MAX1 = 1e6+10,
         Md = 1e9+7,
		 Base = 257;

ll n, bol, root;
string s;

int main(){
    fast_io;
    cin >> a >> b;
    cout << ceil(1.0*a/b);
    return 0;
}
/*               now or never                 */


Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: 'a' was not declared in this scope
   24 |     cin >> a >> b;
      |            ^
a.cc:24:17: error: 'b' was not declared in this scope
   24 |     cin >> a >> b;
      |                 ^
Language: Java

import java.util.Scanner;
public class main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in)
          
          int A = scan.nextInt();
          int B = scan.nextInt();
      	  int X = 0;
      
      	  while(0 < B){
            X += 1;
            B -= A;
          }  
          
      	  System.oout.println(X);

	}

}


Compiler output:
Main.java:5: error: ';' expected
		Scanner scan = new Scanner(System.in)
		                                     ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main() {
	int a, b;
	scanf_s("%d %d", &a, &b);
	cout << (b / a) + 1;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
Language: C++

int main(){
  int a,b;
  cin>>a>>b;
  long int count=1;
  for(long int i=0;i<10000;i++){
    a+=a;
    a-=1;
    count+=1;
    if(a>=b){
      break;
    }
    else{
      int unko=0;
    }
  }
  cout<<count<<endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected initializer before '+=' token
   13 |     int c+=0;
      |          ^~
Language: C++

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

int main(){
  int a,b;
  cin >> a >> b;
  
  if(b==1 || b=0){
    cout << 0 << endl;
  }
  int c=a;
  for(int i=1; i<1e9; i++){
    if(c>=b){
      cout << i << endl;
    }
    c=c*a;
  }
}
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: lvalue required as left operand of assignment
    8 |   if(b==1 || b=0){
      |      ~~~~~^~~~
Language: Java

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタ
     	Scanner scan = new Scanner(System.in);
      	int x = scan.nextInt;
      	int y = scan.nextInt;
      	int z = 0;
      	for(;;){
          	x-y=x;
            z=z+1;
          	if(y>x){
              break;
            }
        }
      	System.out.print(z);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      	int x = scan.nextInt;
      	            ^
  symbol:   variable nextInt
  location: variable scan of type Scanner
Main.java:8: error: cannot find symbol
      	int y = scan.nextInt;
      	            ^
  symbol:   variable nextInt
  location: variable scan of type Scanner
Main.java:11: error: unexpected type
          	x-y=x;
          	 ^
  required: variable
  found:    value
3 errors