fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int* a = new int[10];
  5. return 0;
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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];
       ^
stdout
Standard output is empty