fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <class T>
  5. T max(T& t1, T& t2)
  6. {
  7. return t1 < t2 ? t2 : t1;
  8. }
  9.  
  10. int main()
  11. {
  12. int result = max(3, 4);
  13. cout << max(3, 4) << endl;
  14. return result;
  15. }
Runtime error #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
4