fork download
  1. void test(int){}
  2.  
  3. template<typename T,typename...Args>
  4. void test(int& sum,T v,Args... args)
  5. {
  6. sum+=v;
  7. test(sum,args...);
  8. }
  9. using a = test;
  10. int main()
  11. {
  12. int res=0;
  13. test(res,4,7);
  14. }
Compilation error #stdin compilation error #stdout 0s 3336KB
stdin
Standard input is empty
compilation info
prog.cpp:9:11: error: expected type-specifier before ‘test’
 using a = test;
           ^
stdout
Standard output is empty