prog.c:7:31: error: unknown type name ‘bool’; did you mean ‘_Bool’?
void calc_bombs(int n, int m, bool **is_bomb, int **count);
^~~~
_Bool
prog.c: In function ‘main’:
prog.c:13:5: error: unknown type name ‘bool’; did you mean ‘_Bool’?
bool *is_bomb[n];
^~~~
_Bool
prog.c:15:23: error: ‘bool’ undeclared (first use in this function); did you mean ‘atol’?
is_bomb[i] = (bool*) malloc(sizeof(bool)*m);
^~~~
atol
prog.c:15:23: note: each undeclared identifier is reported only once for each function it appears in
prog.c:15:28: error: expected expression before ‘)’ token
is_bomb[i] = (bool*) malloc(sizeof(bool)*m);
^
prog.c:22:5: warning: implicit declaration of function ‘calc_bombs’; did you mean ‘wcstombs’? [-Wimplicit-function-declaration]
calc_bombs(n, m, is_bomb, count);
^~~~~~~~~~
wcstombs
prog.c:11:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^~~~~~~~~~~~~~~~~~~~~
prog.c:18:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &is_bomb[i][j]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~