0_0_25990584_6816.cpp:29:1: error: 'Mat' does not name a type
Mat I, A, K, A0;
^
0_0_25990584_6816.cpp:33:15: error: 'sz' was not declared in this scope
LL matrix[sz][sz];
^
0_0_25990584_6816.cpp:33:19: error: 'sz' was not declared in this scope
LL matrix[sz][sz];
^
0_0_25990584_6816.cpp: In function 'Mat Add(Mat, Mat)':
0_0_25990584_6816.cpp:38:29: error: 'struct Mat' has no member named 'matrix'
rep(i, sz) rep(j, sz) c.matrix[i][j] = (a.matrix[i][j] + b.matrix[i][j]) % M;
^
0_0_25990584_6816.cpp:38:47: error: 'struct Mat' has no member named 'matrix'
rep(i, sz) rep(j, sz) c.matrix[i][j] = (a.matrix[i][j] + b.matrix[i][j]) % M;
^
0_0_25990584_6816.cpp:38:64: error: 'struct Mat' has no member named 'matrix'
rep(i, sz) rep(j, sz) c.matrix[i][j] = (a.matrix[i][j] + b.matrix[i][j]) % M;
^
0_0_25990584_6816.cpp: In function 'Mat Mul(Mat, Mat)':
0_0_25990584_6816.cpp:46:15: error: 'struct Mat' has no member named 'matrix'
c.matrix[i][j] = 0;
^
0_0_25990584_6816.cpp:48:19: error: 'struct Mat' has no member named 'matrix'
c.matrix[i][j] += (a.matrix[i][k] * b.matrix[k][j]) % M;
^
0_0_25990584_6816.cpp:48:38: error: 'struct Mat' has no member named 'matrix'
c.matrix[i][j] += (a.matrix[i][k] * b.matrix[k][j]) % M;
^
0_0_25990584_6816.cpp:48:55: error: 'struct Mat' has no member named 'matrix'
c.matrix[i][j] += (a.matrix[i][k] * b.matrix[k][j]) % M;
^
0_0_25990584_6816.cpp:49:19: error: 'struct Mat' has no member named 'matrix'
c.matrix[i][j] %= M;
^
0_0_25990584_6816.cpp: In function 'Mat Pow(Mat, LL)':
0_0_25990584_6816.cpp:57:15: error: 'I' was not declared in this scope
Mat ret = I;
^
0_0_25990584_6816.cpp: In function 'Mat Work(Mat, LL)':
0_0_25990584_6816.cpp:69:58: error: 'I' was not declared in this scope
else return Mul(Work(a, x >> 1), Add(Pow(a, x >> 1), I));
^
0_0_25990584_6816.cpp: In function 'Mat Init_I()':
0_0_25990584_6816.cpp:74:31: error: 'struct Mat' has no member named 'matrix'
rep(i, sz) rep(j, sz) ret.matrix[i][j] = i == j;
^
0_0_25990584_6816.cpp: In function 'int main()':
0_0_25990584_6816.cpp:84:5: error: 'A' was not declared in this scope
A.matrix[0][0] = 1;
^
0_0_25990584_6816.cpp:88:5: error: 'I' was not declared in this scope
I = Init_I();
^
0_0_25990584_6816.cpp:91:9: error: 'K' was not declared in this scope
K = Pow(A, k);
^
0_0_25990584_6816.cpp:92:9: error: 'A0' was not declared in this scope
A0 = I;
^
|