Not Able To Upload The Code

Hi everyone!
I have a problem uploading my code because it is giving me an error that says Error uploading for board Arduino Uno. I have my Arduino Uno connected and my board to Arduino Uno and the port to COM6 (Which is the only port). This is my code.
https://hatebin.com/yrnvczoqbj

This is the error it is giving me.
https://hatebin.com/wejlkrmopg

I am trying to upload the code to an Eleego Car and I brought it from here Amazon.com: ELEGOO UNO R3 Project Smart Robot Car Kit V 3.0 Plus with UNO R3, Line Tracking Module, Ultrasonic Sensor, IR Remote Control etc. Intelligent and Educational Toy Car Robotic Kit for Arduino Learner: Toys & Games. I hope you can help! :slight_smile: :slight_smile: :slight_smile:

You have to provide the function `readUltrasonicDistance mentioned in the error message.

You have a prototype but no function.

Please don’t ever use hatebin again.

What do you mean??

hadiarduino:
What do you mean??

Which part of the answer do you mean ?

Members do not like to go out to external sites to see your code and/or error messages. If you want help here, post here.

More members will see your code if posted properly. Read the how get the most out of this forum sticky to see how to properly post code. Remove useless white space and format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code. If the code is too large to post it can be attached.

Please post the entire error message in code tags. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags.

hadiarduino:
What do you mean??

I mean hatebin looks horrible and difficult to read on my phone.
Don’t use it.

UKHeliBob:
Which part of the answer do you mean ?

What do you mean by I need to provide the function readUltrasonicDistance??

There is no native Arduino function called “readUltrasonicDistance”, so you need to provide one.