0_0_37878256_24679.cpp: In member function 'Matrix<T1, r, cc> Matrix<T, r, c>::operator*(const Matrix<T1, c, cc>&)':
0_0_37878256_24679.cpp:16:12: error: 'common_type_t' was not declared in this scope
Matrix<common_type_t<T1, T>, r, cc> res{};
^
0_0_37878256_24679.cpp:16:31: error: wrong number of template arguments (2, should be 3)
Matrix<common_type_t<T1, T>, r, cc> res{};
^
0_0_37878256_24679.cpp:12:8: error: provided for 'template<class T, int r, int c> struct Matrix'
struct Matrix{
^
0_0_37878256_24679.cpp:16:32: error: expected unqualified-id before ',' token
Matrix<common_type_t<T1, T>, r, cc> res{};
^
0_0_37878256_24679.cpp:16:35: error: invalid type in declaration before ',' token
Matrix<common_type_t<T1, T>, r, cc> res{};
^
0_0_37878256_24679.cpp:16:35: error: declaration of 'int r'
0_0_37878256_24679.cpp:11:23: error: shadows template parm 'int r'
template <typename T, int r, int c>
^
0_0_37878256_24679.cpp:16:39: error: expected initializer before '>' token
Matrix<common_type_t<T1, T>, r, cc> res{};
^
0_0_37878256_24679.cpp:20:11: error: 'res' was not declared in this scope
res.mat[i][j] = (res.mat[i][j] + mat[i][k] * m.mat[k][j] % P);
^
0_0_37878256_24679.cpp:21:9: error: 'res' was not declared in this scope
res.mat[i][j] %= P;
^
0_0_37878256_24679.cpp:23:12: error: 'res' was not declared in this scope
return res;
^
|