0_0_24953938_13526.cpp:5:5: error: 'll' does not name a type
ll data[10][10];
^
0_0_24953938_13526.cpp: In constructor 'Matrix::Matrix(int)':
0_0_24953938_13526.cpp:10:9: error: 'data' was not declared in this scope
data[1][1] = 0, data[1][2] = 1;
^
0_0_24953938_13526.cpp: In member function 'Matrix Matrix::operator*(const Matrix&) const':
0_0_24953938_13526.cpp:19:21: error: 'struct Matrix' has no member named 'data'
res.data[i][j] = 0;
^
0_0_24953938_13526.cpp:21:25: error: 'struct Matrix' has no member named 'data'
res.data[i][j] += data[i][k] * rhs.data[k][j];
^
0_0_24953938_13526.cpp:21:39: error: 'data' was not declared in this scope
res.data[i][j] += data[i][k] * rhs.data[k][j];
^
0_0_24953938_13526.cpp:21:56: error: 'const struct Matrix' has no member named 'data'
res.data[i][j] += data[i][k] * rhs.data[k][j];
^
0_0_24953938_13526.cpp:23:21: error: 'struct Matrix' has no member named 'data'
res.data[i][j] %= mod;
^
0_0_24953938_13526.cpp:23:35: error: 'mod' was not declared in this scope
res.data[i][j] %= mod;
^
0_0_24953938_13526.cpp: In member function 'Matrix Matrix::operator^(int) const':
0_0_24953938_13526.cpp:32:20: error: 'struct Matrix' has no member named 'data'
memset(res.data, 0, sizeof(res.data));
^
0_0_24953938_13526.cpp:32:40: error: 'struct Matrix' has no member named 'data'
memset(res.data, 0, sizeof(res.data));
^
0_0_24953938_13526.cpp:32:45: error: 'memset' was not declared in this scope
memset(res.data, 0, sizeof(res.data));
^
0_0_24953938_13526.cpp:33:43: error: 'struct Matrix' has no member named 'data'
for(int i = 1; i <= row; ++i) res.data[i][i] = 1;
^
0_0_24953938_13526.cpp:34:20: error: 'struct Matrix' has no member named 'data'
memcpy(tmp.data, data, sizeof(data));
^
0_0_24953938_13526.cpp:34:26: error: 'data' was not declared in this scope
memcpy(tmp.data, data, sizeof(data));
^
0_0_24953938_13526.cpp: At global scope:
0_0_24953938_13526.cpp:45:8: error: 'll' does not name a type
inline ll phi(ll x)
^
0_0_24953938_13526.cpp:58:1: error: 'll' does not name a type
ll solve(int len, int k)
^
0_0_24953938_13526.cpp:69:1: error: 'll' does not name a type
ll quick_pow(int x, ll m)
^
0_0_24953938_13526.cpp: In function 'int main()':
0_0_24953938_13526.cpp:83:9: error: 'll' was not declared in this scope
ll ans = 0;
^
0_0_24953938_13526.cpp:86:13: error: 'ans' was not declared in this scope
ans = (ans + phi(n / i) * solve(i, k) % mod) % mod;
^
0_0_24953938_13526.cpp:86:35: error: 'phi' was not declared in this scope
ans = (ans + phi(n / i) * solve(i, k) % mod) % mod;
^
0_0_24953938_13526.cpp:86:49: error: 'solve' was not declared in this scope
ans = (ans + phi(n / i) * solve(i, k) % mod) % mod;
^
0_0_24953938_13526.cpp:86:53: error: 'mod' was not declared in this scope
ans = (ans + phi(n / i) * solve(i, k) % mod) % mod;
^
0_0_24953938_13526.cpp:90:25: error: 'ans' was not declared in this scope
printf("%lld\n",ans * k % mod * (k - 1) % mod * quick_pow(n, mod - 2) % mod);
^
0_0_24953938_13526.cpp:90:35: error: 'mod' was not declared in this scope
printf("%lld\n",ans * k % mod * (k - 1) % mod * quick_pow(n, mod - 2) % mod);
^
0_0_24953938_13526.cpp:90:77: error: 'quick_pow' was not declared in this scope
printf("%lld\n",ans * k % mod * (k - 1) % mod * quick_pow(n, mod - 2) % mod);
^
|