fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int LED;
  5.  
  6. scanf("%d",&LED);
  7. printf("입력이 있으면 1 없으면 0"\n);
  8. if(LED==0)
  9. printf("LED ON"\n);
  10. else(LED==0)
  11. printf("LED OFF"\n);
  12.  
  13. return o;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:7:45: error: expected ')'
  printf("입력이 있으면 1 없으면 0"\n);
                                   ^
prog.c:7:9: note: to match this '('
  printf("입력이 있으면 1 없으면 0"\n);
        ^
prog.c:9:21: error: expected ')'
     printf("LED ON"\n);
                    ^
prog.c:9:12: note: to match this '('
     printf("LED ON"\n);
           ^
prog.c:10:18: error: expected ';' after expression
     else(LED==0)
                 ^
                 ;
prog.c:10:14: warning: expression result unused [-Wunused-value]
     else(LED==0)
          ~~~^ ~
prog.c:11:22: error: expected ')'
     printf("LED OFF"\n);
                     ^
prog.c:11:12: note: to match this '('
     printf("LED OFF"\n);
           ^
prog.c:13:9: error: use of undeclared identifier 'o'
 return o;     
        ^
1 warning and 5 errors generated.
stdout
Standard output is empty