fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class A {
  5. public:
  6. A() { cout << "Created\n"; }
  7.  
  8. A(const A & a) = delete;
  9.  
  10. A(const A && a) { cout << "Moved\n"; }
  11. };
  12.  
  13. void kek(A a) {
  14. cout << "keked";
  15. }
  16.  
  17. int main() {
  18. // your code goes here
  19. auto a = A();
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Created