fork download
  1. #include <iostream>
  2.  
  3. struct S
  4. {
  5. int x;
  6. int y;
  7. S(int _x, int _y) : x(_x), y(_y) {}
  8. };
  9.  
  10. int main()
  11. {
  12. S arr[9];
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:12: error: no matching function for call to ‘S::S()’
prog.cpp:7: note: candidates are: S::S(int, int)
prog.cpp:4: note:                 S::S(const S&)
prog.cpp:12: warning: unused variable ‘arr’
stdout

Standard output is empty