fork download
  1. #include <iostream>
  2.  
  3. #define TRUE1 1
  4. #define TRUE2 (1==1)
  5.  
  6. using namespace std;
  7.  
  8. void foo(int i){
  9. cout << "int" << endl;
  10. }
  11. void foo(bool b){
  12. cout << "bool" << endl;
  13. }
  14.  
  15. int main() {
  16. foo(TRUE1);
  17. foo(TRUE2);
  18. // your code goes here
  19. return 0;
  20. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
int
bool