#include <iostream>using std::cout; struct Q{ Q(){cout<<"a";} Q(Q){cout<<"b";}}; int main(){ Q q; Q u (q); cout<<"c";}
Standard input is empty
prog.cpp:7: error: invalid constructor; you probably meant ‘Q (const Q&)’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!