fork download
  1. #include <iostream>
  2.  
  3. struct S
  4. {
  5. int x;
  6. int y;
  7. S() : x(0), y(0) {}//added default ctor
  8. S(int _x, int _y) : x(_x), y(_y) {}
  9. };
  10.  
  11. int main()
  12. {
  13. S arr[9];
  14. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout

Standard output is empty