fork download
  1. #include <cstdio>
  2.  
  3. struct unko
  4. {
  5. unko(int v) : v(v) {}
  6.  
  7. unko(const unko & other) : v(other.v) {}
  8.  
  9. const int v;
  10. };
  11.  
  12. int main()
  13. {
  14. unko kuso(123);
  15. unko kuso2 = kuso;
  16.  
  17. std::printf("%d\n", kuso2.v);
  18. }
  19.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
123