Pass pointer by reference and memory saving

J-M-L:
When you do [nobbc]*vetor2[i][/nobbc] the precedence rules get it interpreted as [nobbc]*(vetor2[i])[/nobbc] and not [nobbc](*vetor2)[i][/nobbc].

Why do you do free(vetor); ?

I used free() because in my Arduino delete[] did not seem to release the memory, so I decided to test the two on tinkercad.com, I'll test it now on my Arduino because the way you recommended it with pointers worked.

Thank you.