Language: C++

#include <iostream>

using namespace std;
typedef long long ll;

ll mdp(ll e, ll p, ll m) {
    ll r = 1;
  	assert(p>=0);
    while(p) {
        if(p&1) r=r*e%m;
        e=e*e%m, p>>=1;
    }
    return r;
}
inline ll inv(ll x){return mdp(x,p-2,p);}
ll p,dp[N][N];
ll f[N]={1},t[N],ans[N];
signed main(){
    ios_base::sync_with_stdio(0), cin.tie(0);
    cin >> p;
    for(int i = 0; i < p; i++) cin >> dp[1][i];
    for(int L = 2; L <= p; L++) {
        for(int i = 0; i < p; i++) {
            dp[L][i] = (dp[L-1][i+1] - dp[L-1][i] + p) * inv(L-1) % p;
        }
    }
    for(int i = 0; i < p; i++) {
        for(int j = 0; j < p; j++) ans[j] = (ans[j]+dp[i+1][0]*f[j])%p;
        t[0] = (p-i)*f[0]%p;
        for(int j = 1; j < p; j++) t[j] = (f[j-1] - i*f[j]%p + p)%p;
        for(int j = 0; j < p; j++) f[j] = t[j];
    }
    for(int i = 0; i < p; i++) cout << ans[i] << " \n"[i==p-1];
}


Compiler output:
a.cc: In function 'll mdp(ll, ll, ll)':
a.cc:8:9: error: 'assert' was not declared in this scope
    8 |         assert(p>=0);
      |         ^~~~~~
a.cc:2:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    1 | #include <iostream>
  +++ |+#include <cassert>
    2 | 
a.cc: In function 'll inv(ll)':
a.cc:15:34: error: 'p' was not declared in this scope
   15 | inline ll inv(ll x){return mdp(x,p-2,p);}
      |                                  ^
a.cc: At global scope:
a.cc:16:9: error: 'N' was not declared in this scope
   16 | ll p,dp[N][N];
      |         ^
a.cc:16:12: error: 'N' was not declared in this scope
   16 | ll p,dp[N][N];
      |            ^
a.cc:17:6: error: 'N' was not declared in this scope
   17 | ll f[N]={1},t[N],ans[N];
      |      ^
a.cc:17:15: error: 'N' was not declared in this scope
   17 | ll f[N]={1},t[N],ans[N];
      |               ^
a.cc:17:22: error: 'N' was not declared in this scope
   17 | ll f[N]={1},t[N],ans[N];
      |                      ^
a.cc: In function 'int main()':
a.cc:21:39: error: 'dp' was not declared in this scope; did you mean 'p'?
   21 |     for(int i = 0; i < p; i++) cin >> dp[1][i];
      |                                       ^~
      |                                       p
a.cc:24:13: error: 'dp' was not declared in this scope; did you mean 'p'?
   24 |             dp[L][i] = (dp[L-1][i+1] - dp[L-1][i] + p) * inv(L-1) % p;
      |             ^~
      |             p
a.cc:28:36: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |         for(int j = 0; j < p; j++) ans[j] = (ans[j]+dp[i+1][0]*f[j])%p;
      |                                    ^~~
      |                                    abs
a.cc:28:53: error: 'dp' was not declared in this scope; did you mean 'p'?
   28 |         for(int j = 0; j < p; j++) ans[j] = (ans[j]+dp[i+1][0]*f[j])%p;
      |                                                     ^~
      |                                                     p
a.cc:28:64: error: 'f' was not declared in this scope
   28 |         for(int j = 0; j < p; j++) ans[j] = (ans[j]+dp[i+1][0]*f[j])%p;
      |                                                                ^
a.cc:29:9: error: 't' was not declared in this scope
   29 |         t[0] = (p-i)*f[0]%p;
      |         ^
a.cc:29:22: error: 'f' was not declared in this scope
   29 |         t[0] = (p-i)*f[0]%p;
      |                      ^
a.cc:33:40: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |     for(int i = 0; i < p; i++) cout << ans[i] << " \n"[i==p-1];
      |                                        ^~~
      |                                        abs