fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int* foo = new foo[];
  6. return 0;
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:5:17: error: expected type-specifier before ‘foo’
  int* foo = new foo[];
                 ^
prog.cpp:5:7: warning: unused variable ‘foo’ [-Wunused-variable]
  int* foo = new foo[];
       ^
stdout
Standard output is empty