fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. std::string f(bool) { return "bool"; }
  5. std::string f(int) { return "int"; }
  6.  
  7. int main(void) {
  8. std::cout << f(2 || 3) << std::endl;
  9. }
  10.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
bool