fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <algorithm>
  4.  
  5. namespace A
  6. {
  7. using std::max;
  8.  
  9. void func()
  10. {
  11. //OR you can put it here for this function only! using std::max;
  12. std::cout<<max(1, 2);
  13. }
  14. };
  15.  
  16. int main()
  17. {
  18. A::func();
  19. return 0;
  20. }
Success #stdin #stdout 0s 3344KB
stdin
Standard input is empty
stdout
2