fork(3) download
  1. int main()
  2. {
  3. struct G4double {};
  4. struct G4int {};
  5.  
  6. struct One { G4double A, B; G4int id; };
  7. struct Two { G4int event,part; struct One *Spin=new One[part]; } TwoInc;
  8.  
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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; 
                                                             ^
stdout
Standard output is empty