Anyone knows how to prove that in the int main???
(Matriu = Matrix in Spanish)
The program makes de sum of two square matrix
#include <iostream>
#include <vector>
using namespace std;
typedef vector<int> Fila;
typedef vector<Fila> Matriu;
Matriu suma(const Matriu& a, Matriu& b) {
int tam = a.size();
Matriu Suma(tam, Fila(tam));
for (int i = 0; i < tam; ++i) {
for (int j = 0; j < tam; ++j) {
Suma[i][j] = a[i][j] + b[i][j];
}
}
return Suma;
}
int main(){
????????
}
Last edited on
How to prove what?
PS: I'm absolutely completely certain that the actual Spanish word for "matrix" is "matriz".
Hahahaha yes, sorry, "Matrix" is "Matriu" in Catalan, Sorry.