fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. template<class t>
  5. t max(t a,t b){
  6. t max_value;
  7. max_value = (a>b)?a:b;
  8. return max_value;
  9. }
  10.  
  11. int main(){
  12. int a=9,b=8,c;
  13. c=::max<int>(a,b);
  14. cout<<c;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
9