#include <iostream> using namespace std; int main() { int* foo = new foo[]; return 0; }
Standard input is empty
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[];
^
Standard output is empty