Add header file of malloc function
#include <stdio.h> #include <stdlib.h> int main(int argc, char const *argv[]) { return 0; }