I am writing this c++ code to multiply two 2d matrices and return the resultant 2d matrix.
The error is cannot convert ll (*)[2] to ll**
ll** multiply(ll a[2][2],ll b[2][2])
{
ll ans[2][2];
ans[0][0]=((a[0][0]*b[0][0])%mod+(a[0][1]*b[1][0])%mod)%mod;
ans[0][1]=((a[0][0]*b[0][1])%mod+(a[0][1]*b[1][1])%mod)%mod;
ans[1][0]=((a[1][0]*b[0][0])%mod+(a[1][1]*b[1][0])%mod)%mod;
ans[1][1]=((a[1][0]*b[0][1])%mod+(a[1][1]*b[1][1])%mod)%mod;
return ans;
}