1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <iostream> struct S { int x; int y; S(int _x, int _y) : x(_x), y(_y) {} }; int main() { S arr[9]; } |
I2luY2x1ZGUgPGlvc3RyZWFtPgogCnN0cnVjdCBTCnsKICAgIGludCB4OwogICAgaW50IHk7CiAgICBTKGludCBfeCwgaW50IF95KSA6IHgoX3gpLCB5KF95KSB7fQp9OwogCmludCBtYWluKCkKewogICAgUyBhcnJbOV07Cn0=
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’
-
result: Compilation error (maybe you wish to see an example for C++ 4.7.2)


