fork download
  1. #include <stdio.h>
  2.  
  3. void *_va_arg(void **ap) {
  4. return * ((void **) *ap)--;
  5. }
  6.  
  7. int main(void) {
  8. // your code goes here
  9. return 0;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘_va_arg’:
prog.c:4:26: error: lvalue required as decrement operand
  return * ((void **) *ap)--;
                          ^
prog.c:5:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1: all warnings being treated as errors
stdout
Standard output is empty