fork download
  1. void setup()
  2. {
  3. pinMode(13, OUTPUT);
  4. }
  5.  
  6. void loop()
  7. {
  8. int a = 1, b = 6;
  9.  
  10. if (a, b > 5) {
  11. digitalWrite(13, HIGH);
  12. delay(100);
  13.  
  14. digitalWrite(13, LOW);
  15. delay(900);
  16. } else {
  17. digitalWrite(13, LOW);
  18. delay(900);
  19.  
  20. }
  21.  
  22. }
  23.  
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘setup’:
prog.c:3:7: warning: implicit declaration of function ‘pinMode’ [-Wimplicit-function-declaration]
       pinMode(13, OUTPUT);
       ^~~~~~~
prog.c:3:19: error: ‘OUTPUT’ undeclared (first use in this function)
       pinMode(13, OUTPUT);
                   ^~~~~~
prog.c:3:19: note: each undeclared identifier is reported only once for each function it appears in
prog.c: In function ‘loop’:
prog.c:10:12: warning: left-hand operand of comma expression has no effect [-Wunused-value]
       if (a, b > 5) {
            ^
prog.c:11:9: warning: implicit declaration of function ‘digitalWrite’ [-Wimplicit-function-declaration]
         digitalWrite(13, HIGH);
         ^~~~~~~~~~~~
prog.c:11:26: error: ‘HIGH’ undeclared (first use in this function)
         digitalWrite(13, HIGH);
                          ^~~~
prog.c:12:9: warning: implicit declaration of function ‘delay’ [-Wimplicit-function-declaration]
         delay(100);
         ^~~~~
prog.c:14:26: error: ‘LOW’ undeclared (first use in this function)
         digitalWrite(13, LOW);
                          ^~~
stdout
Standard output is empty