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.cpp:11:22: error: stray ‘\’ in program
      printf("LED OFF"\);
                      ^
prog.cpp: In function ‘int main()’:
prog.cpp:11:6: error: expected ‘;’ before ‘printf’
      printf("LED OFF"\);
      ^~~~~~
prog.cpp:13:9: error: ‘o’ was not declared in this scope
  return o;
         ^
stdout
Standard output is empty