0_0_37956023_17341.cpp:91:19: error: 'mod' is not a valid template argument for type 'const int&' because object 'mod' has not external linkage
using Mint = Z<mod>;
^
0_0_37956023_17341.cpp: In function 'int main()':
0_0_37956023_17341.cpp:97:16: error: 'Mint' was not declared in this scope
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:16: error: template argument 1 is invalid
0_0_37956023_17341.cpp:97:16: error: template argument 2 is invalid
0_0_37956023_17341.cpp:97:20: error: template argument 1 is invalid
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:20: error: template argument 2 is invalid
0_0_37956023_17341.cpp:97:28: error: invalid type in declaration before '(' token
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:46: error: the value of 'Mint' is not usable in a constant expression
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:16: note: 'Mint' was not declared 'constexpr'
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:50: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:97:50: error: expected a type, got 'Mint'
0_0_37956023_17341.cpp:97:50: error: template argument 2 is invalid
0_0_37956023_17341.cpp:97:61: error: expression list treated as compound expression in initializer [-fpermissive]
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:99:10: error: invalid types 'int[int]' for array subscript
binom[i][0] = 1;
^
0_0_37956023_17341.cpp:100:23: error: invalid types 'int[int]' for array subscript
rep(j, 1, i) binom[i][j] = binom[i - 1][j] + binom[i - 1][j - 1];
^
0_0_37956023_17341.cpp:100:41: error: invalid types 'int[int]' for array subscript
rep(j, 1, i) binom[i][j] = binom[i - 1][j] + binom[i - 1][j - 1];
^
0_0_37956023_17341.cpp:100:59: error: invalid types 'int[int]' for array subscript
rep(j, 1, i) binom[i][j] = binom[i - 1][j] + binom[i - 1][j - 1];
^
0_0_37956023_17341.cpp:102:9: error: the value of 'Mint' is not usable in a constant expression
vector<Mint> pw(maxn * maxn + 1);
^
0_0_37956023_17341.cpp:97:16: note: 'Mint' was not declared 'constexpr'
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:102:13: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector<Mint> pw(maxn * maxn + 1);
^
0_0_37956023_17341.cpp:102:13: error: expected a type, got 'Mint'
0_0_37956023_17341.cpp:102:13: error: template argument 2 is invalid
0_0_37956023_17341.cpp:102:17: error: invalid type in declaration before '(' token
vector<Mint> pw(maxn * maxn + 1);
^
0_0_37956023_17341.cpp:103:6: error: invalid types 'int[int]' for array subscript
pw[0] = 1;
^
0_0_37956023_17341.cpp:104:29: error: invalid types 'int[int]' for array subscript
rep(i, 1, maxn * maxn) pw[i] = pw[i - 1] * 2;
^
0_0_37956023_17341.cpp:104:41: error: invalid types 'int[int]' for array subscript
rep(i, 1, maxn * maxn) pw[i] = pw[i - 1] * 2;
^
0_0_37956023_17341.cpp:108:10: error: the value of 'Mint' is not usable in a constant expression
vector<Mint> xs(n + 1), ys(m + 1);
^
0_0_37956023_17341.cpp:97:16: note: 'Mint' was not declared 'constexpr'
vector<vector<Mint>> binom(maxn + 1, vector<Mint>(maxn + 1));
^
0_0_37956023_17341.cpp:108:14: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
vector<Mint> xs(n + 1), ys(m + 1);
^
0_0_37956023_17341.cpp:108:14: error: expected a type, got 'Mint'
0_0_37956023_17341.cpp:108:14: error: template argument 2 is invalid
0_0_37956023_17341.cpp:108:18: error: invalid type in declaration before '(' token
vector<Mint> xs(n + 1), ys(m + 1);
^
0_0_37956023_17341.cpp:111:26: error: invalid types 'int[int]' for array subscript
if ((i - j) & 1) xs[i] -= binom[i][j];
^
0_0_37956023_17341.cpp:111:38: error: invalid types 'int[int]' for array subscript
if ((i - j) & 1) xs[i] -= binom[i][j];
^
0_0_37956023_17341.cpp:112:14: error: invalid types 'int[int]' for array subscript
else xs[i] += binom[i][j];
^
0_0_37956023_17341.cpp:112:26: error: invalid types 'int[int]' for array subscript
else xs[i] += binom[i][j];
^
0_0_37956023_17341.cpp:117:26: error: invalid types 'int[int]' for array subscript
if ((i - j) & 1) ys[i] -= binom[i][j];
^
0_0_37956023_17341.cpp:117:38: error: invalid types 'int[int]' for array subscript
if ((i - j) & 1) ys[i] -= binom[i][j];
^
0_0_37956023_17341.cpp:118:14: error: invalid types 'int[int]' for array subscript
else ys[i] += binom[i][j];
^
0_0_37956023_17341.cpp:118:26: error: invalid types 'int[int]' for array subscript
else ys[i] += binom[i][j];
^
0_0_37956023_17341.cpp:121:8: error: expected ';' before 'ans'
Mint ans = 0;
^
0_0_37956023_17341.cpp:122:29: error: 'ans' was not declared in this scope
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:122:40: error: invalid types 'int[int]' for array subscript
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:122:48: error: invalid types 'int[int]' for array subscript
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:122:59: error: invalid types 'int[int]' for array subscript
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:122:73: error: invalid types 'int[int]' for array subscript
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:122:100: error: invalid types 'int[int]' for array subscript
rep(i, a, n) rep(j, b, m) ans += xs[i] * ys[j] * binom[n][i] * binom[m][j] * pw[(n - i) * (m - j)];
^
0_0_37956023_17341.cpp:123:24: error: 'ans' was not declared in this scope
printf("%d\n", (int) ans);
^
|