Language: C++

#include <bits/stdc++.h>
using namespace std ;
#define ll long long;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
int mod=1e9+7;

//RepeatSquare
ll RS(ll N ,ll P, ll M){
    if(P==0) return 1;
    else if(P%2==0){
        ll t=RS(N,P/2,M);
        return t*t%M;
    }
    else return N*RS(N,P-1,M)%mod;   
}
//combination
ll f[10010],inv[10010];

void init(){
    f[0]=1;
    for(int i=1;i<10010;i++){
        f[i]=f[i-1]*i%mod;
        inv[i]=RS(f[i],mod-2);
    } 
}

ll comb(ll a,ll b){
    if(b>a) return 0;
    else return ((f[a]*inv[b]) % mod *inv[a-b])% mod;
}

int main(){
    init();
    ll N,K;cin>>N>>K;
    for(int i=1;i<=K;i++){
        ll t =comb(K-1,i-1)*comb(N-K+1,i)%mod;
        cout << t <<endl;
    } 
    //cout << f[2000] << endl;
}

Compiler output:
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:9:1: note: in expansion of macro 'll'
    9 | ll RS(ll N ,ll P, ll M){
      | ^~
a.cc:3:21: error: expected ')' before ';' token
    3 | #define ll long long;
      |                     ^
a.cc:9:7: note: in expansion of macro 'll'
    9 | ll RS(ll N ,ll P, ll M){
      |       ^~
a.cc:9:6: note: to match this '('
    9 | ll RS(ll N ,ll P, ll M){
      |      ^
a.cc:3:21: error: expected constructor, destructor, or type conversion before ';' token
    3 | #define ll long long;
      |                     ^
a.cc:9:7: note: in expansion of macro 'll'
    9 | ll RS(ll N ,ll P, ll M){
      |       ^~
a.cc:9:10: error: 'N' does not name a type
    9 | ll RS(ll N ,ll P, ll M){
      |          ^
a.cc:9:16: error: 'P' does not name a type
    9 | ll RS(ll N ,ll P, ll M){
      |                ^
a.cc:9:22: error: 'M' does not name a type
    9 | ll RS(ll N ,ll P, ll M){
      |                      ^
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:18:1: note: in expansion of macro 'll'
   18 | ll f[10010],inv[10010];
      | ^~
a.cc:18:4: error: 'f' does not name a type
   18 | ll f[10010],inv[10010];
      |    ^
a.cc: In function 'void init()':
a.cc:21:5: error: 'f' was not declared in this scope
   21 |     f[0]=1;
      |     ^
a.cc:24:9: error: 'inv' was not declared in this scope; did you mean 'int'?
   24 |         inv[i]=RS(f[i],mod-2);
      |         ^~~
      |         int
a.cc:24:16: error: 'RS' was not declared in this scope
   24 |         inv[i]=RS(f[i],mod-2);
      |                ^~
a.cc: At global scope:
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:28:1: note: in expansion of macro 'll'
   28 | ll comb(ll a,ll b){
      | ^~
a.cc:3:21: error: expected ')' before ';' token
    3 | #define ll long long;
      |                     ^
a.cc:28:9: note: in expansion of macro 'll'
   28 | ll comb(ll a,ll b){
      |         ^~
a.cc:28:8: note: to match this '('
   28 | ll comb(ll a,ll b){
      |        ^
a.cc:3:21: error: expected constructor, destructor, or type conversion before ';' token
    3 | #define ll long long;
      |                     ^
a.cc:28:9: note: in expansion of macro 'll'
   28 | ll comb(ll a,ll b){
      |         ^~
a.cc:28:12: error: 'a' does not name a type
   28 | ll comb(ll a,ll b){
      |            ^
a.cc:28:17: error: 'b' does not name a type
   28 | ll comb(ll a,ll b){
      |                 ^
a.cc: In function 'int main()':
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:35:5: note: in expansion of macro 'll'
   35 |     ll N,K;cin>>N>>K;
      |     ^~
a.cc:35:8: error: 'N' was not declared in this scope
   35 |     ll N,K;cin>>N>>K;
      |        ^
a.cc:35:10: error: 'K' was not declared in this scope
   35 |     ll N,K;cin>>N>>K;
      |          ^
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:37:9: note: in expansion of macro 'll'
   37 |         ll t =comb(K-1,i-1)*comb(N-K+1,i)%mod;
      |         ^~
a.cc:37:12: error: 't' was not declared in this scope
   37 |         ll t =comb(K-1,i-1)*comb(N-K+1,i)%mod;
      |            ^
a.cc:37:15: error: 'comb' was not declared in this scope; did you mean 'wctomb'?
   37 |         ll t =comb(K-1,i-1)*comb(N-K+1,i)%mod;
      |               ^~~~
      |               wctomb