May I know why would this happened and how can I solve it?


May I know why would this happened and how can I solve it?

Your post was MOVED to it's current location as it is more suitable.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

-----------------------------------------------
The error happened because the compiler can't find the file. Is it present on your PC and if so, where ?
-----------------------------------------------

NOTE :
The easier you make it to read and copy the code the more likely it is that you will get help

Please follow the advice given in the link below when posting code , use code tags and post the code here

Can somebody help? I am urgent for this

Post your full code. We can't help with the 3 lines you've posted.
Where did the libraries you appear to be using come from?

#include "CytronMotorDriver.h"
// Configure the motor driver.
CytronMD motor1(PWM_PWM, 3, 9); // PWM 1A = Pin 3, PWM 1B = Pin 9.
CytronMD motor2(PWM_PWM, 10, 11); // PWM 2A = Pin 10, PWM 2B = Pin 11.

#define BUTTON 2
#define PIEZO 8
#define LED A5

#define NOTE_G4 392
#define NOTE_C5 523
#define NOTE_G5 784
#define NOTE_C6 1047

void setup()
{
pinMode(BUTTON, INPUT_PULLUP);
pinMode(PIEZO, OUTPUT);
Serial.begin(9600);
Serial.println("Start")

// turn on motor
;CytronMD motor1.setSpeed(150);//0-255
CytronMD motor1.run(RELEASE);
CytronMD motor2.setSpeed(100);
CytronMD motor2.run(RELEASE);

}

void runled() //run for 10 sec
{
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

void loop()
{
CytronMD motor1.run(BACKWARD);
CytronMD motor2.run(BACKWARD);
delay(1000);
CytronMD motor2.run(RELEASE);
delay(1000);//turning
CytronMD motor2.run(BACKWARD);
delay(1000);
CytronMD motor1.run(RELEASE);
delay(1000); //turning
CytronMD motor1.run(BACKWARD);
CytronMD motor2.run(BACKWARD);
delay(1000);
CytronMD motor1.run(RELEASE);
CytronMD motor2.run(RELEASE);
runled();
}

 motor1.run(RELEASE);
motor2.setSpeed(100);
 motor2.run(RELEASE);

Etc, etc

Please remember to use code tags when posting code

Libraries like that normally come with worked examples - didn't you work through some of them?

It would help considerably if you hadn't changed your post and posted a completely different image showing a different error

so do it mean that if i declared the the cytronMD motor then inside the code i just put motor is it?

I'm sorry I don't understand the question.

Yes. Just try it.

ignore my questions and may I know what are you solution?

You have already been told the solution. Don't try to redifine the objects inside your code loop.

the error i was asking is gone and another error appears

The library you are using almost certainly comes with examples.
I suggest you take a look at them.

Please stop posting pictures.

where can I have them

From the examples

void loop() {
  motor1.setSpeed(128);   // Motor 1 runs forward at 50% speed.
  motor2.setSpeed(-128);  // Motor 2 runs backward at 50% speed.
  delay(1000);
  
  motor1.setSpeed(255);   // Motor 1 runs forward at full speed.
  motor2.setSpeed(-255);  // Motor 2 runs backward at full speed.
  delay(1000);

  motor1.setSpeed(0);     // Motor 1 stops.
  motor2.setSpeed(0);     // Motor 2 stops.
  delay(1000);

  motor1.setSpeed(-128);  // Motor 1 runs backward at 50% speed.
  motor2.setSpeed(128);   // Motor 2 runs forward at 50% speed.
  delay(1000);
  
  motor1.setSpeed(-255);  // Motor 1 runs backward at full speed.
  motor2.setSpeed(255);   // Motor 2 runs forward at full speed.
  delay(1000);

  motor1.setSpeed(0);     // Motor 1 stops.
  motor2.setSpeed(0);     // Motor 2 stops.
  delay(1000);
}

In the examples folder of the library.

May I know how to stop the loop after completed one loop?

#define EVER (;;);



// At the end of loop()

  for EVER
}

Add a 'flag' before setup().
byte ranOnce = 0;
Then check it in loop() :

void loop(){
if (ranOnce ==1){
// do nothing
{
else {
// run your current loop code, and add:
ranOnce = 1;
}