prog.c: In function ‘main’:
prog.c:4:11: error: ‘new’ undeclared (first use in this function)
int* a = new int[10];
^~~
prog.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
prog.c:4:15: error: expected ‘,’ or ‘;’ before ‘int’
int* a = new int[10];
^~~
prog.c:4:7: warning: unused variable ‘a’ [-Wunused-variable]
int* a = new int[10];
^