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:11:1: error: ‘PORTD’ was not declared in this scope
PORTD = B00010000;
^~~~~
prog.cpp:24:9: error: ‘B00000000’ was not declared in this scope
PORTD = B00000000;
^~~~~~~~~
prog.cpp:37:1: error: ‘PORTD’ was not declared in this scope
PORTD = B00010000;
^~~~~
prog.cpp:43:9: error: ‘B00000000’ was not declared in this scope
PORTD = B00000000;
^~~~~~~~~
prog.cpp:55:21: error: ‘delayMicroseconds’ was not declared in this scope
delayMicroseconds(40);
^