int main(){ struct G4double {}; struct G4int {}; struct One { G4double A, B; G4int id; }; struct Two { G4int event,part; struct One *Spin=new One[part]; } TwoInc; return 0;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:7:61: error: expression in new-declarator must have integral or enumeration type struct Two { G4int event,part; struct One *Spin=new One[part]; } TwoInc; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!