error compiling

car_parking.ino: In function 'void loop()':
car_parking.ino:43:4: error: 'duration' was not declared in this scope
car_parking.ino:45:17: error: 'cm' was not declared in this scope
car_parking.ino:53:5: error: 'cm' was not declared in this scope
car_parking.ino:122:13: error: redeclaration of 'int sensor3'
car_parking.ino:114:13: error: 'int sensor3' previously declared here
car_parking.ino: At global scope:
car_parking.ino:132:18: error: expected declaration before '}' token
Error compiling.

hello guys,

i am writing an arduino code for a car that parks alone.

i wrote the code and finished. when i started compiling i faced these errors in compiling.

can anyone help me with these errors?

thank you.

Did you read this before posting a programming question

In particular note the section about posting code and how to do it in order that help can be provided.