fork download
  1. #include <iostream>
  2.  
  3. int f()
  4. {
  5. int x;
  6. std::cin >> x;
  7. return x;
  8. }
  9.  
  10. int main()
  11. {
  12. int x = (f(), f(), f());
  13. std::cout << x;
  14. }
  15.  
Success #stdin #stdout 0s 3100KB
stdin
1
2
3
4
5
stdout
3