4wd obstacle avoider code not running ..new to Arduino - error file enclosed

please guide to fix the error

Arduino_obstacle avoider code error.docx.doc (49.5 KB)

ansridhar

Please READ THIS
post and amend yours accordingly.

Bob.

Try re-installing the NewPing library. It looks like your library file have conflicts.

Compiling library "NewPing"
"C:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files\\WindowsApps\\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\\hardware\\arduino\\avr\\variants\\standard" "-IC:\\Users\\Sridhar\\Documents\\Arduino\\libraries\\AFMotor" "-IC:\\Users\\Sridhar\\Documents\\Arduino\\libraries\\NewPing\\src" "-IC:\\Users\\Sridhar\\Documents\\Arduino\\libraries\\Servo\\src" "C:\\Users\\Sridhar\\Documents\\Arduino\\libraries\\NewPing\\src\\NewPing.cpp" -o "C:\\Users\\Sridhar\\AppData\\Local\\Temp\\arduino_build_883100\\libraries\\NewPing\\NewPing.cpp.o"
C:\Users\Sridhar\Documents\Arduino\libraries\NewPing\src\NewPing.cpp:35:1: error: prototype for 'int NewPing::begin()' does not match any in class 'NewPing'
NewPing::begin() {
^
In file included from C:\Users\Sridhar\Documents\Arduino\libraries\NewPing\src\NewPing.cpp:8:0:
C:\Users\Sridhar\Documents\Arduino\libraries\NewPing\src\NewPing.h:213:10: error: candidate is: void NewPing::begin()
void begin();
^