shows error-no matching function for call to 'NewPing::NewPing(int, int, int,

Please help me out with this.
Whenever I try to upload to my Arduino Uno R3 it keeps showing this error message - 'no matching function for call to ‘NewPing::NewPing(int, int, int, int, int, int)’

It is r/c car with bluetooth and 2 ultrasonic sensors with 2WD chassis.

bluetooth_obstacle_avoiding.ino (3.52 KB)

NewPing sonar (trig_pin1, echo_pin1, max_cm_distance1, trig_pin2, echo_pin2, max_cm_distance2); //sensor function

You must use a separate constructor for each sensor.

NewPing sonar1 (trig_pin1, echo_pin1, max_cm_distance1);
NewPing sonar2 (trig_pin2, echo_pin2, max_cm_distance2);

And adjust your code to read the sensors separately.

the call : NewPing sonar (trig_pin1, echo_pin1, max_cm_distance1, trig_pin2, echo_pin2, max_cm_distance2); //sensor function
is using 6 values, while it actually only can take 3 :

NewPing::NewPing(uint8_t trigger_pin, uint8_t echo_pin, unsigned int max_cm_distance)

maybe you need a different newping library or if you have 2 sonars change to something like :
NewPing sonar1 (trig_pin1, echo_pin1, max_cm_distance1)
NewPing sonar2 (trig_pin2, echo_pin2, max_cm_distance2); //sensor function