/in/foo.c: In function 'main':
/in/foo.c:7:11: error: 'new' undeclared (first use in this function)
int *a = new int;
^~~
/in/foo.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:15: error: expected ',' or ';' before 'int'
int *a = new int;
^~~
/in/foo.c:8:15: error: expected ',' or ';' before 'int'
int *b = new int;
^~~
/in/foo.c:9:2: error: unknown type name 'delete'
delete a;
^~~~~~
/in/foo.c:9:9: error: conflicting types for 'a'
delete a;
^
/in/foo.c:7:7: note: previous definition of 'a' was here
int *a = new int;
^
/in/foo.c:10:2: error: unknown type name 'delete'
delete b;
^~~~~~
/in/foo.c:10:9: error: conflicting types for 'b'
delete b;
^
/in/foo.c:8:7: note: previous definition of 'b' was here
int *b = new int;
^