0_0_16357278_6800.cpp: In function 'matrix multi(matrix&, matrix&)':
0_0_16357278_6800.cpp:23:14: error: invalid types 'int[int]' for array subscript
temp.map[i][j]=0;
^
0_0_16357278_6800.cpp:25:15: error: invalid types 'int[int]' for array subscript
temp.map[i][j]+=a.map[i][k]*b.map[k][j];
^
0_0_16357278_6800.cpp:25:28: error: invalid types 'int[int]' for array subscript
temp.map[i][j]+=a.map[i][k]*b.map[k][j];
^
0_0_16357278_6800.cpp:25:40: error: invalid types 'int[int]' for array subscript
temp.map[i][j]+=a.map[i][k]*b.map[k][j];
^
0_0_16357278_6800.cpp:26:15: error: invalid types 'int[int]' for array subscript
temp.map[i][j]%=M;
^
0_0_16357278_6800.cpp: In function 'int main()':
0_0_16357278_6800.cpp:37:41: error: 'memset' was not declared in this scope
memset(mat[0].map,0,sizeof(mat[0].map));//×î³õµÄ¾ØÕó
^
0_0_16357278_6800.cpp:47:20: error: invalid types 'int[std::map<int, int>::mapped_type {aka int}]' for array subscript
mat[0].map[mp[a]][mp[b]]++;
^
0_0_16357278_6800.cpp:62:27: error: invalid types 'int[std::map<int, int>::mapped_type {aka int}]' for array subscript
ans+=mat[i].map[mp[v1]][mp[v2]];
^
|