Language: C++

3 3#include <bits/stdc++.h>

using namespace std;

#define int long long
// #define double long double
#define FOR(i, a, b) for(ll i = (a); i < (b); ++i)
#define FORR(i, a, b) for(ll i = (a); i > (b); --i)
#define REP(i, n) for(ll i = 0; i < (n); ++i)
#define REPR(i, n) for(ll i = n; i >= 0; i--)
#define FOREACH(x, a) for(auto &(x) : (a))
#define VECCIN(x)                                                              \
    for(auto &youso_ : (x)) cin >> youso_
#define bitcnt __builtin_popcount
#define SZ(x) ((ll)(x).size())
#define fi first
#define se second
#define All(a) (a).begin(), (a).end()
#define rAll(a) (a).rbegin(), (a).rend()
template <typename T = long long> inline T IN() {
    T x;
    cin >> x;
    return (x);
}
inline void CIN() {}
template <class Head, class... Tail>
inline void CIN(Head &&head, Tail &&... tail) {
    cin >> head;
    CIN(move(tail)...);
}
#define CCIN(...)                                                              \
    char __VA_ARGS__;                                                          \
    CIN(__VA_ARGS__)
#define DCIN(...)                                                              \
    double __VA_ARGS__;                                                        \
    CIN(__VA_ARGS__)
#define LCIN(...)                                                              \
    ll __VA_ARGS__;                                                            \
    CIN(__VA_ARGS__)
#define SCIN(...)                                                              \
    string __VA_ARGS__;                                                        \
    CIN(__VA_ARGS__)
#define Yes(a) cout << (a ? "Yes" : "No") << "\n"
#define YES(a) cout << (a ? "YES" : "NO") << "\n"
#define Printv(v)                                                              \
    {                                                                          \
        FOREACH(x, v) { cout << x << " "; }                                    \
        cout << "\n";                                                          \
    }
template <typename T = string> inline void eputs(T s) {
    cout << s << "\n";
    exit(0);
}
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val) {
    std::fill((T *)array, (T *)(array + N), val);
}
template <typename T> using PQG = priority_queue<T, vector<T>, greater<T>>;
template <typename T> using PQ = priority_queue<T>;

typedef long long ll;
typedef pair<ll, ll> PL;
typedef vector<PL> VPL;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef vector<bool> VB;
typedef vector<double> VD;

const int INF = 1e9;
// const int MOD = 1e9 + 7;
const int MOD = 998244353;
const ll LINF = 5e18;
// const double PI = atan(1.0) * 4.0;
const ll dx[] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[] = {0, 1, 1, 1, 0, -1, -1, -1};
#define PI 3.141592653589793238

// 1000000007 で割ったあまりを扱う構造体
template <int MOD> struct Fp {
    long long val;
    constexpr Fp(long long v = 0) noexcept : val(v % MOD) {
        if(val < 0) v += MOD;
    }
    constexpr int getmod() { return MOD; }
    constexpr Fp operator-() const noexcept { return val ? MOD - val : 0; }
    constexpr Fp operator+(const Fp &r) const noexcept {
        return Fp(*this) += r;
    }
    constexpr Fp operator-(const Fp &r) const noexcept {
        return Fp(*this) -= r;
    }
    constexpr Fp operator*(const Fp &r) const noexcept {
        return Fp(*this) *= r;
    }
    constexpr Fp operator/(const Fp &r) const noexcept {
        return Fp(*this) /= r;
    }
    constexpr Fp &operator+=(const Fp &r) noexcept {
        val += r.val;
        if(val >= MOD) val -= MOD;
        return *this;
    }
    constexpr Fp &operator-=(const Fp &r) noexcept {
        val -= r.val;
        if(val < 0) val += MOD;
        return *this;
    }
    constexpr Fp &operator*=(const Fp &r) noexcept {
        val = val * r.val % MOD;
        return *this;
    }
    constexpr Fp &operator/=(const Fp &r) noexcept {
        long long a = r.val, b = MOD, u = 1, v = 0;
        while(b) {
            long long t = a / b;
            a -= t * b;
            swap(a, b);
            u -= t * v;
            swap(u, v);
        }
        val = val * u % MOD;
        if(val < 0) val += MOD;
        return *this;
    }
    constexpr bool operator==(const Fp &r) const noexcept {
        return this->val == r.val;
    }
    constexpr bool operator!=(const Fp &r) const noexcept {
        return this->val != r.val;
    }
    friend constexpr ostream &operator<<(ostream &os, const Fp<MOD> &x) noexcept {
        return os << x.val;
    }
    friend constexpr istream &operator>>(istream &is, Fp<MOD> &x) noexcept {
        return is >> x.val;
    }
    friend constexpr Fp<MOD> modpow(const Fp<MOD> &a, long long n) noexcept {
        if(n == 0) return 1;
        auto t = modpow(a, n / 2);
        t = t * t;
        if(n & 1) t = t * a;
        return t;
    }
};

using mint = Fp<MOD>;

const ll NMAX = 1e6;
ll fac[NMAX + 1], inv[NMAX + 1], finv[NMAX + 1];

void cominit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    FOR(i, 2, NMAX + 1) {
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

ll comb(ll n, ll k) {
    if(n < k) return 0;
    if(n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

ll hcomb(ll n, ll k) { return comb(n + k - 1, k); }

mint p2[2001];

signed main() {
    cin.tie(0);
    LCIN(K, N);
    cominit();
    p2[0] = 1;
    REP(i, 2000) p2[i + 1] = p2[i] * 2;
    FOR(sum, 2, 2 * K + 1) {
        ll pcnt = 0;
        FOR(i, 1, K + 1) if(i < sum - i && sum - i <= K) pcnt++;
        mint ret = 0;
        REP(q, min(pcnt, N) + 1) {
            if(sum % 2)
                ret += p2[q] * comb(pcnt, q) * hcomb(K - 2 * pcnt + q, N - q);
            else
                ret += p2[q] * comb(pcnt, q) * (hcomb(K - 2 * pcnt - 1 + q, N - q) + hcomb(K - 2 * pcnt - 1 + q, N - q - 1));
        }
        cout << ret << "\n";
    }
}


Compiler output:
a.cc:1:4: error: stray '#' in program
    1 | 3 3#include <bits/stdc++.h>
      |    ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 3 3#include <bits/stdc++.h>
      | ^
a.cc: In function 'T IN()':
a.cc:22:5: error: 'cin' was not declared in this scope
   22 |     cin >> x;
      |     ^~~
a.cc: In function 'void CIN(Head&&, Tail&& ...)':
a.cc:28:5: error: 'cin' was not declared in this scope
   28 |     cin >> head;
      |     ^~~
a.cc: At global scope:
a.cc:50:24: error: 'string' does not name a type
   50 | template <typename T = string> inline void eputs(T s) {
      |                        ^~~~~~
a.cc: In function 'void eputs(T)':
a.cc:51:5: error: 'cout' was not declared in this scope
   51 |     cout << s << "\n";
      |     ^~~~
a.cc:52:5: error: there are no arguments to 'exit' that depend on a template parameter, so a declaration of 'exit' must be available [-fpermissive]
   52 |     exit(0);
      |     ^~~~
a.cc:52:5: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
a.cc: At global scope:
a.cc:54:23: error: 'size_t' has not been declared
   54 | template <typename A, size_t N, typename T>
      |                       ^~~~~~
a.cc:55:22: error: 'N' was not declared in this scope
   55 | void Fill(A (&array)[N], const T &val) {
      |                      ^
a.cc:55:6: error: variable or field 'Fill' declared void
   55 | void Fill(A (&array)[N], const T &val) {
      |      ^~~~
a.cc:55:15: error: 'array' was not declared in this scope
   55 | void Fill(A (&array)[N], const T &val) {
      |               ^~~~~
a.cc:55:22: error: 'N' was not declared in this scope
   55 | void Fill(A (&array)[N], const T &val) {
      |                      ^
a.cc:55:26: error: expected primary-expression before 'const'
   55 | void Fill(A (&array)[N], const T &val) {
      |                          ^~~~~
a.cc:58:35: error: 'priority_queue' does not name a type
   58 | template <typename T> using PQG = priority_queue<T, vector<T>, greater<T>>;
      |                                   ^~~~~~~~~~~~~~
a.cc:59:34: error: 'priority_queue' does not name a type
   59 | template <typename T> using PQ = priority_queue<T>;
      |                                  ^~~~~~~~~~~~~~
a.cc:62:9: error: 'pair' does not name a type
   62 | typedef pair<ll, ll> PL;
      |         ^~~~
a.cc:63:9: error: 'vector' does not name a type
   63 | typedef vector<PL> VPL;
      |         ^~~~~~
a.cc:64:9: error: 'vector' does not name a type
   64 | typedef vector<ll> VL;
      |         ^~~~~~
a.cc:65:9: error: 'vector' does not name a type
   65 | typedef vector<VL> VVL;
      |         ^~~~~~
a.cc:66:9: error: 'vector' does not name a type
   66 | typedef vector<bool> VB;
      |         ^~~~~~
a.cc:67:9: error: 'vector' does not name a type
   67 | typedef vector<double> VD;
      |         ^~~~~~
a.cc:131:22: error: 'ostream' does not name a type
  131 |     friend constexpr ostream &operator<<(ostream &os, const Fp<MOD> &x) noexcept {
      |                      ^~~~~~~
a.cc:134:22: error: 'istream' does not name a type
  134 |     friend constexpr istream &operator>>(istream &is, Fp<MOD> &x) noexcept {
      |                      ^~~~~~~
a.cc: In member function 'constexpr Fp<MOD>& Fp<MOD>::operator/=(const Fp<MOD>&)':
a.cc:117:13: error: there are no arguments to 'swap' that depend on a template parameter, so a declaration of 'swap' must be available [-fpermissive]
  117 |             swap(a, b);
      |             ^~~~
a.cc:119:13: error: there are no arguments to 'swap' that depend on a template parameter, so a declaration of 'swap' must be available [-fpermissive]
  119 |             swap(u, v);
      |             ^~~~
a.cc: In function 'int main()':
a.cc:173:5: error: 'cin' was not declared in this scope
  173 |     cin.tie(0);
      |     ^~~
a.cc:182:16: error: 'min' was not declared in this scope; did you mean 'mint'?
  182 |         REP(q, min(pcnt, N) + 1) {
      |                ^~~
a.cc:9:38: note: in definition of macro 'REP'
    9 | #define REP(i, n) for(ll i = 0; i < (n); ++i)
      |                                      ^
a.cc:188:9: error: 'cout' was not declared in this scope
  188 |         cout << ret << "\n";
      |         ^~~~
a.cc: In instantiation of 'void CIN(Head&&, Tail&& ...) [with Head = long long int&; Tail = {long long int&}]':
a.cc:174:5:   required from here
   39 |     CIN(__VA_ARGS__)
      |     ~~~^~~~~~~~~~~~~
a.cc:29:13: error: 'move' was not declared in this scope
   29 |     CIN(move(tail)...);
      |         ~~~~^~~~~~