fork download
  1. #include <algorithm>
  2. #include <iostream>
  3.  
  4. struct A {
  5. static const unsigned int CCC = 20;
  6. int foo( unsigned int x ) {
  7. return std::min( x, CCC );
  8. }
  9. };
  10.  
  11. int main() {
  12. unsigned int x = 100;
  13. A a;
  14. x = a.foo( x );
  15. std::cout << x << std::endl;
  16. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
20