Author
anonymous
about 7 years ago
Language
Compiler
Options
Author
anonymous
about 7 years ago
$
prog.cc: In function 'int main()':
prog.cc:23:25: error: invalid initialization of reference of type 'int (&)[21]' from expression of type 'int [12]'
unir_vectores(a, b, c);
^
prog.cc:4:6: note: in passing argument 3 of 'void unir_vectores(tipo (&)[tamanyo_a], tipo (&)[tamanyo_b], tipo (&)[(tamanyo_a + tamanyo_b)]) [with tipo = int; long unsigned int tamanyo_a = 10; long unsigned int tamanyo_b = 11]'
void unir_vectores(tipo (&vector_a)[tamanyo_a], tipo (&vector_b)[tamanyo_b], tipo (&destino)[tamanyo_a + tamanyo_b])
^~~~~~~~~~~~~
Exit Code:
1