fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int sum() { return 0; }
  5.  
  6. template<typename T, typename... Args>
  7. auto sum(T a, Args... args) { return a + sum(args...); }
  8.  
  9. int main() {
  10. // your code goes here
  11. cout << sum(1, 1.5) << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
2.5