Excpected ')' before ';' token

I have some issues with my code giving this excact error but i cant find the solution/ where im wrong could someone please help thanks.

#include <Servo.h>

Servo slowservo;
Servo mediumservo;
Servo fastservo;
Servo speedservo;

int posslowservo = 0;
int posmediumservo = 0;
int posfastservo = 0;
int posspeedservo = 0;

void setup() {
slowservo.attach(8);
mediumservo.attach(9);
fastservo.attach(10);
speedservo.attach(11);
}

void loop()
{
for ( posslowservo = 0; posslowservo <= 180; posslowservo + 1;)
{

slowservo.write(posslowservo);
delay(15);
}

for ( posslowservo = 180; posslowservo >= 0; posslowservo - 1;)
{
slowservo.write(posslowservo);
delay(15);
}

for ( posmediumservo = 0; posmediumservo <= 180; posmediumservo + 1;)
{

mediumservo.write(posmediumservo);
delay(15);
}
for ( posmediumservo = 180; posmediumservo >= 0; posmediumservo - 1;)
{
mediumservo.write(posmediumservo);
delay(15);
}

for (posfastservo = 0; posfastservo <= 180; posfastservo + 1;)
{

fastservo.write(posfastservo);
delay(15);
}
for (posfastservo = 180; posfastservo >= 0; posfastservo - 1;)
{
fastservo.write(posfastservo);
delay(15);
}

for (posspeedservo = 0; posspeedservo <= 180; posspeedservo + 1;)
{

speedservo.write(posspeedservo);
delay(15);
}

for ( posspeedservo = 180; posspeedservo >= 0; posspeedservo - 1;)
{
speedservo.write(posspeedservo);
delay(15);
}

}

Hello ,

Something to read carefully :
https://forum.arduino.cc/index.php/topic,148850.0.html

Not least but not only, search for :

  1. If you are posting code or error messages, use "code" tags

Some code between "code" tags :

Serial.begin

Regards,
bidouilleelec

for ( posslowservo = 0; posslowservo <= 180; posslowservo + 1;)

All of the for statements have 2 problems. The semicolon after the increment should not be there and the increment should be:

posslowservo++
// or
posslowservo  = posslowservo +1

posmediumservo--
// or
posmediumservo = posmediumservo - 1

This compiles:

#include <Servo.h>

Servo slowservo;
Servo mediumservo;
Servo fastservo;
Servo speedservo;

int posslowservo = 0;
int posmediumservo = 0;
int posfastservo = 0;
int posspeedservo = 0;

void setup()
{
   slowservo.attach(8);
   mediumservo.attach(9);
   fastservo.attach(10);
   speedservo.attach(11);
}

void loop()
{
   for ( posslowservo = 0; posslowservo <= 180; posslowservo ++)
   {

      slowservo.write(posslowservo);
      delay(15);
   }

   for ( posslowservo = 180; posslowservo >= 0; posslowservo --)
   {
      slowservo.write(posslowservo);
      delay(15);
   }

   for ( posmediumservo = 0; posmediumservo <= 180; posmediumservo ++)
   {

      mediumservo.write(posmediumservo);
      delay(15);
   }
   for ( posmediumservo = 180; posmediumservo >= 0; posmediumservo --)
   {
      mediumservo.write(posmediumservo);
      delay(15);
   }

   for (posfastservo = 0; posfastservo <= 180; posfastservo ++)
   {

      fastservo.write(posfastservo);
      delay(15);
   }
   for (posfastservo = 180; posfastservo >= 0; posfastservo --)
   {
      fastservo.write(posfastservo);
      delay(15);
   }

   for (posspeedservo = 0; posspeedservo <= 180; posspeedservo ++)
   {

      speedservo.write(posspeedservo);
      delay(15);
   }

   for ( posspeedservo = 180; posspeedservo >= 0; posspeedservo --)
   {
      speedservo.write(posspeedservo);
      delay(15);
   }
}

Hello MatsJ123and4

from Pert

Please do this:
1/ When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
2/ In a forum reply here, click on the reply field.
3/ Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
4/ Press “Ctrl + V”. This will paste the error between the code tags.
5/ Move the cursor outside of the code tags before you add any additional text to your reply.

Regards,
bidouilleelec