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) { cout << "Copied\n"; }
  9. };
  10.  
  11. void kek(A a) {
  12. cout << "keked";
  13. }
  14.  
  15. int main() {
  16. // your code goes here
  17. auto a = A();
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
Created