fork download
  1.  
  2. void setup()
  3. {
  4. DDRD = B00010000;
  5. for(int i = 0;i < 4;i++)
  6. {
  7. for(int i = 0; i < 27; i++)
  8. {
  9. if(one[i] == '1')
  10. {
  11. PORTD = B00010000;
  12. T1H(9);
  13. PORTD = B00000000;
  14. T1H(7);
  15. }
  16. if(one[i] == '0')
  17. {
  18. PORTD = B00010000;
  19. T1H(3);
  20. PORTD = B00000000;
  21. T1H(7);
  22. }
  23. }
  24. T1H(96);
  25. }
  26. }
  27. void loop() {
  28. // put your main code here, to run repeatedly:
  29. }
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void setup()’:
prog.cpp:4:1: error: ‘DDRD’ was not declared in this scope
 DDRD = B00010000;
 ^~~~
prog.cpp:4:8: error: ‘B00010000’ was not declared in this scope
 DDRD = B00010000;
        ^~~~~~~~~
prog.cpp:9:4: error: ‘one’ was not declared in this scope
 if(one[i] == '1')
    ^~~
prog.cpp:11:1: error: ‘PORTD’ was not declared in this scope
 PORTD = B00010000;
 ^~~~~
prog.cpp:12:6: error: ‘T1H’ was not declared in this scope
 T1H(9);
      ^
prog.cpp:13:9: error: ‘B00000000’ was not declared in this scope
 PORTD = B00000000;
         ^~~~~~~~~
prog.cpp:16:4: error: ‘one’ was not declared in this scope
 if(one[i] == '0')
    ^~~
prog.cpp:18:1: error: ‘PORTD’ was not declared in this scope
 PORTD = B00010000;
 ^~~~~
prog.cpp:19:6: error: ‘T1H’ was not declared in this scope
 T1H(3);
      ^
prog.cpp:20:9: error: ‘B00000000’ was not declared in this scope
 PORTD = B00000000;
         ^~~~~~~~~
prog.cpp:24:7: error: ‘T1H’ was not declared in this scope
 T1H(96);
       ^
stdout
Standard output is empty