struct X{ int value;}; intmain(){ X x{10}; X x2{ x }; return 0;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:8:10: error: cannot convert 'X' to 'int' in initialization
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!