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

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

int main() {
  unsigned int K;
  std::cin >> K;

  for (size_t i = 0; i < K; ++i) {
    unsigned int group_index = i / 9;
    unsigned int index = i % 9 + 1;
    std::cout << std::pow(10, group_index) * (index + 1) - 1 << std::endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'pow' is not a member of 'std'
   12 |     std::cout << std::pow(10, group_index) * (index + 1) - 1 << std::endl;
      |                       ^~~
Language: C++

#include <iostream>
#include <vector>
#include <set>
#include <regex>
#include <math.h>
#include "ConsoleApplication1.h"

using namespace std;

#define FOR(i, a, b) for (auto i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define DEBUG(_debuged) cerr << #_debuged << ":" << _debuged << endl;

struct L
{
	int t;
	int x;
	int y;
};

vector<int> loadn(int n)
{
	vector<int> v(n);
	REP(i, n)
		cin >> v[i];
	return v;
}

uint64_t modpower(const unsigned int N, const unsigned int K, const unsigned int MOD)
{
	uint64_t ret = 1;
	uint64_t k2 = N;
	REP(i, 31)
	{
		if ((K >> i) & 0x1)
		{
			ret *= k2;
			ret = ret % MOD;
		}
		k2 = (k2 * k2) % MOD;
	}
	return ret;
}

class ModCombinationMemo
{
public:
	const unsigned int N;
	const unsigned int MOD;
	vector<uint64_t> memo = { 1 };

	ModCombinationMemo(uint32_t N, uint32_t MOD)
		: N(N), MOD(MOD)
	{
	}

	uint64_t c(uint64_t k)
	{
		if (memo.size() > k)
		{
			return memo[k];
		}

		FOR(i, memo.size(), k + 1)
		{
			const auto number = (memo[i - 1] * (N - i + 1)) % MOD;
			const auto reverceDeon = modpower(i, MOD - 2, MOD);
			memo.push_back(number * reverceDeon % MOD);
		}

		return memo[k];
	}
};

uint64_t c(const unsigned int N, const unsigned int K, const unsigned int MOD)
{
	if (K == 0)
	{
		return 1;
	}

	uint64_t n = 1, k = 1;

	REP(i, K)
	{
		n *= N - i;
		k *= i + 1;

		n = n % MOD;
		k = k % MOD;
	}

	uint64_t powerk = modpower(k, MOD - 2, MOD);

	return (n * powerk) % MOD;
}

unsigned trailing_zeros(unsigned n)
{
	if (!n)
		return -1;
	unsigned int c = 32; // c will be the number of zero bits on the right
	n &= -(signed)n;
	if (n)
		c--;
	if (n & 0x0000FFFF)
		c -= 16;
	if (n & 0x00FF00FF)
		c -= 8;
	if (n & 0x0F0F0F0F)
		c -= 4;
	if (n & 0x33333333)
		c -= 2;
	if (n & 0x55555555)
		c -= 1;
	return c;
}

unsigned int digitssum(uint64_t source) {
	unsigned int result = 0;

	while (source > 0) {
		result += source % 10;
		source /= 10;
	}

	return result;
}

unsigned int digitssum(string source) {
	unsigned int result = 0;

	REP (i, source.length()){
		result += source[i] - '0';
	}

	return result;
}

struct oishisa
{
	int64_t x;
	int64_t y;
	int64_t z;
};

int64_t cint()
{
	int64_t i;
	cin >> i;
	return i;
}

int main(int argc, char *argv[], char *envp[])
{
	const int64_t K(cint());


	vector<uint64_t> v;
	v.push_back(0);
	FOR(sum, 1, 150) {
		string st;

		if (sum % 9) {
			st.push_back(('0' + sum % 9));
		}
		REP(digits, sum / 9) {
			st.push_back('9');
		}

		double max = stod(st) / digitssum(st);

		v.push_back(max);
	}

	uint64_t out = 0;
	uint64_t i = 0;
	while (out < K) {
			i++;
		
		if (i > 10000) {
			uint64_t k =  pow(10, uint64_t(log10(i) - 3)) - 1;
			i += (k - i % (k + 1));
		}

		const auto value = double(i) / digitssum(i);

		const auto nextMin = v[digitssum(i) + 1];

		if (value <= nextMin) {
			cout << i << endl;
			out++;
		}
	}
}


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

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

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

typedef long long ll;
typedef pair<ll, int> ll_i;

double f(ll N){
    ll n, dig;
    n = N;
    ll sum = 0;

    while(n){
        dig = n % 10;
        sum = sum + dig;
        n = n / 10;
    }
    return (double)N / sum;
}

int main() {
    ll K;
    cin >> K;
    ll a = 1, order=1;
    for(int i = 0; i < K; i++){
        if(n > 300){
            //break;
            cout << "sb" << endl;
        }
        cout << (ll)a << endl;
        if (f(a + pow(10, order-1)) > f(a + pow(10.0, order*1.0))){
            order++;
        }
        a += pow(10.0, order-1*1.0);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:12: error: 'n' was not declared in this scope
   28 |         if(n > 300){
      |            ^
Language: C

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

int main()
{
int k, snk=0, pw=0;
long num=0;

scanf("%d", &k);

while(snk<k) {
	for(i=0; i<9 && snk<k ;i=0) {
		num += powl(10,pw);
		printf("%d", num);
		snk++;
     	if(snk!=k) printf("\n");
	}
	pw++;
}
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:13: error: 'i' undeclared (first use in this function)
   12 |         for(i=0; i<9 && snk<k ;i=0) {
      |             ^
main.c:12:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
    int k;
    scanf("%d", &k);
    int i, j;
    for (i = 0;; i++)
    {
        for (j = 1; j < 10; j++)
        {
            if (i == 0)
                printf("%d\n", j);
            else
                printf("%.0lf\n", j*pow(10, i) + 9);
            k--;
            if (k == 0)
                break;
        }
        if (k == 0)
            break;
    }
    return 0;


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

#include "bits/stdc++.h"
using namespace std;
#define MOD 1000000007
#define FOR(i,a,b) for(long long i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)
#define ITR(itr,mp) for(auto itr = (mp).begin(); itr != (mp).end(); ++itr)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<P> Graph;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);

  int n;
  cin >> n;
  
  ll num[135];
  ll cnt = 1;
  REP(i,9){
    num[i] = i+1;
  }
  
  FOR(i,9,136){
    num[i] = num[i-9]*10+9;
  }
  
  REP(i,n){
    cout << num[i] << endl;
  }
  
  double NUM[135];
  REP(i,135){
    NUM[i] = (double)num[i]/i;
  }
  
  int cnt = 0;
  REP(i,135){
    bool f = true;
    FOR(j,i+1,n){
      if(NUM[j] < NUM[i]){
        f = false;
        break;
      }
      if(f){
        cout << num[i] << endl;
        cnt++;
      }
    }
    if(cnt == n) break;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:7: error: conflicting declaration 'int cnt'
   39 |   int cnt = 0;
      |       ^~~
a.cc:21:6: note: previous declaration as 'll cnt'
   21 |   ll cnt = 1;
      |      ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<math.h>
using namespace std;
long funcS(long N);
long main(){
    long K;
    cin>>K;
    long i=1,num=1,nines=0;
    float sunuke=0;
    long pp=0;
    while(i<=K){
        long p;
        if(num>=10){
            num=1;
            nines++;
        }
        p=num;

        // prlongf("%d",num);
        for(long k=0;k<nines;k++){
            // prlongf("9");
            p*=10;
            p+=9;
        }
        // prlongf("\n");
        if(pp!=0){
            p-=pow(10,nines-1)*pp;
        }
        long funs=funcS(p);
        if(sunuke <= (float)p/funs){
            cout<<p<<endl;
            sunuke= (float)p/funs;
            pp=0;
        }else{
            pp++;
        }
        num++;
        i++;
    }
}
long funcS(long N){
    long keta=0;
    for(long i=N;i!=0;keta++){
        i/=10;
    }
    // cout<<keta<<endl;
    long num=0;
    long temN=N;
    long temN2=N;
    for(long i=keta-1;i>=0;i--){
        temN/=10;
        num+=temN2-temN*10;
        temN2/=10;
    }
    return num;
}
// (long num,long deep){
//     while(tem!=num){
//         ones++;

//         tem=
//     }
//     return target;
// }

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<math.h>
using namespace std;
long funcS(long N);
long main(){
    long K;
    cin>>K;
    long i=1,num=1,nines=0;
    float sunuke=0;
    long pp=0;
    while(i<=K){
        long p;
        if(num>=10){
            num=1;
            nines++;
        }
        p=num;

        // prlongf("%d",num);
        for(long k=0;k<nines;k++){
            // prlongf("9");
            p*=10;
            p+=9;
        }
        // prlongf("\n");
        if(pp!=0){
            p-=pow(10,nines-1)*pp;
        }
        long funs=funcS(p);
        if(sunuke <= (float)p/funs){
            printf("%d\n",p);
            sunuke= (float)p/funs;
            pp=0;
        }else{
            pp++;
        }
        num++;
        i++;
    }
}
long funcS(long N){
    long keta=0;
    for(long i=N;i!=0;keta++){
        i/=10;
    }
    // cout<<keta<<endl;
    long num=0;
    long temN=N;
    long temN2=N;
    for(long i=keta-1;i>=0;i--){
        temN/=10;
        num+=temN2-temN*10;
        temN2/=10;
    }
    return num;
}
// (long num,long deep){
//     while(tem!=num){
//         ones++;

//         tem=
//     }
//     return target;
// }

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <utility>
# include <stack>
# include <queue>
# include <list>
# include <bitset>
# include <complex>
#include<limits.h>
#include<unordered_map>
#include<unordered_set>
#include<deque>
#include<cstdio>
using namespace std;
typedef long long int ll;
const int N = 1000000;
const int mod = 1000000007;
const int INF = 1 << 30;
int dx[4] = { 0,1,0,-1 }, dy[4] = { 1,0,-1,0 };
#define rep(i,n) for(ll i=(ll)0;i<(ll)n;++i)
#define vin(v,n) rep(i,n)cin>>v[i];
#define ALL(x) x.begin(),x.end()
#define pp pair<ll,ll>
#define sz size()
#define fi first
#define se second
#define pb push_back
#define prqueue priority_queue<ll,vector<ll>,greater<ll>>
string YN(bool b) { return(b ? "YES" : "NO"); }
string yn(bool b) { return(b ? "Yes" : "No"); }
ll k;
vector<ll>v;
int main() {
	cin >> k;
	rep(i, 9)v.pb(i + 1);
	rep(i, 9)v.pb((i + 1) * 10 + 9);
	rep(i, 9)v.pb((i + 1) * 100 + 9);
	ll n = 99,m=999;
	rep(j, 9) {
		for (int i = 10; i <= 18 + j * 10; ++i)v.pb(pow(10, 2 + j)*i + n);
		for (int i = j + 1; i <= 9; ++i)v.pb(pow(10, 3 + j)*i + m);
		if(j!=8)n += pow(10, 2 + j) * 9; m += pow(10, 3 + j) * 9;
	}
	rep(j, 3) {
		for (int i = 10; i <= 99; ++i)v.pb(pow(10, j + 11)*i + m);
		for (int i = 100; i <= 108 + 10 * j; ++)v.pb(pow(10, j + 10)*i + n);
		n += pow(10, 11 + j) * 9; m += pow(10, 10 + j) * 9;
	}
	rep(i, k)cout << v[i] << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:53:56: error: expected primary-expression before ')' token
   53 |                 for (int i = 100; i <= 108 + 10 * j; ++)v.pb(pow(10, j + 10)*i + n);
      |                                                        ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<math.h>
using namespace std;
long funcS(long N);
long main(){
    long K;
    cin>>K;
    long i=1,num=1,nines=0;
    float sunuke=0;
    long pp=0;
    while(i<=K){
        long p;
        if(num>=10){
            num=1;
            nines++;
        }
        p=num;

        // prlongf("%d",num);
        for(long k=0;k<nines;k++){
            // prlongf("9");
            p*=10;
            p+=9;
        }
        // prlongf("\n");
        if(pp!=0){
            p-=pow(10,nines-1)*pp;
        }
        long funs=funcS(p);
        if(sunuke <= (float)p/funs){
            prlongf("%d\n",p);
            sunuke= (float)p/funs;
            pp=0;
        }else{
            pp++;
        }
        num++;
        i++;
    }
}
long funcS(long N){
    long keta=0;
    for(long i=N;i!=0;keta++){
        i/=10;
    }
    // cout<<keta<<endl;
    long num=0;
    long temN=N;
    long temN2=N;
    for(long i=keta-1;i>=0;i--){
        temN/=10;
        num+=temN2-temN*10;
        temN2/=10;
    }
    return num;
}
// (long num,long deep){
//     while(tem!=num){
//         ones++;

//         tem=
//     }
//     return target;
// }

Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:33:13: error: 'prlongf' was not declared in this scope; did you mean 'ulong'?
   33 |             prlongf("%d\n",p);
      |             ^~~~~~~
      |             ulong
Language: C++

#include<iostream>


int main() {

	double checksunuke[16];
	checksunuke[0] = 1.0;;
	int sunukebase = 19;

	for (int cntx = 1; cntx < 16; cntx++)
	{
		int outbase = sunukebase;
		int ninput = sunukebase;
		int nbase = 0;
		while (ninput > 0)
		{
			nbase += ninput % 10;
			ninput = ninput / 10;
		}
		checksunuke[cntx] = (double)outbase / nbase;
		int addn = (int)std::pow(10, (double)(cntx+1));
		sunukebase += addn;
	}

		int ninput = 0;
	int nbase = 0;
	std::cin >> ninput;
	int startint = 1;

	while (ninput > 0)
	{
		if (startint > 10e15)
		{
			std::cout << "err" << std::endl;
			break;
		}
		int outbase = startint;
		int ndd = startint;
		nbase = 0;

		int cnt = 0;
		while (ndd > 0)
		{
			nbase +=  ndd % 10;
			ndd =  ndd / 10;
			cnt++;
		}
		float output_b = (float)outbase / nbase;
		//std::cout << cnt << " "<< checksunuke[cnt - 1] << " "<< output_b << std::endl;
		if (checksunuke[cnt-1] >= output_b)
		{
			
			std::cout << startint  << std::endl;
			ninput--;
		}
		startint++;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:38: error: 'pow' is not a member of 'std'
   21 |                 int addn = (int)std::pow(10, (double)(cntx+1));
      |                                      ^~~
Language: C++

#include <stdio.h>

int main(void){
  int k, i;
  scanf("%d", &k);
  int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 28, 29, 37, 38, 39, 49, 57, 58, 59, 68, 69, 79, 87, 88, 89, 97, 98, 99};
  for(i = 0; i < 28; i++ ){
    printf("%d\n", a[i]);
    k--;
    if(k == 0)
      goto a;
  }
  int b = a[i-1];
  while(k != 0){
    b += 10;
    printf("%d\n",b);
    k--;
  }
  a:;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: jump to label 'a'
   19 |   a:;
      |   ^
a.cc:11:12: note:   from here
   11 |       goto a;
      |            ^
a.cc:13:7: note:   crosses initialization of 'int b'
   13 |   int b = a[i-1];
      |       ^
Language: C

#include<stdio.h>
int main(){
  long int k;
  for(int i=0; i<k; i++)
  {
    n=i;
    printf("%d",i%10+1);
    for(int j=0;j<i/10;j++)
    {
      printf("9");
    }
    printf("\n");
  }
  return 0;
}

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

#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <iostream>
typedef unsigned long long i64;
using namespace std;
map<i64, i64> m;
i64 dig = 10;
i64 next(i64 n) {
	if (n < 9) return n + 1;
	if (n < ((i64)9 * dig))
		n += dig;
	else {
		dig *= 10;
		n += dig;
	}
	return n;
}
void SnukeNumbers() {
	i64 K;
	cin >> K;
	i64 c = 0;
	i64 n = 1;

	while (c < K)
	{
		cout << n << "\n";
		n = next(n);
		c++;
	}
}

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

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#define rep(i,a,n) for(int i =(a);i<(n);i++)
#define urep(i,a,n) for(int i = (a);i>(n);i--)
#define all(x) (x).begin(),(x).end()
typedef long long ll;
using namespace std;

ll N, M, K;
bool flg = true;
int main() {
	ll ans = 0;
	ll num = 1;
	ll count = 9;
	cin >> K;
	rep(i, 0, K) {
		ans += num;
		count--;
		if (count == 0) {
			num *= 10;
			count = 9;
		}
		if (flg) {
			if (num == 100000000000) {
				flg = false;
				num /= 10;
			}
		cout << ans << endl;
	}
	cin >> N;
	return 0;
}


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

#include "bits/stdc++.h"
using namespace std;
#define MOD 1000000007
#define Nmax 200010
#define FOR(i,a,b) for(long long i=(a);i<(b);i++)
#define REP(i,n)  FOR(i,0,n)
#define ITR(itr,mp) for(auto itr = (mp).begin(); itr != (mp).end(); ++itr)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
typedef long long ll;
 
int main() {
	ll K;
	cin >> K;
	ll ans=0;
	int keta=0;
  	ll cnt=0;
  	bool flag=false;
  	ll ansa[Nmax]={};
	for(;;){
		for(ll j=2;j < 11;j++){
			ans=j*pow(10,keta)-1;
			if(ans>1000000000000000) {flag=true; break;}
          	ansa[i]=ans;
          	i++;
			cnt++;
			if(cnt>=K) {flag=true; break;}
		}
	keta++;
	if(flag) break;
	}
	keta=1;
	for(;;){
		for(ll j=2;j < 11;j++){
			ans=j*pow(10,keta)-2;
			ansa[i++]=ans;
			cnt++;
			if(cnt>=K) {flag=true; break;}
		}
	keta++;
	if(flag) break;
	}
  REP(i,K) cout << ansa[i] << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'i' was not declared in this scope
   24 |                 ansa[i]=ans;
      |                      ^
a.cc:36:30: error: 'i' was not declared in this scope
   36 |                         ansa[i++]=ans;
      |                              ^
Language: C++

#include<bits/stdc++.h>
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define rep(N) for (int i = 0; i < N; ++i)
#define Rep(a, b) for (int i = a; i < b; ++i)
#define For(i, N) for (int i = 0; i < N; ++i)
#define all(v) v.begin(), v.end()
#define rev(v) v.rbegin(), v.rend()
#define makei(N) int N; cin >> N;
#define makel(N) ll N; cin >> N;
#define makes(s) string s; cin >> s;
#define maked(d) double d; cin >> d;
#define makev(v, N) vi v(N); rep(N)cin >> v[i];
#define mod 1000000007
#define re return 0
#define distance(x1,y1,x2,y2) sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));

using namespace std;
using ll = long long int;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vector<bool>>;
using vs = vector<string>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using msi = map<string, int>;

template<typename T>
void say(T s) {
	cout << s << "\n";
}

template<typename T>
void say(vector<T> s) {
	auto itr = s.begin();
	cout << *(itr++);
	while (itr != s.end()) {
		cout << " " << *(itr++);
	}
	cout << "\n";
}

void yn(bool b) {
	if (b)say("Yes");
	else say("No");
}

template<typename T>
void maxi(T &a, T b) {
	a = max(a, b);
}

template<typename T>
void mini(T &a, T b) {
	a = min(a, b);
}

ll bitsum(ll a) {//aの10進数での各桁の和を返す
	int ans = 0;
	string s = to_string(a);
	const int N = s.size();
	for (char x : s) ans += x - '0';
	return ans;
}

int main() {
	double min1 = 1;
	double min2;
	int vs = 0;
	string s;
	makei(K);
	int cnt = 0;
	for (ll k = 0;; ++k) {
		for (ll l = 1;; ++l) {
			s = "";
			s += l + '0';
			rep(k)s += "9";
			ll n = stoi(s);
			min2 = (double)n / bitsum(n);
			if (min2 <= min1) {
				say(s);
				++cnt;
			}
			if (cnt >= K)re;
		}
	}

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

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

int main()
{
int k, snk=0, num=0, pw=0;

scanf("%d", &k);

int i=1;
for( ; snk<k; snk++) {
	for(; i%10==0 ;i++) {
		if(snk<k) break;
		num += pow(10,pw);
		printf("%d", num);
		
	}
	pow++;
	
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:12: error: lvalue required as increment operand
   18 |         pow++;
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
 	unsigned int K, A, B, C, D, E, F;
	cin >> K;
	for (int i=1; i<=K; i++){
		A = i/9;
		B = i%9;
		C = 0;
		for (int m=0; m<A; m++){
			D = 1;
			for(int j=0;j<m;j++){
				D = D*10;
			}
			C += 9*D;
		}
		E =1;
		for(int j=0;j<A;j++){
				E = E*10;
			}
			
		F = B*E+C

		cout << F << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: expected ';' before 'cout'
   23 |                 F = B*E+C
      |                          ^
      |                          ;
   24 | 
   25 |                 cout << F << endl;
      |                 ~~~~
Language: C++

#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  for(int i=0;i<(n);++i)
#define FORq(i, m, n) for(int i = (m);i <= (n);++i)
#define SCD(n) scanf("%d",&n)
#define SCD2(m,n) scanf("%d%d",&m,&n)
#define SCD3(m,n,k) scanf("%d%d%d",&m,&n,&k)
#define PB push_back
#define MP make_pair
#define ARSCD(A,N) REP(i,N){SCD(A[i]);}
#define ARSCD1(A,N) FORq(i,1,N){SCD(A[i]);}
#define PRINTD(n) printf("%d\n",n)
#define PRINTLLD(n) printf("%lld\n",n)
#define DEBUG printf("%s\n","debug")
#define fst first
#define snd second
#define IN(x,S) (S.count(x) != 0)
using namespace std;
typedef pair<int,int> PII;
typedef vector<int> VI;
typedef long long ll;
//////////////////////////////////////////////////////

//AtCoder Beginner Contest 101

ll sumDigit(ll x){
	ll ret = 0;
	while(true){
		if (x == 0) return ret;
		ret = ret + (x % 10);
		x = x / 10;
	}
	return 0;
}

ll countten(ll x){
	ll ret = 1;
	while(true){
		x = x/10;
		if (x == 0) return ret;
		else ret = ret*10;
	}
}


int main(){
	ll K; cin >> K;
	for (ll i = 1; i <= 9 ; i++){
		if (K < i) return 0;
		PRINTD(i);
	}
	
	K -= 9;
	ll now = 9;
	
	for(ll i = 1; i <= K;i++){
		now += 10;
		ll comp,compdig,nowdig,comp2dig,comp2;
		nowdig = sumDigit(now);
		
		ll cten = countten(now);
		
		bool flg = true;
		
		FORq(k,1,9){
		comp = k * ((now / cten) * cten) + (cten - 1);
		compdig = sumDigit(comp);
		
		comp2 = countten(now) * 10 - 1;
		comp2dig = sumDigit(comp2);

		
		
		if ((now * compdig) > (comp*nowdig)){
			flg = false;
		}else if((now * comp2dig) > (comp2*nowdig)){
			flg = false;
		}
		
		comp++;
		compdig = sumDigit(comp);
		
		if ((now * compdig) > (comp*nowdig)){
			flg = false;
		}else if((now * comp2dig) > (comp2*nowdig)){
			flg = false;
		}
		
		comp++;
		compdig = sumDigit(comp);
		
		if ((now * compdig) > (comp*nowdig)){
			flg = false;
		}else if((now * comp2dig) > (comp2*nowdig)){
			flg = false;
		}
		
		
		comp2++;
		comp2++;
		comp2dig = sumDigit(comp2);
		
		if ((now * compdig) > (comp*nowdig)){
			flg = false;
		}else if((now * comp2dig) > (comp2*nowdig)){
			flg = false;
		}
		
		
		}
		
		}
		if (flg){
			PRINTLLD(now);
		}else{
			i--;
		}
		
	}
	
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:113:21: error: 'flg' was not declared in this scope
  113 |                 if (flg){
      |                     ^~~
a.cc:116:25: error: 'i' was not declared in this scope
  116 |                         i--;
      |                         ^
a.cc: At global scope:
a.cc:122:1: error: expected declaration before '}' token
  122 | }
      | ^
Language: C++

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#define rep(i,a,n) for(int i =(a);i<(n);i++)
#define urep(i,a,n) for(int i = (a);i>(n);i--)
#define all(x) (x).begin(),(x).end()
typedef long long ll;
using namespace std;

ll N, M, K;
bool flg = true;
int hide = 1;
int main() {
	ll ans = 0;
	ll num = 1;
	ll count = 9;
	cin >> K;
	rep(i, 0, K) {
		ans += num;
		count--;
		if (count == 0) {
			num *= 10;
			count = 9;
		}
		if (flg) {
			if (num == 100000000000) {
				flg = false;
				num /= 10;
			}
		cout << ans << endl;
	}
	cin >> N;
	return 0;
}


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

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};

unsigned GetDigit(unsigned num){
    return to_string(num).length();
}

int GetSum(int N){
  string S=to_string(N);
  int Sum=0;
  for(auto itr=S.begin();itr!=S.end();++itr){
    Sum += *itr-'0';
  }
  return Sum;
}

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  int K;
  cin >> K;

  int A[1000000];
  for(int i=1;;++i){
    if(K==0) break;
    int dig=GetDigit(i);
    int tnum=i/((int)pow(10,dig-1));
    if(i<10) cout << i << endl;
    else if(i%10==0) {
      A[i%10]=((((int)pow(10,dig-1))*(tnum+1)+9)/GetSum(((int)pow(10,dig-1))*(tnum+1)+9));
      if((i/GetSum(i))<A[i%10]) cout << i << endl;
    }
    else if(tnum==9){
      if((i/GetSum(i))<((((int)pow(10,dig))+9)/GetSum(((int)pow(10,dig))+9))) cout << i << endl;
    }
    else {
      if((i/GetSum(i))<A[i%10])) cout << i << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:54:32: error: expected primary-expression before ')' token
   54 |       if((i/GetSum(i))<A[i%10])) cout << i << endl;
      |                                ^
Language: C++

#include <bits/stdc++.h>

#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define pp pop_back
#define pf push_front
#define sqr(a) (a)*(a)
#define mpr(a,b) make_pair(a, b)
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 222222

using namespace std;

typedef long double ld;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef map<int, int> mpii;
typedef map<string, int> mpsi;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef queue<int> qi;
typedef queue<ll> qll;
typedef queue<pair<int, int>> qpi;
typedef priority_queue<int> pqi;
typedef priority_queue<ll> pqll;
typedef priority_queue<pair<int,int>> pqpi;

const ld pi = 2 * acos(0.0);
template<class T> bool umin(T& a, T b){if(a>b){a=b;return 1;}return 0;}
template<class T> bool umax(T& a, T b){if(a<b){a=b;return 1;}return 0;}
template<class T> T gcd(T a, T b){return b ? gcd(b, a % b) : a;}
template<class T> T lcm(T a, T b){return a*(b/gcd(a,b));}
template<class T, class TT>bool pal(T a, TT n){int k=0;for(int i=0;i<=n/2;i++){if(a[i]!=a[n-i-1]){k=1;break;}}return k?0:1;}

//int month[] = {0, 31, 28, 31, 30, 31,30, 31, 31, 30, 31, 30, 31};

ll a[N*10];

int main()
{
	ll n;
	cin >> n;
	ll s= 1, cur = 1;
	if(n <= 18)
	{
		for(int i = 1; i <= n; i ++)
		{
			cout << cur << '\n';
			if(cur == 9)
				s = 10;
			cur += s;
		}
		return 0;
	}
	for(int i = 1; i <= 18; i ++)
		{
			cout << cur << '\n';
			if(cur == 9)
				s = 10;
			cur += s;
		}
	n -= 18;
	ll cnt = 0;
	string t = "99";
	ll r = 1;
	//while(1)
	{
		for(int i = r ; i <= r * 10 + 9; i ++)
		{
			cout << i;
			cout << t << '\n';
			cnt ++;
			if(cnt == n)
				break;
		}
		if(cnt == n)
			break;
		t += '9';
		r ++;
//		if(r % 10 ==0)
//			r +=9;
	}
	getchar();
	getchar();
	return 0;
	//freopen("Ganiyev.txt", "r", stdin);
	//freopen("Asadullo.txt", "w", stdout);
	//ios::sync_with_stdio(0);
	//cin.tie(0);cout.tie(0);
	
	
	
	
	
	
	
	
	
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:80:25: error: break statement not within loop or switch
   80 |                         break;
      |                         ^~~~~
Language: C++

#include <cstdio>
#include <cctype>
#include <algorithm>
using namespace std
typedef long long ll;
int N,p10[18],F[1005];
int main(){
	scanf("%d",&N),p10[0]=1;
	for (int i=1;i<18;++i) p10[i]=p10[i-1]*10;
	for (int i=1;i<=N;++i) printf("%d\n",F[i]=F[i-1]+p10[(i-1)/9]);
	return 0;
}

Compiler output:
a.cc:4:20: error: expected ';' before 'typedef'
    4 | using namespace std
      |                    ^
      |                    ;
    5 | typedef long long ll;
      | ~~~~~~~
Language: C++

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

int main() {
	int K;
	cin >> K;
	for (int i = 1; i <= K; i++) {
		if (i < 10) cout << i << endl;
		else {
			int s = (i - 1) / 9;
			int t = i - s * 9;
			cout << (t + 1)*pow(10, s) - 1 << endl;
		}
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:41: error: 'pow' was not declared in this scope
   13 |                         cout << (t + 1)*pow(10, s) - 1 << endl;
      |                                         ^~~
Language: C

#include<stdio.h>

int main(void){
  int k;
  scanf("%d",&k);
  for(int i = 1;i <= k;i++){
    if(n<=9||n%10==9){
      printf("%d\n",n);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: 'n' undeclared (first use in this function)
    7 |     if(n<=9||n%10==9){
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

public class Main{
    public static void main(String args[]){
        
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        
        int count = 0;
        long baseN = 0;
        long numAdded = 1;
        int countSum = 0;
        int numOfDigits = 1;
        
        for(int i = 0; i < k; i++){
            baseN += numAdded;
            countSum++;
            if(countSum == 9){
                countSum = 0;
                numAdded *= 10L;
                numOfDigits++;
            }
            if(numOfDigits == 16){
                break;
            }
            System.out.println(baseN);
        }
        
    }
}

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

#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <set>
#include <stack>

#define REP(i,n) for(int i = 0; i < (n); ++i)
#define REPC(x,c) for(auto x:(c))
#define FOR(i, b, e) for(int i = (b); i < (e); ++i)
#define VS vector<string>
#define VI vector<int>
#define VVI vector<vector<int>>

#define ll long long

using namespace std;

double s(double n) {
	int n_ = ll(n);
	double sum = 0;
	while (n_ != 0) {
		sum += n_ % 10;
		n_ /= 10;
	}
	return sum;
}

double sunuke(double n) {
	return double(n) / double(s(n));
}


int main() {
	double k;
	cin >> k;

	int c = -1;
	int t = 0;
	REP(i, k) {
		if (i % 9 == 0) { ++c; t = 0; }
		cout << ++t;
		REP(j, c) {
			cout << 9;
		}
		cout << endl;
	}
}

Compiler output:
a.cc: In function 'double s(double)':
a.cc:16:12: error: expected primary-expression before 'long'
   16 | #define ll long long
      |            ^~~~
a.cc:21:18: note: in expansion of macro 'll'
   21 |         int n_ = ll(n);
      |                  ^~
Language: Java

import java.util.*;

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

        long count = 0;

        for(long i = 0;; i++){
            if(Judge(i) == true){
                System.out.println(i);
                count++;
                if(count == K){
                    break;
                }
            }
        }

    }

    public double searchS (long i)
    {
        long k = 0;
        long n = i;
        do{
            k += (i % 10);
            i /= 10;
        }while(i > 0);
        return k / n;
    }

    public boolean Judge (long i)
    {
        double s = searchS(i);
        boolean bl = true;

        for(long k = i+1; k < s * Digit(i) * 9; k++){
            if(s > search(k)){
                bl = false;
                break;
            }
        }
        return bl;
    }
    public int Digit (long i)
    {
        long count = 0;
        do{
            count++;
            i /= 10;
        }while(i > 0);

        return count;
    }
}

Compiler output:
Main.java:12: error: non-static method Judge(long) cannot be referenced from a static context
            if(Judge(i) == true){
               ^
Main.java:15: error: cannot find symbol
                if(count == K){
                            ^
  symbol:   variable K
  location: class Main
Main.java:40: error: cannot find symbol
            if(s > search(k)){
                   ^
  symbol:   method search(long)
  location: class Main
Main.java:55: error: incompatible types: possible lossy conversion from long to int
        return count;
               ^
4 errors
Language: Java

import java.util.*;

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

        long count = 0;

        for(long i = 0;; i++){
            if(Judge(i) == true){
                System.out.println(i);
                count++
                if(count == K){
                    break;
                }
            }
        }

    }

    public double searchS (long i)
    {
        long k = 0;
        long n = i;
        do{
            k += (i % 10);
            i /= 10;
        }while(i > 0);
        return k / n;
    }

    public boolean Judge (long i)
    {
        double s = searchS(i);
        boolean bl = true;

        for(long k = i+1; k < s * Digit(i) * 9; k++){
            if(s > search(k)){
                bl = false;
                break;
            }
        }
        return bl;
    }
    public int Digit (long i)
    {
        long count = 0;
        do{
            count++;
            i /= 10;
        }while(i > 0);

        return count;
    }
}

Compiler output:
Main.java:14: error: ';' expected
                count++
                       ^
1 error
Language: C++

#include <iostream>
#include <deque>
#include <algorithm>
using namespace std;

long long hoge(long long n) {
 int m = 0;
while(n >0){
m += n %10;
n /= 10;
}
return m;
}
int main() {
duque<long long> n;
long long max = 1000000000000000ll;
for(long long i = 1000000000000000ll;i > 0; i-=1) {
  long long m = hoge(i);
if(i / m < max) {
 n.push_front(i);
max = i / m;
}
}

long long k;
cin >> k;
for ( long long i = 0;i < k;i++) {
cout << n[i] << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'duque' was not declared in this scope
   15 | duque<long long> n;
      | ^~~~~
a.cc:15:7: error: expected primary-expression before 'long'
   15 | duque<long long> n;
      |       ^~~~
a.cc:20:2: error: 'n' was not declared in this scope
   20 |  n.push_front(i);
      |  ^
a.cc:28:9: error: 'n' was not declared in this scope
   28 | cout << n[i] << endl;
      |         ^
Language: C++

#include<bits/stdc++.h>
#define INF 2000000000
#define MOD 1000000007
#define EPS (1e-10)

using namespace std;


vector<int>  dx = {1,-1,0,0};
vector<int>  dy = {0,0,1,-1};


int main() {
	int K; cin >> K;

	for (int i = 0; i < K; i++) {
		cout << i + 1 << endl;	
	}

	return 0;
}
#include<bits/stdc++.h>
#define INF 2000000000
#define MOD 1000000007
#define EPS (1e-10)

using namespace std;


vector<int>  dx = {1,-1,0,0};
vector<int>  dy = {0,0,1,-1};


int main() {
	int K; cin >> K;

	for (int i = 0; i < K; i++) {
		cout << i + 1 << endl;	
	}

	return 0;
}


Compiler output:
a.cc:30:14: error: redefinition of 'std::vector<int> dx'
   30 | vector<int>  dx = {1,-1,0,0};
      |              ^~
a.cc:9:14: note: 'std::vector<int> dx' previously declared here
    9 | vector<int>  dx = {1,-1,0,0};
      |              ^~
a.cc:31:14: error: redefinition of 'std::vector<int> dy'
   31 | vector<int>  dy = {0,0,1,-1};
      |              ^~
a.cc:10:14: note: 'std::vector<int> dy' previously declared here
   10 | vector<int>  dy = {0,0,1,-1};
      |              ^~
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main() {
      |     ^~~~
a.cc:13:5: note: 'int main()' previously defined here
   13 | int main() {
      |     ^~~~
Language: C++

#include<stdio.h>
#include<math.h>
long long n,k;
long sum = 0;
int main() {
	scanf_s("%lld",&n);
	for (long long i = 1; i <= n; i++) {
		if(i <10){
			printf("%lld\n", i);
		}
		else {
			k = i - 8;
			printf("%lld\n", 2 * (long long)pow(10, k) - 1);
		}
	}
}

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

import java.util.Scanner;

public class MainD {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long k = sc.nextLong();
		long i = 1, j = 0;
		while(j < k) {
			if(i * func(i + 1) <= (i + 1) * func(i) && i * func(i + 100) <= (i + 100) * func(i)) {
				j++;
				System.out.println(i);
			}
			i++;
		}
	}

	static long func(long x) {
		long ret = 0;
		while(x > 0) {
			ret += x % 10;
			x /= 10;
		}
		return ret;
	}

}


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

#include <iostream>
#include <string>

using namespace std;

int fS(int i) {
  int ans = 0;
  while (i > 0) {
    ans += i % 10;
    i /= 10;
  }
  return ans;
}

int main() {
  int K;
  cin >> K;
  for (int i = 1; i < K; i++) cout << i << endl;
  if (K < 10) {
    return 0;
  }
  K -= 9;
  int counter = 0;
  for (;;) {
    int Sn = fS(i);
    if (i % 10 == 9) {
      int j = i;
      int Sj = 0;
      while (true) {
        Sj = fS(j);
        if (Sj > Sn)
          break;
        j++;
      }
      double ratio1 = (float)i / (float)Sn;
      double ratio2 = (float)j / (float)Sj;
      if (ratio1 < ratio2) {
        counter++;
        cout << i << endl;
      }
    }
    if (counter >= K) {
      break;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: 'i' was not declared in this scope
   25 |     int Sn = fS(i);
      |                 ^
Language: C

#include <stdio.h>

int main(void){
	
	int a,i,n=1,m;
	long long int m,n=1LL;
	scanf("%d",&a);
	for(i=0;i<a;i++){
		printf("%lld\n",n);
		n++;
		m=n;
		if(m%10==0)n=n+9;
		if(m%100==0)n=n+90;
		if(m%1000==0)n=n+900;
		if(m%10000==0)n=n+9000;
		if(m%100000==0)n=n+90000;
		if(m%1000000==0)n=n+900000;
		if(m%10000000==0)n=n+9000000;
		if(m%100000000==0)n=n+90000000;
		if(m%1000000000==0)n=n+900000000;
		if(m%10000000000==0)n=n+9000000000;
		if(m%100000000000==0)n=n+90000000000;
		if(m%1000000000000==0)n=n+900000000000;
		if(m%10000000000000==0)n=n+9000000000000;
		if(m%100000000000000==0)n=n+90000000000000;
		if(m%1000000000000000==0)n=n+900000000000000;
		if(m%10000000000000000==0)n=n+9000000000000000;
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:23: error: conflicting types for 'm'; have 'long long int'
    6 |         long long int m,n=1LL;
      |                       ^
main.c:5:21: note: previous declaration of 'm' with type 'int'
    5 |         int a,i,n=1,m;
      |                     ^
main.c:6:25: error: conflicting types for 'n'; have 'long long int'
    6 |         long long int m,n=1LL;
      |                         ^
main.c:5:17: note: previous definition of 'n' with type 'int'
    5 |         int a,i,n=1,m;
      |                 ^
Language: C++

#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>

using namespace std;

#define FOR(i, first, last) for (int i = (first); i < (last); ++i)
#define REP(i, n) FOR(i, 0, n)
#define CLR(a) memset((a), 0, sizeof(a))
#define DUMP(x) std::cerr << #x << " = " << (x) << std::endl;
#define DUMPR(v) REP(_i,v.size()){std::cerr<< #v << "[" << _i << "] = " << (v[_i]) << std::endl;}
#define CIN_VEC(v,N) {v.clear(); v.reserve(N); REP(i,N){typename decltype(v)::value_type x; cin>>x; v.emplace_back(x);}};

inline int to_int(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T> inline string to_string(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}

typedef unsigned long long ull;
typedef unsigned long ul;

int main() {
  ull k;
  cin>>k;

  for(ull i=0; i<k; i++) {
    string s(i/9, '9');
    int p = i%9+1;
    cout << p << s << endl;
  }
  return 0;


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

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

using namespace std;
long s(long);
int main() {
	int k;
	long b = 0, count = 0;
	cin >> k;
	while (1)
	{
		b++;
		if (b % 10 == 9) {
			cout << b << endl;
			count++;
		}
		else {
			if ((s(b)) < (s((b / 10) * 10 + 9))) {
				cout << b << endl;
				count++;
			}
		}
		if (count = > k) {
			break;
		}
	}
	return 0;
}
long s(long n) {
	int ans = 0;
	while (1)
	{
		ans += n % 10;
		if (n < 10) {
			break;
		}
		n /= 10;
	}
	return ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:29: error: expected primary-expression before '>' token
   27 |                 if (count = > k) {
      |                             ^
Language: C++

k = int(input())
x = 1
for i in range(8):
    if (not k):
        break
    print(x)
    x += 1
    k -= 1
for i in range(9):
    if (not k):
        break
    print(x)
    x += 10
    k -= 1
p = 19
h = 10**2
while (k):
    for i in range(p):
        if (not k):
            break
        print(x)
        x += h
        k -= 1
    p += 9
    h *= 10


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

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

int main()
{
    long long int k;
    cin >> k;
    vector<pair<long double, long long int>> nusuke_key;

    while (k > 0)
    {
        ketasuu++;
        k /= 10;
    }

    for (int i = 1; i <= 9; i++)
    {
        nusuke_key.push_back(make_pair(1.0, i));
    }

    double pow_tmp = pow(10, ketasuu + 1);
    for (long long int i = 10; i <= (int)pow_tmp - 1; i++)
    {
        long long int tmp = i;
        int sum = 0;
        while (tmp > 0)
        {
            sum += tmp % 10;
            tmp /= 10;
        }

        nusuke_key.push_back(make_pair((long double)i / (long double)sum, i));
    }

    sort(nusuke_key.begin(), nusuke_key.end());
    for (int i = 0; i < k; i++)
    {
        printf("%lld\n", nusuke_key[i].second);
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'ketasuu' was not declared in this scope
   17 |         ketasuu++;
      |         ^~~~~~~
a.cc:26:30: error: 'ketasuu' was not declared in this scope
   26 |     double pow_tmp = pow(10, ketasuu + 1);
      |                              ^~~~~~~
Language: C++

#include <iostream>
#include <cassert>
using namespace std;
 
int main(void){
    
    int k;
    cin >> k;
    
    long long int snuke[135] = {
        1, 2, 3, 4, 5, 6, 7, 8, 9,
        19, 29, 39, 49, 59, 69, 79, 89, 99,
        199, 299, 399, 499, 599, 699, 799, 899, 999,
        1999, 2999, 3999, 4999, 5999, 6999, 7999, 8999, 9999,
        19999, 29999, 39999, 49999, 59999, 69999, 79999, 89999, 99999,
        199999, 299999, 399999, 499999, 599999, 699999, 799999, 899999, 999999,
        1999999, 2999999, 3999999, 4999999, 5999999, 6999999, 7999999, 8999999, 9999999,
        19999999, 29999999, 39999999, 49999999, 59999999, 69999999, 79999999, 89999999, 99999999,
        199999999, 299999999, 399999999, 499999999, 599999999, 699999999, 799999999, 899999999, 999999999,
        1999999999, 2999999999, 3999999999, 4999999999, 5999999999, 6999999999, 7999999999, 8999999999, 9999999999,
        19999999999, 29999999999, 39999999999, 49999999999, 59999999999, 69999999999, 79999999999, 89999999999, 99999999999,
        199999999999, 299999999999, 399999999999, 499999999999, 599999999999, 699999999999, 799999999999, 899999999999, 999999999999,
        1999999999999, 2999999999999, 3999999999999, 4999999999999, 5999999999999, 6999999999999, 7999999999999, 8999999999999, 9999999999999,
        19999999999999, 29999999999999, 39999999999999, 49999999999999, 59999999999999, 69999999999999, 79999999999999, 89999999999999, 99999999999999,
        199999999999999, 299999999999999, 399999999999999, 499999999999999, 599999999999999, 699999999999999, 799999999999999, 899999999999999, 999999999999999,
        1000000000000000
    };
    //  1000000000000000 = 10^15
    for(int i = 0; i < k; i ++) printf("%lld\n", snuke[i]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: too many initializers for 'long long int [135]'
   27 |     };
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int asd(int a){
  int b;
      b=a/9;
    else return b;
}
int main()
{
    long long k,a=1;cin>>k;
    for(int i=0;i<k;i++){
      a=1;
        for(int j=0;j<asd(i);j++){ a*=10; }
      cout<<(i%9+2)*a-1<<endl;
    }
}

Compiler output:
a.cc: In function 'int asd(int)':
a.cc:6:5: error: 'else' without a previous 'if'
    6 |     else return b;
      |     ^~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
	
	//入力
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		//いろいろ 
		int[] x=new int[N];
	//計算
		int i=0;
		while( i < N && i<10 ){
			x[i]=i;
			i++;
		}
		tmp=1;
		while( i < N ){
			tmp=tmp*10+9;
			x[i]=tmp;
			i++;
		}
	//出力
		System.out.println(a);
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
		tmp=1;
		^
  symbol:   variable tmp
  location: class Main
Main.java:18: error: cannot find symbol
			tmp=tmp*10+9;
			^
  symbol:   variable tmp
  location: class Main
Main.java:18: error: cannot find symbol
			tmp=tmp*10+9;
			    ^
  symbol:   variable tmp
  location: class Main
Main.java:19: error: cannot find symbol
			x[i]=tmp;
			     ^
  symbol:   variable tmp
  location: class Main
Main.java:23: error: cannot find symbol
		System.out.println(a);
		                   ^
  symbol:   variable a
  location: class Main
5 errors