0_0_20730074_773.cpp:11:8: error: 'maxn' was not declared in this scope
int m[maxn] [maxn];
^
0_0_20730074_773.cpp:11:15: error: 'maxn' was not declared in this scope
int m[maxn] [maxn];
^
0_0_20730074_773.cpp: In function 'mat operator*(mat, mat)':
0_0_20730074_773.cpp:8:25: error: 'x' cannot be used as a function
#define mod (x) ((x)%MOD)
^
0_0_20730074_773.cpp:21:9: note: in expansion of macro 'mod'
x += mod( a.m[i][k]*b.m[k][j]);
^
0_0_20730074_773.cpp:21:16: error: 'struct mat' has no member named 'm'
x += mod( a.m[i][k]*b.m[k][j]);
^
0_0_20730074_773.cpp:21:26: error: 'struct mat' has no member named 'm'
x += mod( a.m[i][k]*b.m[k][j]);
^
0_0_20730074_773.cpp:22:8: error: 'struct mat' has no member named 'm'
ret.m[i][j]=x;
^
0_0_20730074_773.cpp: In function 'void init_unit()':
0_0_20730074_773.cpp:29:8: error: 'x' was not declared in this scope
while(x){
^
0_0_20730074_773.cpp:30:21: error: 'a' was not declared in this scope
if(x&1) ret = ret*a;
^
0_0_20730074_773.cpp:31:3: error: 'a' was not declared in this scope
a = a*a;
^
0_0_20730074_773.cpp:34:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
return ret;
^
0_0_20730074_773.cpp: In function 'int main()':
0_0_20730074_773.cpp:38:4: error: 'struct mat' has no member named 'm'
s.m[0][0] = 5; s.m[0][1] = 0 ; s.m[1][0] = 2; s.m[1][1] = 0;
^
0_0_20730074_773.cpp:38:19: error: 'struct mat' has no member named 'm'
s.m[0][0] = 5; s.m[0][1] = 0 ; s.m[1][0] = 2; s.m[1][1] = 0;
^
0_0_20730074_773.cpp:38:35: error: 'struct mat' has no member named 'm'
s.m[0][0] = 5; s.m[0][1] = 0 ; s.m[1][0] = 2; s.m[1][1] = 0;
^
0_0_20730074_773.cpp:38:50: error: 'struct mat' has no member named 'm'
s.m[0][0] = 5; s.m[0][1] = 0 ; s.m[1][0] = 2; s.m[1][1] = 0;
^
0_0_20730074_773.cpp:39:4: error: 'struct mat' has no member named 'm'
A.m[0][0] = 5; A.m[0][1] = 12; A.m[1][0] = 2; A.m[1][1] = 5;
^
0_0_20730074_773.cpp:39:19: error: 'struct mat' has no member named 'm'
A.m[0][0] = 5; A.m[0][1] = 12; A.m[1][0] = 2; A.m[1][1] = 5;
^
0_0_20730074_773.cpp:39:35: error: 'struct mat' has no member named 'm'
A.m[0][0] = 5; A.m[0][1] = 12; A.m[1][0] = 2; A.m[1][1] = 5;
^
0_0_20730074_773.cpp:39:50: error: 'struct mat' has no member named 'm'
A.m[0][0] = 5; A.m[0][1] = 12; A.m[1][0] = 2; A.m[1][1] = 5;
^
0_0_20730074_773.cpp:46:26: error: 'pow_mat' was not declared in this scope
mat tmp = pow_mat(A,n-1);
^
0_0_20730074_773.cpp:48:24: error: 'struct mat' has no member named 'm'
printf("%d/n",(2*tmp.m[0][0]-1)%MOD);
^
|