Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<functional>
#include<vector>
#include<queue>
#include<stack>
#include<set>
using namespace std;
#define MOD 1000000007
#define f(i,n) for(long long i=0;i<long long(n);i++)
#define N 200000


int main(){
	vector<long long>a;
	int n, k;
	long long x, s1;

	f(j, 9){
		a.push_back(j + 1);
	}
	s1 = 1;
	f(i, 14){
		s1 = s1 * 10;
		f(j, 9){
			a.push_back(s1*(j + 2) - 1);
		}
	}
	k = 0;
	s1 = 1;
	while (k < 13){
		k++;
		s1 = s1 * 10;
		x = 1;
		for (;;){
			if ((x / 10) + (x % 10) + (9 * (k + 1)) < (10 * (x + 1)))break;
			f(j, 9){
				a.push_back(((10 * x) + j + 1)*s1 - 1);
			}
			x++;
		}
	}
	sort(a.begin(), a.end());

	scanf("%d", &n);
	f(i, n)printf("%lld\n", a[i]);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:22:9: note: in expansion of macro 'f'
   22 |         f(j, 9){
      |         ^
a.cc:13:36: error: expected ';' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:22:9: note: in expansion of macro 'f'
   22 |         f(j, 9){
      |         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:22:9: note: in expansion of macro 'f'
   22 |         f(j, 9){
      |         ^
a.cc:13:36: error: expected ')' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                   ~                ^~~~
a.cc:22:9: note: in expansion of macro 'f'
   22 |         f(j, 9){
      |         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:22:9: note: in expansion of macro 'f'
   22 |         f(j, 9){
      |         ^
a.cc:22:11: error: 'j' was not declared in this scope
   22 |         f(j, 9){
      |           ^
a.cc:13:49: note: in definition of macro 'f'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                                 ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:26:9: note: in expansion of macro 'f'
   26 |         f(i, 14){
      |         ^
a.cc:13:36: error: expected ';' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:26:9: note: in expansion of macro 'f'
   26 |         f(i, 14){
      |         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:26:9: note: in expansion of macro 'f'
   26 |         f(i, 14){
      |         ^
a.cc:13:36: error: expected ')' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                   ~                ^~~~
a.cc:26:9: note: in expansion of macro 'f'
   26 |         f(i, 14){
      |         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:26:9: note: in expansion of macro 'f'
   26 |         f(i, 14){
      |         ^
a.cc:26:11: error: 'i' was not declared in this scope
   26 |         f(i, 14){
      |           ^
a.cc:13:49: note: in definition of macro 'f'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                                 ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:40:25: note: in expansion of macro 'f'
   40 |                         f(j, 9){
      |                         ^
a.cc:13:36: error: expected ';' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:40:25: note: in expansion of macro 'f'
   40 |                         f(j, 9){
      |                         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:40:25: note: in expansion of macro 'f'
   40 |                         f(j, 9){
      |                         ^
a.cc:13:36: error: expected ')' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                   ~                ^~~~
a.cc:40:25: note: in expansion of macro 'f'
   40 |                         f(j, 9){
      |                         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:40:25: note: in expansion of macro 'f'
   40 |                         f(j, 9){
      |                         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:49:9: note: in expansion of macro 'f'
   49 |         f(i, n)printf("%lld\n", a[i]);
      |         ^
a.cc:13:36: error: expected ';' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:49:9: note: in expansion of macro 'f'
   49 |         f(i, n)printf("%lld\n", a[i]);
      |         ^
a.cc:13:36: error: expected primary-expression before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                                    ^~~~
a.cc:49:9: note: in expansion of macro 'f'
   49 |         f(i, n)printf("%lld\n", a[i]);
      |         ^
a.cc:13:36: error: expected ')' before 'long'
   13 | #define f(i,n) for(long long i=0;i<long long(n);i++)
      |                   ~                ^~~~
a.cc:49:9: note: in expansion of macro 'f'
   49 |         f(i, n)printf("%lld\n", a[i]);
      |         ^