prog.cpp:10:1: error: ‘boolean’ does not name a type
boolean status_lights = false;
^~~~~~~
prog.cpp: In function ‘void setup()’:
prog.cpp:16:25: error: ‘INPUT’ was not declared in this scope
pinMode(sound_sensor, INPUT);
^~~~~
prog.cpp:16:30: error: ‘pinMode’ was not declared in this scope
pinMode(sound_sensor, INPUT);
^
prog.cpp:17:18: error: ‘OUTPUT’ was not declared in this scope
pinMode(relay, OUTPUT);
^~~~~~
prog.cpp:21:3: error: ‘Serial’ was not declared in this scope
Serial.begin (9600);
^~~~~~
prog.cpp: In function ‘void loop()’:
prog.cpp:26:47: error: ‘digitalRead’ was not declared in this scope
int status_sensor = digitalRead(sound_sensor);
^
prog.cpp:32:56: error: ‘millis’ was not declared in this scope
detection_range_start = detection_range = millis();
^
prog.cpp:35:33: error: ‘millis’ was not declared in this scope
else if (clap > 0 && millis()-detection_range >= 50)
^
prog.cpp:42:14: error: ‘millis’ was not declared in this scope
if (millis()-detection_range_start >= 400)
^
prog.cpp:46:12: error: ‘status_lights’ was not declared in this scope
if (!status_lights)
^~~~~~~~~~~~~
prog.cpp:49:31: error: ‘HIGH’ was not declared in this scope
digitalWrite(relay, HIGH);
^~~~
prog.cpp:49:35: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(relay, HIGH);
^
prog.cpp:52:35: error: ‘LOW’ was not declared in this scope
digitalWrite(motor2Pin, LOW);
^~~
prog.cpp:58:31: error: ‘LOW’ was not declared in this scope
digitalWrite(relay, LOW);
^~~
prog.cpp:58:34: error: ‘digitalWrite’ was not declared in this scope
digitalWrite(relay, LOW);
^
prog.cpp:61:27: error: ‘HIGH’ was not declared in this scope
digitalWrite(12, HIGH);
^~~~