incompatible implicit declaration of built-in function 'malloc' [enabled by default] code example
Example: incompatible implicit declaration of built-in function ‘malloc’
Insert:
#include <stdlib.h>
Insert:
#include <stdlib.h>