fork(4) download
  1. #include <iostream>
  2.  
  3. constexpr int foo(int x)
  4. {
  5. return 2 * x;
  6. }
  7.  
  8. int main()
  9. {
  10. int x = 0;
  11. std::cin >> x;
  12. std::cout << foo(x);
  13. }
Success #stdin #stdout 0s 2856KB
stdin
21
stdout
42