error 'malloc' was not declared in this scope


error: ‘malloc’ was not declared in this scope

没有引用相应的库

1
#include <stdlib.h>