unable to upload (nedding to define pin?)

I am having another issue with uploading.

The ide says that I half to define a pin, while i clearly want it to be an output.

The code is:

int w1 = 2;
int w2 = 3;
int r = 4;
int g = 5;
int b = 6;
int R1 = 7;
int B1 = 8;
int G1 = 9;
int R2 = 10;
int B2 = 11;
int G2 = 12;

void setup() {
  // put your setup code here, to run once:
  pinMode(w1, INPUT);
  pinMode(w2, INPUT);
  pinMode(r, INPUT);
  pinMode(b, INPUT);
  pinMode(g, INPUT);
  pinMode(R1, OUTPUT);
  pinMode(G1, OUTPUT);
  pinMode(B1, OUTPUT);
  pinMode(R2, OUTPUT);
  pinMode(B2, OUTPUT);
  pinMode(G2, OUTPUT);
}

void Red() {
  // put your main code here, to run repeatedly:
  if (digitalRead(r) == HIGH){
    digitalWrite(R1, HIGH);
    digitalWrite(R2, HIGH);
  }
 else{
  digitalWrite(R1, LOW);
  digitalWrite(R2, LOW);
 }
}
void Blue() {
  // put your main code here, to run repeatedly:
  if (digitalRead(b) == HIGH){
    digitalWrite(B1, HIGH);
    digitalWrite(B2, HIGH);
  }
 else{
  digitalWrite(B1, LOW);
  digitalWrite(B2, LOW);
 }
}
void Green() {
  // put your main code here, to run repeatedly:
  if (digitalRead(g) == HIGH){
    digitalWrite(G1, HIGH);
    digitalWrite(G2, HIGH);
  }
 else{
  digitalWrite(G1, LOW);
  digitalWrite(G2, LOW);
 }
}
void White1() {
  // put your main code here, to run repeatedly:

}
void White2() {
  // put your main code here, to run repeatedly:

}

After uploading:

/home/builder/opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware /home/builder/opt/arduino-builder/hardware -hardware /home/builder/.arduino15/packages -tools /home/builder/opt/arduino-builder/tools -tools /home/builder/.arduino15/packages -built-in-libraries /home/builder/opt/libraries/latest -logger humantags -fqbn arduino:avr:nano:cpu=atmega328old -build-cache /tmp -build-path /tmp/091236228/build -verbose -prefs runtime.tools.CMSIS-Atmel.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS-Atmel/1.2.0 -prefs runtime.tools.bossac.path=/home/builder/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino -prefs runtime.tools.nrf5x-cl-tools.path=/home/builder/.arduino15/packages/arduino/tools/nrf5x-cl-tools/9.3.1 -prefs runtime.tools.arduinoOTA.path=/home/builder/.arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs runtime.tools.avrdude.path=/home/builder/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs runtime.tools.linuxuploader.path=/home/builder/.arduino15/packages/arduino/tools/linuxuploader/1.5.1 -prefs runtime.tools.x86-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/x86-linux-gcc/7.2.0 -prefs runtime.tools.arduino101load.path=/home/builder/.arduino15/packages/Intel/tools/arduino101load/2.0.1 -prefs runtime.tools.core2-32-poky-linux.path=/home/builder/.arduino15/packages/Intel/tools/core2-32-poky-linux/1.6.2+1.0 -prefs runtime.tools.i586-poky-linux-uclibc.path=/home/builder/.arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0 -prefs runtime.tools.dfu-util.path=/home/builder/.arduino15/packages/arduino/tools/dfu-util/0.9.0-arduino1 -prefs runtime.tools.arm-linux-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-linux-gcc/4.9.3 -prefs runtime.tools.openocd.path=/home/builder/.arduino15/packages/arduino/tools/openocd/0.10.0-arduino7 -prefs runtime.tools.avr-gcc.path=/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs runtime.tools.CMSIS.path=/home/builder/.arduino15/packages/arduino/tools/CMSIS/4.5.0 -prefs runtime.tools.flashpack.path=/home/builder/.arduino15/packages/Intel/tools/flashpack/2.0.0 -prefs runtime.tools.sketchUploader.path=/home/builder/.arduino15/packages/Intel/tools/sketchUploader/1.6.2+1.0 -prefs runtime.tools.arc-elf32.path=/home/builder/.arduino15/packages/Intel/tools/arc-elf32/1.6.9+1.0.1 -prefs runtime.tools.arm-none-eabi-gcc.path=/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4 -libraries /tmp/091236228/custom -libraries /tmp/091236228/pinned /tmp/091236228/RGB

Using board 'nano' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23

Using core 'arduino' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23

Detecting libraries used...

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/variants/eightanaloginputs /tmp/091236228/build/sketch/RGB.ino.cpp -o /dev/null

Generating function prototypes...

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/variants/eightanaloginputs /tmp/091236228/build/sketch/RGB.ino.cpp -o /tmp/091236228/build/preproc/ctags_target_for_gcc_minus_e.cpp

/home/builder/opt/arduino-builder/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/091236228/build/preproc/ctags_target_for_gcc_minus_e.cpp

Compiling sketch...

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10611 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/variants/eightanaloginputs /tmp/091236228/build/sketch/RGB.ino.cpp -o /tmp/091236228/build/sketch/RGB.ino.cpp.o

In file included from /home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino/Arduino.h:32:0,

from /tmp/091236228/build/sketch/RGB.ino.cpp:1:

/home/builder/.arduino15/packages/arduino/hardware/avr/1.6.23/cores/arduino/binary.h:31:12: error: expected unqualified-id before numeric constant

#define B1 1

^

/tmp/091236228/RGB/RGB.ino:7:5: note: in expansion of macro 'B1'

int B1 = 8;

^

exit status 1

Do i need more lines of code?

To let you know what I am doing, I am trying to have 2 rgb led's have there asociated pin light up, but with one input, the controller lights up the led turning it white.

Arduino already defines binary numbers "B1" "B10", so try "blue1" etc instead.

This is not a bootloader issue

After uploading:

No.
The sketch doesn't compile, so cannot upload.

AWOL:
Arduino already defines binary numbers "B1" "B10", so try "blue1" etc instead.

This is not a bootloader issue

No.
The sketch doesn't compile, so cannot upload.

I wasn't saying it was a bootloader issue. If you're saying that I need to do blue1 instead of B1, than I am better off removing the 1.

Allspice101:
I wasn't saying it was a bootloader issue. If you're saying that I need to do blue1 instead of B1, than I am better off removing the 1.

So why post in the bootloader section of the forum?

And, no, you're better off not simply calling it "B".