user47756: I'm a first year persuing Mechatronic engineering, and I'm having trouble with this code that I am using to control a biped robot for my project.
#include <servo.h>
Servo myservoa;
           myservob;
           myservoc;
           myservod;
int     myservoa=10;
          myservob=55;
          myservoc=25;
          myservod=125;

void setup() {
    myservoa.attach(2)
    myservob.attach(3)
    myservoc.attach(4)
    myservod.attach(5)
}

void loop() {
    for pos=10;pos<=75;pos+=1;
    {
        myservoa.write(pos);
        delay(1000);
    }
    for pos=55;pos<=100;pos+=1;
    {
        myservob.write(pos)
        delay (1800)
    }
    for pos=25;pos<=165;pos+=1;
    {
        myservoc.write(pos)
        delay (1000)
    }
    for pos=125;pos<=170;pos+=1;
    {
        myservod.write(pos)
        delay (1800)
    }
}

Could there be an error in the code?

user4143: 
Could there be an error in the code?

You could say that, yes.  Let's list all the syntax errors to start with:
#include <servo.h>
Servo myservoa;
           myservob; // This has no type. It's just a word by itself.
           myservoc; // This has no type. It's just a word by itself.
           myservod; // This has no type. It's just a word by itself.


int     myservoa=10; // You already defined myservoa as a Servo type.
          myservob=55; // This has no type. It's just a word by itself.
          myservoc=25; // This has no type. It's just a word by itself.
          myservod=125; // This has no type. It's just a word by itself.

void setup()
{
    myservoa.attach(2) // Semicolons must terminate all statements.
    myservob.attach(3) // Semicolons must terminate all statements.
    myservoc.attach(4) // Semicolons must terminate all statements.
    myservod.attach(5) // Semicolons must terminate all statements.
}

void loop()
{
    for pos=10;pos<=75;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservoa.write(pos);
        delay(1000);
    }
    for pos=55;pos<=100;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservob.write(pos)  // Semicolons must terminate all statements.
        delay (1800) // Semicolons must terminate all statements.
    }
    for pos=25;pos<=165;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservoc.write(pos) // Semicolons must terminate all statements.
        delay (1000) // Semicolons must terminate all statements.
    }
    for pos=125;pos<=170;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservod.write(pos) // Semicolons must terminate all statements.
        delay (1800) // Semicolons must terminate all statements.
    }
}

You really need to get to grips with the syntax of a language before you start programming in that language. I count just 6 lines (not including { and }) of valid C code there, and two of them are handed to you by the IDE.

47756: <p>I'm a first year persuing Mechatronic engineering, and I'm having trouble with this code that I am using to control a biped robot for my project.</p>

<pre><code>#include &lt;servo.h&gt;
Servo myservoa;
           myservob;
           myservoc;
           myservod;
int     myservoa=10;
          myservob=55;
          myservoc=25;
          myservod=125;

void setup() {
    myservoa.attach(2)
    myservob.attach(3)
    myservoc.attach(4)
    myservod.attach(5)
}

void loop() {
    for pos=10;pos&lt;=75;pos+=1;
    {
        myservoa.write(pos);
        delay(1000);
    }
    for pos=55;pos&lt;=100;pos+=1;
    {
        myservob.write(pos)
        delay (1800)
    }
    for pos=25;pos&lt;=165;pos+=1;
    {
        myservoc.write(pos)
        delay (1000)
    }
    for pos=125;pos&lt;=170;pos+=1;
    {
        myservod.write(pos)
        delay (1800)
    }
}
</code></pre>

<p>Could there be an error in the code?</p>
 4143: <blockquote>
  <p>Could there be an error in the code?</p>
</blockquote>

<p>You could say that, yes.  Let's list all the syntax errors to start with:</p>

<pre><code>#include &lt;servo.h&gt;
Servo myservoa;
           myservob; // This has no type. It's just a word by itself.
           myservoc; // This has no type. It's just a word by itself.
           myservod; // This has no type. It's just a word by itself.


int     myservoa=10; // You already defined myservoa as a Servo type.
          myservob=55; // This has no type. It's just a word by itself.
          myservoc=25; // This has no type. It's just a word by itself.
          myservod=125; // This has no type. It's just a word by itself.

void setup()
{
    myservoa.attach(2) // Semicolons must terminate all statements.
    myservob.attach(3) // Semicolons must terminate all statements.
    myservoc.attach(4) // Semicolons must terminate all statements.
    myservod.attach(5) // Semicolons must terminate all statements.
}

void loop()
{
    for pos=10;pos&lt;=75;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservoa.write(pos);
        delay(1000);
    }
    for pos=55;pos&lt;=100;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservob.write(pos)  // Semicolons must terminate all statements.
        delay (1800) // Semicolons must terminate all statements.
    }
    for pos=25;pos&lt;=165;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservoc.write(pos) // Semicolons must terminate all statements.
        delay (1000) // Semicolons must terminate all statements.
    }
    for pos=125;pos&lt;=170;pos+=1; // Braces are missing, pos is not defined, and extra ;
    {
        myservod.write(pos) // Semicolons must terminate all statements.
        delay (1800) // Semicolons must terminate all statements.
    }
}
</code></pre>

<p>You really need to get to grips with the syntax of a language before you start programming in that language. I count just 6 lines (not including { and }) of valid C code there, and two of them are handed to you by the IDE.</p>
