0_0_38426984_12141.cpp: In function 'int main()': 0_0_38426984_12141.cpp:8:52: error: 'malloc' was not declared in this scope double *a = (double *)malloc(sizeof(double) * n); ^