#include <iostream> using namespace std; class X1 { X1(int arg_value1) : value1(arg_value1) {} int value1; }; class X2 : public X1 { int value2; }; int main() { X2 exampleClass; return 0; }
Standard input is empty
prog.cpp: In constructor ‘X2::X2()’: prog.cpp:11: error: no matching function for call to ‘X1::X1()’ prog.cpp:6: note: candidates are: X1::X1(int) prog.cpp:5: note: X1::X1(const X1&) prog.cpp: In function ‘int main()’: prog.cpp:17: note: synthesized method ‘X2::X2()’ first required here
Standard output is empty