#include <iostream>
int sum() {
return 0;
}
template<typename T, typename... Args>
int sum(T value, Args... args) {
return value + sum(args...);
}
int main(int argc, char ** argv) {
std::cout << sum(5, 3, 4, 5, 2, 3, 5);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IHN1bSgpIHsKICAgIHJldHVybiAwOwp9Cgp0ZW1wbGF0ZTx0eXBlbmFtZSBULCB0eXBlbmFtZS4uLiBBcmdzPgppbnQgc3VtKFQgdmFsdWUsIEFyZ3MuLi4gYXJncykgewogICAgcmV0dXJuIHZhbHVlICsgc3VtKGFyZ3MuLi4pOwp9CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKiBhcmd2KSB7CgogICAgc3RkOjpjb3V0IDw8IHN1bSg1LCAzLCA0LCA1LCAyLCAzLCA1KTsKCiAgICByZXR1cm4gMDsKfQ==