Feu una funció que, donades dues matrius quadrades @a@ i @b@, calculi la seva suma.
typedef vector< vector<int> > Matriu;
Matriu suma(const Matriu& a, const Matriu& b);
public static int[][] suma(int[][] a, int[][] b);
suma(a, b) # returns list
suma(a: list[list[int]], b: list[list[int]]) -> list[list[int]]
@a@ i @b@ són matrius quadrades n×nn\times n amb n≥0n \ge 0.
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.