0_0_38339824_23656.cpp: In member function 'void Mat::print()':
0_0_38339824_23656.cpp:34:24: error: 'm' was not declared in this scope
for (int i=0;i<m;i++,puts(""))
^
0_0_38339824_23656.cpp: In member function 'void Mat::set(long long int)':
0_0_38339824_23656.cpp:41:34: error: 'm' was not declared in this scope
if (x==1) for (int i=0;i<m;i++) v[i][i]=1;
^
0_0_38339824_23656.cpp: In member function 'Mat Mat::operator*(Mat)':
0_0_38339824_23656.cpp:45:24: error: 'm' was not declared in this scope
for (int i=0;i<m;i++)
^
0_0_38339824_23656.cpp:48:65: error: 'mod' was not declared in this scope
ans.v[i][j]=(ans.v[i][j]+v[i][k]*x.v[k][j])%mod;
^
0_0_38339824_23656.cpp: At global scope:
0_0_38339824_23656.cpp:66:10: error: '::main' must return 'int'
int main(){
^
0_0_38339824_23656.cpp: In function 'int main()':
0_0_38339824_23656.cpp:68:12: error: 'mod' was not declared in this scope
x%=mod,y%=mod;
^
0_0_38339824_23656.cpp:70:18: error: 'm' was not declared in this scope
int newi[m]={2,1,1,1};
^
0_0_38339824_23656.cpp:75:23: error: 'newi' was not declared in this scope
memcpy(M.v[0],newi,sizeof newi);
^
0_0_38339824_23656.cpp:76:21: error: 'newd' was not declared in this scope
memcpy(Md.v,newd,sizeof newd);
^
|