Ok, ya quite el argumento de rand() y puse el #include "string.h" pero ahora me sale esto:
Código HTML:
Ver originalsrc/Matriz2D-1.cpp: In function ‘int** SubMatriz2D_1(Matriz2D_1, int, int, int, int)’:
src/Matriz2D-1.cpp:76:79: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp:76:79: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 2 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp: In function ‘int** EliminaColumnaMatriz2D_1(Matriz2D_1, int, int, int)’:
src/Matriz2D-1.cpp:89:65: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp:89:65: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 2 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp:93:65: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp:93:65: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 2 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp: In function ‘int** TraspuestaMatriz2D_1(Matriz2D_1, int, int)’:
src/Matriz2D-1.cpp:119:56: error: invalid conversion from ‘int’ to ‘void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
src/Matriz2D-1.cpp:119:56: error: invalid conversion from ‘int’ to ‘const void*’ [-fpermissive]
/usr/include/string.h:44:14: error: initializing argument 2 of ‘void* memcpy(void*, const void*, size_t)’ [-fpermissive]
Gracias por la ayuda.