fork(1) download
  1. #include <iostream>
  2.  
  3. class A
  4. {
  5. public:
  6. int a;
  7. };
  8.  
  9. std::ostream &operator<<(std::ostream &out, A a)
  10. {
  11. std::cout << "--->" << a.a << "<---" << std::endl;
  12. }
  13.  
  14. int main() {
  15. // your code goes here
  16.  
  17. std::cout << A{1488};
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
--->1488<---