#include<iostream>
#include <vector>
using namespace std;
void recebeValor(vector<vector<int>> mat) {
mat[0][0] = 2;
cout << mat[0][0];
}
int main() {
cout << "Entre o numero de linhas da matriz A: ";
int lin;
cin >> lin;
cout << "Entre o numero de colunas da matriz A> ";
int col;
cin >> col;
vector<vector<int>> mat(lin, vector<int>(col));
recebeValor(mat);
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlIDx2ZWN0b3I+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2b2lkIHJlY2ViZVZhbG9yKHZlY3Rvcjx2ZWN0b3I8aW50Pj4gbWF0KSB7CiAgIG1hdFswXVswXSA9IDI7CiAgIGNvdXQgPDwgbWF0WzBdWzBdOwp9CgppbnQgbWFpbigpIHsKCWNvdXQgPDwgIkVudHJlIG8gbnVtZXJvIGRlIGxpbmhhcyBkYSBtYXRyaXogQTogIjsKCWludCBsaW47CgljaW4gPj4gbGluOwoJCgljb3V0IDw8ICJFbnRyZSBvIG51bWVybyBkZSBjb2x1bmFzIGRhIG1hdHJpeiBBPiAiOwoJaW50IGNvbDsKCWNpbiA+PiBjb2w7IAoJCgl2ZWN0b3I8dmVjdG9yPGludD4+IG1hdChsaW4sIHZlY3RvcjxpbnQ+KGNvbCkpOwoJCglyZWNlYmVWYWxvcihtYXQpOwoJcmV0dXJuIDA7Cn0=