fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5.  
  6. template <int first, int second, int ... rest> class maximum : public maximum<std::max(first, second), rest...> {};
  7.  
  8. template <int first, int second> class maximum<first, second> : public integral_constant<int, std::max(first, second)> {};
  9.  
  10. int main() {
  11. cout << maximum<1,2,13,9>::value << endl ;
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 15224KB
stdin
Standard input is empty
stdout
13