Feu una funció que, donades dues matrius @a@ i @b@, calculi el seu producte.
typedef vector< vector<int> > Matriu; Matriu producte(const Matriu& a, const Matriu& b);
Matriu: TypeAlias = list[list[int]] def producte(a: Matriu, b: Matriu) -> Matriu
@a@ és una matriu p×qp\times q i @b@ és una matriu q×rq\times r, amb p,q,r≥1p,q,r\ge1.
The official statement of a problem is always the one in the PDF document. The HTML version of the statement is also given to help you, but may contain some content that is not well displayed. In case of doubt, always use the PDF.