0_0_36188185_25714.cpp:72:1: error: missing terminating ' character
constexpr unsigned MO = 1'000'000'007;
^
0_0_36188185_25714.cpp:80:1: error: missing terminating ' character
constexpr int LIM = 100'010;
^
0_0_36188185_25714.cpp:72:26: error: expected ',' or ';' before '\x303030'
constexpr unsigned MO = 1'000'000'007;
^
0_0_36188185_25714.cpp:82:1: error: expected ',' or ';' before 'int'
int N, K;
^
0_0_36188185_25714.cpp: In function 'int main()':
0_0_36188185_25714.cpp:85:10: error: 'Mint' was not declared in this scope
vector<Mint> ps(LIM, 0);
^
0_0_36188185_25714.cpp:85:14: error: template argument 1 is invalid
vector<Mint> ps(LIM, 0);
^
0_0_36188185_25714.cpp:85:14: error: template argument 2 is invalid
0_0_36188185_25714.cpp:85:18: error: invalid type in declaration before '(' token
vector<Mint> ps(LIM, 0);
^
0_0_36188185_25714.cpp:85:25: error: expression list treated as compound expression in initializer [-fpermissive]
vector<Mint> ps(LIM, 0);
^
0_0_36188185_25714.cpp:86:7: error: invalid types 'int[int]' for array subscript
ps[0] = 1;
^
0_0_36188185_25714.cpp:88:65: error: invalid types 'int[int]' for array subscript
for (int j = 1, k; (k = j * (3 * j - 1) / 2) <= i; ++j) ps[i] -= ((j & 1) ? -1 : +1) * ps[i - k];
^
0_0_36188185_25714.cpp:88:100: error: invalid types 'int[int]' for array subscript
for (int j = 1, k; (k = j * (3 * j - 1) / 2) <= i; ++j) ps[i] -= ((j & 1) ? -1 : +1) * ps[i - k];
^
0_0_36188185_25714.cpp:89:65: error: invalid types 'int[int]' for array subscript
for (int j = 1, k; (k = j * (3 * j + 1) / 2) <= i; ++j) ps[i] -= ((j & 1) ? -1 : +1) * ps[i - k];
^
0_0_36188185_25714.cpp:89:100: error: invalid types 'int[int]' for array subscript
for (int j = 1, k; (k = j * (3 * j + 1) / 2) <= i; ++j) ps[i] -= ((j & 1) ? -1 : +1) * ps[i - k];
^
0_0_36188185_25714.cpp:95:22: error: 'N' was not declared in this scope
scanf("%d%d", &N, &K);
^
0_0_36188185_25714.cpp:95:26: error: 'K' was not declared in this scope
scanf("%d%d", &N, &K);
^
0_0_36188185_25714.cpp:97:12: error: expected ';' before 'ans'
Mint ans = ps[N];
^
0_0_36188185_25714.cpp:98:67: error: 'ans' was not declared in this scope
for (int j = 1, k; (k = K * j * (3 * j - 1) / 2) <= N; ++j) ans += ((j & 1) ? -1 : +1) * ps[N - k];
^
0_0_36188185_25714.cpp:99:67: error: 'ans' was not declared in this scope
for (int j = 1, k; (k = K * j * (3 * j + 1) / 2) <= N; ++j) ans += ((j & 1) ? -1 : +1) * ps[N - k];
^
0_0_36188185_25714.cpp:100:22: error: 'ans' was not declared in this scope
printf("%u\n", ans.x);
^
|