fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. int LED;
  5.  
  6. scanf("%d",&LED);
  7. printf("입력이 있으면 1 없으면 0");
  8. if(LED==0)
  9. printf("LED ON");
  10. else(LED==0)
  11. printf("LED OFF");
  12.  
  13. return o;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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:13:9: error: use of undeclared identifier 'o'
 return o;     
        ^
1 warning and 2 errors generated.
stdout
Standard output is empty