fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int x = int(5); //copy ctor
  6. int y = 1 + int(); //default ctor
  7. std::cout << x << ' ' << y << std::endl;
  8. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
5 1