#include <iostream>using namespace std; class A {public: A() { cout << "Created\n"; } A(const A & a) = delete;}; void kek(A a) { cout << "keked";} int main() { // your code goes here A a = A(); return 0;}
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:17:10: error: use of deleted function 'A::A(const A&)' A a = A(); ^ prog.cpp:8:2: note: declared here A(const A & a) = delete; ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!