fork download
  1. #include <stdio.h>
  2. #include <stdarg.h>
  3.  
  4. void switch_case(...);
  5. void switch_case(...) {
  6. const char * format_;
  7. va_list args;
  8.  
  9. va_start(args, format_);
  10. switch(...) {
  11. case
  12. }
  13. va_end(args);
  14. return;
  15. }
  16.  
  17. int main(void) {
  18. return 0;
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:18: error: ISO C requires a named argument before '...'
 void switch_case(...);
                  ^
prog.c:5:18: error: ISO C requires a named argument before '...'
 void switch_case(...) {
                  ^
prog.c: In function 'switch_case':
prog.c:10:12: error: expected expression before '...' token
     switch(...) {
            ^
prog.c:12:5: error: expected expression before '}' token
     }
     ^
prog.c:12:5: error: label at end of compound statement
In file included from prog.c:2:0:
prog.c:9:5: error: 'va_start' used in function with fixed args
     va_start(args, format_);
     ^
stdout
Standard output is empty