fork download
  1. #include <iostream>
  2. using namespace std;
  3. int f(char p)
  4. {
  5. return 100;
  6. };
  7.  
  8. template <typename T>
  9. int f(T p)
  10. {
  11. return 200;
  12. }
  13.  
  14. int main()
  15. {
  16. cout<< f(42);
  17. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
200