prog.c: In function ‘print_matrix’:
prog.c:3:9: error: ‘n’ redeclared as different kind of symbol
int n = sizeof(array) / sizeof(array[0]);
^
prog.c:1:36: note: previous definition of ‘n’ was here
void print_matrix(int** array, int n, int m)
~~~~^
prog.c:3:27: warning: division ‘sizeof (int **) / sizeof (int *)’ does not compute the number of array elements [-Wsizeof-pointer-div]
int n = sizeof(array) / sizeof(array[0]);
^
prog.c:1:25: note: first ‘sizeof’ operand was declared here
void print_matrix(int** array, int n, int m)
~~~~~~^~~~~
prog.c:4:9: error: ‘m’ redeclared as different kind of symbol
int m = sizeof(array[0]) / sizeof(array[0][0]);
^
prog.c:1:43: note: previous definition of ‘m’ was here
void print_matrix(int** array, int n, int m)
~~~~^
prog.c:4:30: warning: division ‘sizeof (int *) / sizeof (int)’ does not compute the number of array elements [-Wsizeof-pointer-div]
int m = sizeof(array[0]) / sizeof(array[0][0]);
^
prog.c:6:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("n=%d\tm=%d\tfinal=%d\n", n, m, *final);
^~~~~~
prog.c:6:5: warning: incompatible implicit declaration of built-in function ‘printf’
prog.c:6:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
prog.c:1:1:
+#include <stdio.h>
void print_matrix(int** array, int n, int m)
prog.c:6:5:
printf("n=%d\tm=%d\tfinal=%d\n", n, m, *final);
^~~~~~