Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
RIA_CODE:41:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPin1, OUTPUT);
^
RIA_CODE:42:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPin1, INPUT);
^
RIA_CODE:43:1: error: 'Serial' does not name a type
Serial.begin(9600);
^~~~~~
RIA_CODE:45:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPin2, OUTPUT);
^
RIA_CODE:46:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPin2, INPUT);
^
RIA_CODE:47:1: error: 'Serial' does not name a type
Serial.begin(9600);
^~~~~~
RIA_CODE:49:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPin3, OUTPUT);
^
RIA_CODE:50:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPin3, INPUT);
^
RIA_CODE:51:1: error: 'Serial' does not name a type
Serial.begin(9600);
^~~~~~
RIA_CODE:53:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPin4, OUTPUT);
^
RIA_CODE:54:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPin4, INPUT);
^
RIA_CODE:55:1: error: 'Serial' does not name a type
Serial.begin(9600);
^~~~~~
RIA_CODE:57:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(trigPin5, OUTPUT);
^
RIA_CODE:58:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(echoPin5, INPUT);
^
RIA_CODE:59:1: error: 'Serial' does not name a type
Serial.begin(9600);
^~~~~~
RIA_CODE:61:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(motorFR, OUTPUT);
^
RIA_CODE:62:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(motorBR, OUTPUT);
^
RIA_CODE:63:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(motorBL, OUTPUT);
^
RIA_CODE:64:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(motorFL, OUTPUT);
^
RIA_CODE:65:8: error: expected constructor, destructor, or type conversion before '(' token
pinMode(Button, INPUT);
^
C:\Users\nowbo\OneDrive\Documents\Arduino\RIA_CODE\RIA_CODE.ino: In function 'void loop()':
RIA_CODE:70:16: error: 'duration' was not declared in this scope
distance1 = (duration * .0343) / 2;
^~~~~~~~
C:\Users\nowbo\OneDrive\Documents\Arduino\RIA_CODE\RIA_CODE.ino:70:16: note: suggested alternative: 'duration5'
distance1 = (duration * .0343) / 2;
^~~~~~~~
duration5
exit status 1
expected constructor, destructor, or type conversion before '(' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.