fork download
  1. int sum(int n, ...)
  2. {
  3. int result = 0;
  4.  
  5. for(int *ptr = &n; n > 0 ; n--)
  6. {
  7. result+= *(++ptr);
  8. }
  9. return result;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
stdout
Standard output is empty