#include <iostream> struct S{ int x; int y; S(int _x, int _y) : x(_x), y(_y) {}}; int main(){ S arr[9];}
Standard input is empty
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’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!