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

#include<cstdio>
#include<cstring>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<stack>
#include<bitset>
#include<cstdlib>
#include<cmath>
#include<set>
#include<list>
#include<deque>
#include<map>
#include<queue>
using namespace std;
typedef long long ll;
const double PI = acos(-1.0);
const double eps = 1e-6;
const int INF = 0x3f3f3f3f3f;
const int maxn = 1e5+500;
ll T,n,m;
int main() {
    cin>>n>>m;
    int i;
    for(i=0;i<20;i++){
    	int t  = i*(a-1);
    	if(t>=b)
    		break;
	}
	cout<<i<<endl;
    return 0;
}



Compiler output:
a.cc:20:17: warning: overflow in conversion from 'long int' to 'int' changes value from '271644049215' to '1061109567' [-Woverflow]
   20 | const int INF = 0x3f3f3f3f3f;
      |                 ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:27:21: error: 'a' was not declared in this scope
   27 |         int t  = i*(a-1);
      |                     ^
a.cc:28:15: error: 'b' was not declared in this scope
   28 |         if(t>=b)
      |               ^
Language: Java

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String input1 = sc.nextLine();
        String[] inputs = input1.split(" ");
        
        int a = Integer.parseInt(inputs[0]);
        int b = Integer.parseInt(inputs[1]);
        
        if (b == 1) {
            System.out.println(0);
            return;
        }
        
        int count = b / a;
        
        if (a % b > 0) {
            count++;
        } 
        System.out.println(count);
    }
}

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

#include<bits/stdc++.h>
using namespace std;
int a,b;
int main(){
	scanf("%d%d",&a,&b);
	for(int i=1;i<=100;i++){
		if(a*i>=b+i-1){
			cout<<i<<endl;
			return 0;
		}
	}
	return 0;
}
c

Compiler output:
a.cc:14:1: error: 'c' does not name a type
   14 | c
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: expected primary-expression before ')' token
    7 |   if(b<=((b-1)/a + 1)*a-(b-1)/a))
      |                                 ^
Language: C++

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

int main() {
  int a , b;
  
  cin >> a >> b;
  
  int jjj(int j , int k){
    if(k == 1){
      return k;
    }else{
      return j + (k-1) * j;
    }
  }
  
  bool flg = true;
  int i = 0;
  
  while(flg){
    i++;
    if(jjj(a , i) >= b){
      flg = false;
    }
  }
  
  cout << i << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: a function-definition is not allowed here before '{' token
    9 |   int jjj(int j , int k){
      |                         ^
a.cc:22:8: error: 'jjj' was not declared in this scope
   22 |     if(jjj(a , i) >= b){
      |        ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before 'cout'
    9 |   else ans = (b-2)/(a-1)+1
      |                           ^
      |                           ;
   10 |   cout << ans << endl;
      |   ~~~~
Language: C++

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

int main() {
  int a,b,ans = 1;
  cin >> a >> b;
  if(b == 1){
    cou << 0 << endl;
    return 0;
  }
  for(int i = 1;i*a-i+1 < b;i++){
    ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
    8 |     cou << 0 << endl;
      |     ^~~
      |     cos
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'n' was not declared in this scope
    7 |   while(now<n){
      |             ^
Language: C++

 #include <bits/stdc++.h>

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;

using namespace std;


int inputValue(){
    int a;
    cin >> a;
    return a;
};

void inputArray(int * p, int a){
    rep(i, a){
        cin >> p[i];
    }
};

void inputVector(vector<int> * p, int a){
    rep(i, a){
        int input;
        cin >> input;
        p -> push_back(input);
    }
}

template <typename T>
void output(T a, int precision) {
    if(precision > 0){
        cout << setprecision(precision)  << a << "\n";
    }
    else{
        cout << a << "\n";
    }
}

int main(int argc, const char * argv[]) {
    
    // source code
int a,b,n;
  cin >> a >> b;
  n = ceil((b - 1)/(a - 1))
  
  cout << n << endl;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:45:28: error: expected ';' before 'cout'
   45 |   n = ceil((b - 1)/(a - 1))
      |                            ^
      |                            ;
   46 | 
   47 |   cout << n << endl;
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ELEM(array)  (sizeof (array) / sizeof *(array))
#define MOD 1000000007
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected ')' before ';' token
   11 |     cout<<max((b-1)/a+1,b/a+b%a;
      |              ~                 ^
      |                                )
Language: C++

A,B =gets.chomp.split.map(&:to_i)
n = B/(A-1)
remainder = B%(A-1)

if remainder == 1 || remainder == 0
  puts n
else
  puts (n+1)
end

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B =gets.chomp.split.map(&:to_i)
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
    long long c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
using namespace std;
bool prime_(int n){
  if(n==1){
    return false;
  }else if(n==2){
    return true;
  }else{
    for(int i=2;i<=sqrt(n);i++){
      if(n%i==0){
        return false;
      }
    }
    return true;
  }
}

long long gcd_(long long a, long long b){
  if(a<b){
    swap(a,b);
  }
  if(a%b==0){
    return b;
  }else{
    return gcd_(b,a%b);
  }
}
 
long long lcm_(long long x, long long y){
  return (x/gcd_(x,y))*y;
}
 
class UnionFind {
    public:
    //各頂点の親の番号を格納する。その頂点自身が親だった場合は-(その集合のサイズ)を入れる。
    vector<int> Parent;
    
    //クラスを作るときは、Parentの値を全て-1にする。
    //以下のようにすると全てバラバラの頂点として解釈できる。
    UnionFind(int N) {
        Parent = vector<int>(N, -1);
    }
    
    //Aがどのグループに属しているか調べる
    int root(int A) {
        if (Parent[A] < 0) return A;
        return Parent[A] = root(Parent[A]);
    }
    
    //自分のいるグループの頂点数を調べる
    int size(int A) {
        return -Parent[root(A)];//先祖をrootで取っておきたい。
    }
    
    //AとBをくっ付ける
    bool connect(int A, int B) {
        //AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
        A = root(A);
        B = root(B);
        if (A == B) {
            //すでにくっついてるからくっ付けない
            return false;
        }
        
        //大きい方(A)に小さいほう(B)をくっ付けたい
        //大小が逆だったらAとBをひっくり返す。
        if (size(A) < size(B)) swap(A, B);
        
        //Aのサイズを更新する
        Parent[A] += Parent[B];
        //Bの親をAに変更する
        Parent[B] = A;
        
        return true;
    }
};


int main(){
  
  int a,b;
  cin>>a>>b;
  if(b==1){
    cout<<0<<endl;
    return 0;
  }
  REPP(k,30){
    if(1+(a-1)*k>=b){
      ans = k;
      break;
    }
  }
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:100:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
  100 |       ans = k;
      |       ^~~
      |       abs
a.cc:104:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
  104 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <deque>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <algorithm>
#include <set>
#include <map>
#include <queue>

#define endl "\n"

using namespace std;

template<typename T>
void printArray(T a) {
    for(auto i : a)
        cout << i << " ";

    cout << endl;
}

template<typename T>
void print2DArray(T a) {
    for(auto i : a) {
        for(auto j : i)
            cout << j << " ";

        cout << endl;
    }
    cout << endl;
}

int main(int argc, char *argv[])
{
    std::ios::sync_with_stdio(false);
    cin.tie(NULL);

    double a = 2;
    double b = 1;

    cin >> a >> b;

    /* cout << a << endl; */
    /* cout << b << endl; */
    /* cout << b / a << endl; */
    cout << (int) ceil(b / a) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:50:19: error: 'ceil' was not declared in this scope
   50 |     cout << (int) ceil(b / a) << endl;
      |                   ^~~~
Language: C++

//
// Created by kuroneko on 2019-09-01.
//

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>

using namespace std;

typedef long long ll;

#define INF 1000000000000009LL
#define MOD 1000000007LL

typedef int Weight;
struct Edge {
    int src, dst;
    Weight weight;
    Edge(int src, int dst, Weight weight):src(src), dst(dst), weight(weight) {}
};

typedef vector<Edge> Edges;
typedef vector<Edges> Graph;

typedef vector<Weight> Array;
typedef vector<Array> Matrix;

int main() {
    int a, b; cin >> a >> b;
    int tap = a, res = 1;
    while (tap < b) {
        tap += a - 1;
        res++;
    }
    cout << res << endl;
}
//
// Created by kuroneko on 2019-09-01.
//

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>

using namespace std;

typedef long long ll;

#define INF 1000000000000009LL
#define MOD 1000000007LL

typedef int Weight;
struct Edge {
    int src, dst;
    Weight weight;
    Edge(int src, int dst, Weight weight):src(src), dst(dst), weight(weight) {}
};

typedef vector<Edge> Edges;
typedef vector<Edges> Graph;

typedef vector<Weight> Array;
typedef vector<Array> Matrix;

int main() {
    int a, b; cin >> a >> b;
    int tap = a, res = 1;
    while (tap < b) {
        tap += a - 1;
        res++;
    }
    cout << res << endl;
}


Compiler output:
a.cc:56:8: error: redefinition of 'struct Edge'
   56 | struct Edge {
      |        ^~~~
a.cc:18:8: note: previous definition of 'struct Edge'
   18 | struct Edge {
      |        ^~~~
a.cc:68:5: error: redefinition of 'int main()'
   68 | int main() {
      |     ^~~~
a.cc:30:5: note: 'int main()' previously defined here
   30 | int main() {
      |     ^~~~
Language: C++

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

#define rep2(x,fr,to) for(int (x)=(fr);(x)<(to);(x)++)
#define rep(x,to) for(int (x)=0;(x)<(to);(x)++)
#define repr(x,fr,to) for(int (x)=(fr);(x)>=(to);(x)--)
#define all(c) (c).begin(),(c).end()
#define sz(v) (int)(v).size()
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::cpp_int bigint;

using namespace std;
typedef long long ll; typedef vector<int> VI; typedef pair<int,int> pii;
const int MD = (int)1e9 + 7; typedef vector<ll> VL;
void dbg(){ cerr << "\n"; }  template <class T, class ...T2>
void dbg(const T& fst, const T2&...rst){ cerr << fst << ": "; dbg(rst...); }

int main()
{

	cin.tie(0); ios_base::sync_with_stdio(false);
	int a,b, ans =0; 
	cin >> a >>b;
	
	if(a>=b) {puts("1");return 0;}
	ans =1; b-=a-1;
	rep(i, 300){
		if(b<=0) break;
		if(a>=b){ ans++; break;}
		b-=a-1;
	}
	
	cout << ans <<"\n";
	return 0;
	
	
}



Compiler output:
a.cc:10:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   10 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  int now=0;
  int cnt=0;
  cin >> a >> b;
  while(now<b){
    if(now==0) now+=a;
    else{
      now+=a;
      now-=1;
    }
    cnt++;
  }
  cout<<cnt;


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected '}' at end of input
   16 |   cout<<cnt;
      |             ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

#define ll long long
#define ull unsigned long long
#define N 100005
#define mod 998244353 
#define boost ios_base::sync_with_stdio(false);cin.tie(0)
#define prec(n) fixed<<setprecision(n)

#define mii unordered_map<int,int>
#define mll unordered_map<ll,ll>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pp pop_back
#define vii vector<int>
#define vll vector<ll>
#define vpp vector<pii>
#define all(c) c.begin(),c.end()
#define tr(it,c) for(it = c.begin() ; it!=c.end() ; it++)
int inf = INT_MAX ;
ll modulo(ll num,ll MOD=mod){ return ((num%MOD)+MOD)%MOD;} // for negative integer
ll power(ll b,ll e,ll MOD=mod){ll ans=1; while(e){if(e%2) ans=(ans*b)%MOD; b=(b*b)%MOD; e/=2;} return ans;}
ll inv(ll num,ll MOD=mod){ return power(modulo(num),MOD-2,MOD); }
ll gcd(ll a,ll b){ return ((b==0) ? a:gcd(b,a%b));}

int main(){
	boost;
	kspace/output.txt", "w", stdout);
	//#endif

	int n,m;
	cin>>n>>m;

	double b = (double)m/n;
	//cout<<b;
	int c = 0;

	if(b!=(int)b)
		c = (int)b+1;
	else
		c = (int)b;
	cout<<c;
	return 0;
}

Compiler output:
a.cc:33:31: warning: missing terminating " character
   33 |         kspace/output.txt", "w", stdout);
      |                               ^
a.cc:33:31: error: missing terminating " character
   33 |         kspace/output.txt", "w", stdout);
      |                               ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:33:9: error: 'kspace' was not declared in this scope; did you mean 'isspace'?
   33 |         kspace/output.txt", "w", stdout);
      |         ^~~~~~
      |         isspace
a.cc:33:16: error: 'output' was not declared in this scope
   33 |         kspace/output.txt", "w", stdout);
      |                ^~~~~~
a.cc:37:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   37 |         cin>>n>>m;
      |              ^
      |              yn
a.cc:37:17: error: 'm' was not declared in this scope; did you mean 'tm'?
   37 |         cin>>n>>m;
      |                 ^
      |                 tm
Language: C++

import sys
input = sys.stdin.readline
from operator import itemgetter

def main():
	a, b = map(int, input().strip().split())
	ans = 0
	while True:
		if b <= a + ans * (a-1):
			print(ans+1)
			return
		ans += 1

if __name__ == '__main__':
	main()


Compiler output:
a.cc:14:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   14 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;
int main(){
  int a,b;
  int now=0;
  int cnt=0;
  cin >> a >> b;
  while(now>=b){
    if(now==0) now+=a;
    else{
      now+=a;
      now-=1;
    }
    cnt++;
  }
  cout<<cnt;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected '}' at end of input
   16 |   cout<<cnt;
      |             ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

  cout << i << endl;
  

  return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
 	int a,b,ans=1;
  	cin>>a>>b;
  	long long now=a;
  	while(now<b){
     	 now+=n-1;
      	ans++;
    }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'n' was not declared in this scope
    8 |          now+=n-1;
      |               ^
Language: C++

from math import log, ceil, floor

a, b = map(int, input().split(" "))

ans = floor(log(b, a))
d = b - a ** ans
ans += ceil(d / a)
print(ans)


Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from math import log, ceil, floor
      | ^~~~
Language: C++

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

int main() {
    ios::sync_with_stdio(0); cin.tie(0);
    int a, b;
    cin >> a >> b;
    int act = 1;
    int ans = 0;
    while(act < b) {
        act -= 1;
        act += a;
        ans ++;
    }
    cout << ans << endl
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |     cout << ans << endl
      |                        ^
      |                        ;
   16 | }
      | ~
Language: C++

#include <bits/stdc++.h>

#define   ll             long long int
#define   pb             push_back
#define   mp             make_pair
#define   fast           ios_base::sync_with_stdio(false);cin.tie(NULL);
#define   ff             first
#define   ss             second
#define   nil           -10e+9
#define   initial         0
#define   waiting         1
#define   visit           2
#define   inf            10e+9
#define   mx             200005
#define   mxx            1000005
#define   mod            1000000007
#define   pr             pair<ll,ll>
#define   pp_queue       priority_queue<pr,vector<pr>, greater<pr> >
#define   dp_queue       priority_queue<int,vector<int>, greater<int> >
#define   sp_queue       priority_queue<int>
#define   fr(i,p,q)      for(int i=p;i<q;++i)
#define   frr(i,p,q)     for(int i=p;i<=q;++i)
#define   mem(a,b)       memset(a,b,sizeof(a))
#define   len(a)         (int)a.size()
#define   input          freopen("input.txt", "r", stdin);
#define   output         freopen("output.txt", "w", stdout);
#define   debug(arr,j,n) fr(i,j,n) cout<<arr[i]<<" ";

ll power(ll a,ll b){ll aa=1;while(b){if(b&1){aa=aa*a;aa%=mod;}a=a*a;a%=mod;b/=2;}return aa;}

using namespace std;

int main()
{
  int a,b;
  cin>>a>>b;
  cout<<ceil(b/(a*1.0));
  return 0;
}
#include <bits/stdc++.h>

#define   ll             long long int
#define   pb             push_back
#define   mp             make_pair
#define   fast           ios_base::sync_with_stdio(false);cin.tie(NULL);
#define   ff             first
#define   ss             second
#define   nil           -10e+9
#define   initial         0
#define   waiting         1
#define   visit           2
#define   inf            10e+9
#define   mx             200005
#define   mxx            1000005
#define   mod            1000000007
#define   pr             pair<ll,ll>
#define   pp_queue       priority_queue<pr,vector<pr>, greater<pr> >
#define   dp_queue       priority_queue<int,vector<int>, greater<int> >
#define   sp_queue       priority_queue<int>
#define   fr(i,p,q)      for(int i=p;i<q;++i)
#define   frr(i,p,q)     for(int i=p;i<=q;++i)
#define   mem(a,b)       memset(a,b,sizeof(a))
#define   len(a)         (int)a.size()
#define   input          freopen("input.txt", "r", stdin);
#define   output         freopen("output.txt", "w", stdout);
#define   debug(arr,j,n) fr(i,j,n) cout<<arr[i]<<" ";

ll power(ll a,ll b){ll aa=1;while(b){if(b&1){aa=aa*a;aa%=mod;}a=a*a;a%=mod;b/=2;}return aa;}

using namespace std;

int main()
{
  int a,b;
  cin>>a>>b;
  cout<<ceil(b/(a*1.0));
  return 0;
}


Compiler output:
a.cc:68:4: error: redefinition of 'long long int power(long long int, long long int)'
   68 | ll power(ll a,ll b){ll aa=1;while(b){if(b&1){aa=aa*a;aa%=mod;}a=a*a;a%=mod;b/=2;}return aa;}
      |    ^~~~~
a.cc:29:4: note: 'long long int power(long long int, long long int)' previously defined here
   29 | ll power(ll a,ll b){ll aa=1;while(b){if(b&1){aa=aa*a;aa%=mod;}a=a*a;a%=mod;b/=2;}return aa;}
      |    ^~~~~
a.cc:72:5: error: redefinition of 'int main()'
   72 | int main()
      |     ^~~~
a.cc:33:5: note: 'int main()' previously defined here
   33 | int main()
      |     ^~~~
Language: C++

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

template<typename T>
void rin(T &t)
{
	t=0;int k=1;char c=getchar();
	while(!isdigit(c)){if(c=='-')k=-1;c=getchar();}
	while(isdigit(c)){t=t*10+c-'0';c=getchar();}
	t*=k;
}

int main()
{
	int a,b
	cin>>a>>b;
	int ans=1;
	for(ans;ans<=20;ans++)if(ans*a>=b)break;
	cout<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected initializer before 'cin'
   16 |         cin>>a>>b;
      |         ^~~
a.cc:18:41: error: 'b' was not declared in this scope
   18 |         for(ans;ans<=20;ans++)if(ans*a>=b)break;
      |                                         ^
Language: C++

#include <bits/stdc++.h>
#define N 1000005
#define ll long long int 	
#define MP make_pair
#define pb push_back
#define ppb pop_back
#define sp " "
#define endl "\n"
#define fi first
#define se second
#define ii pair<int,int>
#define lli pair<ll,ll>
#define fast cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false)
#define fast2 freopen ("kmp.in","r",stdin);freopen ("kmp.out","w",stdout);
#define mod 1000000009
#define fs(x,y) for(int i=1;i<=y;i++) cin>>x[i]
#define fo(i,x,y) for(int i=x;i<=y;i++)
#define INF 1000000000005
using namespace std;

ll n,m,ar[N],sum;

char s[N],c[N];

int main()
{
	fast;
	cin>>n>>m;
	ll x=1;
	while(n<m)
	{
		sum++;
		x*=n;
		n*=a;
	}
	cout<<sum;


}



/*     cd onedrive\desktop\kod
cls


*/

Compiler output:
a.cc: In function 'int main()':
a.cc:34:20: error: 'a' was not declared in this scope
   34 |                 n*=a;
      |                    ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
const double PI = acos(-1);
const double EPS = 1e-15;
long long INF=(long long)1E17;
#define i_7 (long long)(1E9+7)
long mod(long a){
    long long c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
using namespace std;
bool prime_(int n){
  if(n==1){
    return false;
  }else if(n==2){
    return true;
  }else{
    for(int i=2;i<=sqrt(n);i++){
      if(n%i==0){
        return false;
      }
    }
    return true;
  }
}

long long gcd_(long long a, long long b){
  if(a<b){
    swap(a,b);
  }
  if(a%b==0){
    return b;
  }else{
    return gcd_(b,a%b);
  }
}
 
long long lcm_(long long x, long long y){
  return (x/gcd_(x,y))*y;
}
 
class UnionFind {
    public:
    //各頂点の親の番号を格納する。その頂点自身が親だった場合は-(その集合のサイズ)を入れる。
    vector<int> Parent;
    
    //クラスを作るときは、Parentの値を全て-1にする。
    //以下のようにすると全てバラバラの頂点として解釈できる。
    UnionFind(int N) {
        Parent = vector<int>(N, -1);
    }
    
    //Aがどのグループに属しているか調べる
    int root(int A) {
        if (Parent[A] < 0) return A;
        return Parent[A] = root(Parent[A]);
    }
    
    //自分のいるグループの頂点数を調べる
    int size(int A) {
        return -Parent[root(A)];//先祖をrootで取っておきたい。
    }
    
    //AとBをくっ付ける
    bool connect(int A, int B) {
        //AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける
        A = root(A);
        B = root(B);
        if (A == B) {
            //すでにくっついてるからくっ付けない
            return false;
        }
        
        //大きい方(A)に小さいほう(B)をくっ付けたい
        //大小が逆だったらAとBをひっくり返す。
        if (size(A) < size(B)) swap(A, B);
        
        //Aのサイズを更新する
        Parent[A] += Parent[B];
        //Bの親をAに変更する
        Parent[B] = A;
        
        return true;
    }
};


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


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

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

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

	cout<<ceil(1.*(B-1)/(A-1))<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'ceil' was not declared in this scope
   10 |         cout<<ceil(1.*(B-1)/(A-1))<<endl;
      |               ^~~~
Language: C

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

int main(void) {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) cin >> H.at(i);
  int count = 0;
  int countmax = 0;
  for (int i = 0; i < N-1; i++) {
    if (H.at(i) >= H.at(i+1)) {
      count++;
      if (countmax < count) countmax = count;
    } else {
      count = 0;
    }
  }
  cout << countmax << endl;
}

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

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

int main() {
	int n;
	vector<int> h(n);
	for (int i = 0; i < n; i++)
		cin >> h[i];
	
	int ans = 0, tmp = 0;
	for (int i = 0; i < n; i++) {
		if (a[i] >= a[i+1]) tmp++;
		else {
			ans = max(ans, tmp);
			tmp = 0;
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'a' was not declared in this scope
   12 |                 if (a[i] >= a[i+1]) tmp++;
      |                     ^
Language: C++

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

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	long long a[n];
	for (int i = 0; i < n; i++) cin >> a[i];
	long long prev = 0;
	long long ans = 1;
	for (int i = 0; i < n; i++) {
		if (a[i] > prev) count++;
		ans = max(ans, count);
		prev = a[i];
	}
	cout << ans << '\n';
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:39: error: no post-increment operator for type
   14 |                 if (a[i] > prev) count++;
      |                                       ^~
a.cc:15:26: error: no matching function for call to 'max(long long int&, <unresolved overloaded function type>)'
   15 |                 ans = max(ans, count);
      |                       ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long long int]'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:36: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const long long int&'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |                         ~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:15:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   15 |                 ans = max(ans, count);
      |                       ~~~^~~~~~~~~~~~
Language: C++

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

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int n;
	cin >> n;
	long long a[n];
	for (int i = 0; i < n; i++) cin >> a[i];
	long long prev = 0;
	long long ans = 1;
	for (int i = 0; i < n; i++) {
		if (a[i] > prev) count++;
		ans = max(ans, count)
		prev = a[i];
	}
	cout << ans << '\n';
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:39: error: no post-increment operator for type
   14 |                 if (a[i] > prev) count++;
      |                                       ^~
a.cc:15:26: error: no matching function for call to 'max(long long int&, <unresolved overloaded function type>)'
   15 |                 ans = max(ans, count)
      |                       ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = long long int]'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:36: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const long long int&'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |                         ~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:15:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   15 |                 ans = max(ans, count)
      |                       ~~~^~~~~~~~~~~~
Language: C++

#include<iostream>
int main(){
  int i,h[100010],sum=0,ans=0;
  int n;
  cin >> n;
  for(i=0;i<n;i++){
    cin >> h[i];
  }
  for(i=1;i<n;i++){
    if(h[i-1]>=h[i]){
      sum++;
    }
    else{
      ans=max(ans,sum);
      sum=0;
    }
  }
  ans=max(ans,sum);
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n;
      |   ^~~
      |   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:14:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
   14 |       ans=max(ans,sum);
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:18:7: error: 'max' was not declared in this scope; did you mean 'std::max'?
   18 |   ans=max(ans,sum);
      |       ^~~
      |       std::max
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  ll n; cin >> n;
  vector<ll> v(n);
  rep(i, n) cin >> v[i];
  lll ans = 0;
  
  rep(i, n-1){
    if(v[i] >= v[i+1]) ans++;
    else break;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'lll' was not declared in this scope; did you mean 'll'?
   11 |   lll ans = 0;
      |   ^~~
      |   ll
a.cc:14:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     if(v[i] >= v[i+1]) ans++;
      |                        ^~~
      |                        abs
a.cc:17:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

int main() {
	int N;
	cin >> N;
	int tmp;
	cin >> tmp;
	int cnt = 0;
	int ans = 0;
	for (int i = 1; i < N; i++)
	{
		int s;
		
		cin >> s;
		if (tmp >= s) {
			cnt++;
			ans = max(ans, cnt);
		}
		else {
			
			cnt = 0;
		}
		tmp = s;
	}
	
	cout << ans << endl;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> N;
      |         ^~~
a.cc:15:31: error: 'max' was not declared in this scope
   15 |                         ans = max(ans, cnt);
      |                               ^~~
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << ans << endl;
      |         ^~~~
a.cc:24:24: error: 'endl' was not declared in this scope
   24 |         cout << ans << endl;
      |                        ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; ++i) cin >> a[i];
  int res = 0;
  for (int i = 0; i < N;) {
    int j = i + 1;
    while (j < N && a[j] <= a[j-1]) ++j;
    res = max(j - i - 1);
    i = j;
  }
  cout << res << endl;
}

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

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

int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; ++i) cin >> a[i];
  int res = 0;
  for (int i = 0; i < N;) {
    int j = i + 1;
    while (j < N && a[j] <= a[j-1]) ++j;
    res = max(j - i - 1);
  }
  cout << res << endl;
}

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

#include <stdio.h>
int main(void){
  int N;
  int H[1000010];
  int i;
  scanf("%d",&N);
  for(i=1;i<=N;i++){
    scanf("%d",&H[i]);
  }
  
  int max=0;
  int s=0;
  for(i=N;i>=1;i--){
    if(H[i]<=H[i-1]){
      s=s+1;
    }
    else{
      if(max<s){
        max=s;
      }
    s=0;
    }
  }
  printf("%d\n

Compiler output:
main.c: In function 'main':
main.c:24:10: warning: missing terminating " character
   24 |   printf("%d\n
      |          ^
main.c:24:10: error: missing terminating " character
   24 |   printf("%d\n
      |          ^~~~~
main.c:24:3: error: expected expression at end of input
   24 |   printf("%d\n
      |   ^~~~~~
main.c:24:3: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    int N;
    cin >> N;
    int H, O = -1, P = 0, Q = 0;
    for (int i = 0; i < N; i++) {
      cin >> H;
      if (H <= O) {cnt++;} 
      else {if (Q < P) {
        Q = P;
        P = 0;
      }
      O = curr;
    }
    cout << max(Q, P) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |       if (H <= O) {cnt++;}
      |                    ^~~
      |                    int
a.cc:14:11: error: 'curr' was not declared in this scope
   14 |       O = curr;
      |           ^~~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) {cin >> H.at(i);}
  for (int i = 0; i < N; i++) {
    int O = 0;
    for (int j = 0; j < N; j++) {
      if (H.at(i) >= H.at(j)) {break;}
      i++;
    }
    
  }
  cout <<  << endl;
}

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

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

int n ;
cin>>n;
int a[n];   
for (int i = 0; i < n; ++i)
{
	cin>>a[i];
}
int ans = 0;
int max1 = 0;
int cur = a[0];
for (int i = 1; i <n; ++i)
{
   //cur = a[0];
  if(a[i] <= cur){
  	ans++;
  	cur = a[i];
  }
  else{

  	/*
  	if(ans > max1){
  		max1 = ans;*/
  	ans = 0;
  	cur = a[i];
  	ans = max(ans , max1);
  
  }
}

  /*//ans = max(ans, max1);
  if(ans > max1){
  	max1 = ans;
  }*/  
cout<<ans<<endl;
}


}

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

#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define r0 return 0
#define INF (int)1e15
#define MOD 1000000007

 int main(){

 long long n,c=0,ans=0;
 cin>>n;

  int v[n];

 for(int i=0;i<n;i++){
   cin>>v[i];
    }

    for(int i=1;i<n;i++){

        if(a[i] <=a[i-1])
            ++c;
        else
            c = 0;

      ans = max(ans,c);
    }

  cout<<ans<<endl;

 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: 'a' was not declared in this scope
   31 |         if(a[i] <=a[i-1])
      |            ^
Language: C++


#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define r0 return 0
#define INF (int)1e15
#define MOD 1000000007

 int main(){

 long long n,c=0,ans=0;
 cin>>n;

  int v(n)

 for(int i=0;i<n;i++){
   cin>>v[i];
    }

    for(int i=1;i<n;i++){

        if(a[i] <=a[i-1])
            ++c;
        else
            c = 0;

      ans = max(ans,c);
    }

  cout<<ans<<endl;

 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected ',' or ';' before 'for'
   26 |  for(int i=0;i<n;i++){
      |  ^~~
a.cc:26:14: error: 'i' was not declared in this scope
   26 |  for(int i=0;i<n;i++){
      |              ^
a.cc:32:12: error: 'a' was not declared in this scope
   32 |         if(a[i] <=a[i-1])
      |            ^
Language: C++

// AUTHOR : Kishan Srivastav
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
#define in freopen("input.txt", "r", stdin)
#define out freopen("output.txt", "w", stdout)
#define ios ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);


int main() {
	ios
#ifndef ONLINE_JUDGE
	in;
	out;
#endif
	int n;
	cin>>n;
	int arr[n];
	for(int i = 0 ; i < n ; i++){
		cin>>arr[i];
	}
	ll count = 0 ;
	ll ans = 0;
	for (int i = 0; i < n; i++){
		if(arr[i+1] <= arr[i]){
			ount++;
    		ans = max(ans, count);;
		}else{
			count = 0;
		}
	}
	//ans = max(ans,count);
	cout<<ans<<endl;

}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  int M=0;
  int L=0;
  cin>>N;
  vector<long long>vec(N);
  vector<long long>v(N-1);
  for(int X=0;X<N;X++){
    cin>>vec.at(X);
    if(X>0 && vec.at(X)<=vec.at(X-1)){
      M++;
    }
    else if(X>0 && vec.at>vec.at(X-1)){
      if(M>L){
        L=M;
        M=0;
      }
    }
  }
  cout<<max(L,M)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to binary 'operator>'
   16 |     else if(X>0 && vec.at>vec.at(X-1)){
      |                    ~~~~~~^~~~~~~~~~~~
      |                        |        |
      |                        |        __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}
      |                        <unresolved overloaded function type>
Language: C++

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

int main(){
  
  long long n;
  cin >> n;
  vector<long long> a(n);
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  long long ans=0;
  long long cnt;
  for(int i=1; i<n; i++){
    if(a[i]<=a[i-1]){
      cnt++;
    }
    else{
      cnt=0;
    }
    ans=max(ans,cnt);
  }


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

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

int main(){
  
  long long n;
  cin >> n;
  vector<long long> a(n);
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  long long ans=0;
  ll cnt;
  for(int i=1; i<n; i++){
    if(a[i]>=a[i-1]){
      cnt++;
    }
    else{
      cnt=0;
    }
    ans=max(ans,cnt);
  }
  
  cout << ans << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'll' was not declared in this scope
   13 |   ll cnt;
      |   ^~
a.cc:16:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   16 |       cnt++;
      |       ^~~
      |       int
a.cc:19:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |       cnt=0;
      |       ^~~
      |       int
a.cc:21:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   21 |     ans=max(ans,cnt);
      |                 ^~~
      |                 int
Language: C++

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

int main(){
  
  long long n;
  cin >> n;
  vector<ll> a(n);
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  long long ans=0;
  ll cnt;
  for(int i=1; i<n; i++){
    if(a[i]>=a[i-1]){
      cnt++;
    }
    else{
      cnt=0;
    }
    ans=max(ans,cnt);
  }
  
  cout << ans << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'll' was not declared in this scope
    8 |   vector<ll> a(n);
      |          ^~
a.cc:8:12: error: template argument 1 is invalid
    8 |   vector<ll> a(n);
      |            ^
a.cc:8:12: error: template argument 2 is invalid
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |     cin >> a[i];
      |             ^
a.cc:13:5: error: expected ';' before 'cnt'
   13 |   ll cnt;
      |     ^~~~
      |     ;
a.cc:15:9: error: invalid types 'int[int]' for array subscript
   15 |     if(a[i]>=a[i-1]){
      |         ^
a.cc:15:15: error: invalid types 'int[int]' for array subscript
   15 |     if(a[i]>=a[i-1]){
      |               ^
a.cc:16:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   16 |       cnt++;
      |       ^~~
      |       int
a.cc:19:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |       cnt=0;
      |       ^~~
      |       int
a.cc:21:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   21 |     ans=max(ans,cnt);
      |                 ^~~
      |                 int