Language: C++

#include<>
int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}

Compiler output:
a.cc:1:9: error: empty filename in #include
    1 | #include<>
      |         ^~
a.cc:2:1: error: 'int64_t' does not name a type
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      | ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | #include<>
a.cc:2:27: error: 'int64_t' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                           ^~~~~~~
a.cc:2:27: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc: In function 'int main()':
a.cc:2:97: error: 'k' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                 ^
a.cc:2:85: error: 'scanf' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                     ^~~~~
a.cc:2:121: error: 'n' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                                         ^
a.cc:2:124: error: 't' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                                            ^
a.cc:2:106: error: 'printf' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                          ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include<>
a.cc:2:141: error: 'p' was not declared in this scope
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                                                             ^
a.cc:2:148: error: 'S' cannot be used as a function
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                                                                    ^
a.cc:2:161: error: 'S' cannot be used as a function
    2 | int64_t k,t=1,n,s,p;int S(int64_t x){s=0;while(x)s+=x%10,x/=10;return s;}int main(){scanf("%d",&k);while(printf("%ld\n",n+=t),--k)t+=t*9*(S(p=n+t+t)*(n+t)>S(n+t)*p);}
      |                                                                                                                                                                 ^