fork(1) download
  1. struct Year
  2. {
  3. int* pattern;
  4. };
  5.  
  6. int main()
  7. {
  8. Year leap = {
  9. new int[12]{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
  10. };
  11.  
  12. delete[] leap.pattern;
  13. }
  14.  
Success #stdin #stdout 0s 3012KB
stdin
Standard input is empty
stdout
Standard output is empty