variable declaration problem

int A,B,C;// motor cycles

void setup() {
int led_1=1;
int led_2=2;
int led_3=3;
int p1=4;//position input 1
int p2=5;//position input 2
int p3=6;//position input 3
int motor_1=7;
int motor_2=8;
int motor_3=9;
}
void pinmode(){
pinMode(led_1,OUTPUT);
pinMode(led_2,OUTPUT);
pinMode(led_3,OUTPUT);
pinMode(p1,INPUT);
pinMode(p2,INPUT);
pinMode(p3,INPUT);
pinMode(motor_1,OUTPUT);
pinMode(motor_2,OUTPUT);
pinMode(motor_3,OUTPUT);
}

void start(){
if(quantity_1>0)
digitalWrite(led_1,HIGH);
if(quantity_2>0)
digitalWrite(led_2,HIGH);
if(quantity_3>0)
digitalWrite(led_3,HIGH);
}

void loop() {
delay(5000);
if (digitalRead(p1)==HIGH)
{
for(count_1=1,count_1==quantity_1,count_1++)
{
digitalWrite(motor_1,HIGH);
delay(2000);
digitalWrite(motor_1,LOW);
delay(1500);
}
digitalWrite(led_1,LOW);
}
else {
digitalWrite(led_1,LOW);}

delay(3500);
if (digitalRead(p2)==HIGH)
{
for(count_2=1,count_2==quantity_2,count_2++)
{
digitalWrite(motor_2,HIGH);
delay(2000);
digitalWrite(motor_2,LOW);
delay(1500);
}
digitalWrite(led_2,LOW);
}
else
{digitalWrite(led_2,LOW);}

delay(3500);

if (digitalRead(p3)==HIGH)
{
for(count_3=1,count_3==quantity_3,count_3++)
{
digitalWrite(motor_3,HIGH);
delay(2000);
digitalWrite(motor_3,LOW);
delay(1500);
}
digitalWrite(led_3,LOW);
}
else{
digitalWrite(led_3,LOW);
}

this is my program any body can help me please

  for(count_2=1,count_2==quantity_2,count_2++)That doesn't look like any for loop I've ever seen.

Please remember to use code tags when posting code

The concept you need to study is “variable scope”

Don't use single capital letters for variable names. Single letters suck for names because they don't tell you anything about what the variable stands for. But many of the capital letters are already defined as macros in the core so you can't use them at all.

You wrote functions called start and pinMode that look pretty important but you never call them from anywhere so they aren't run.