# Code error...

**URL:** <https://forum.arduino.cc/t/code-error/284968>\
**Category:** Programming\
**Created:** [January 26, 2015, 12:23am UTC](https://forum.arduino.cc/t/code-error/284968 "2015-01-26T00:23:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dannyboy001](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Dannyboy001](https://forum.arduino.cc/u/Dannyboy001)\
**Post date:** [January 26, 2015, 12:23am UTC](https://forum.arduino.cc/t/code-error/284968/1 "2015-01-26T00:23:46Z")

</div>

Hi, I have been working on a code for a while, and decided to compile it to fix any errors. I got one on the first line, and I can't figure out what to do. Please help!

Line #1-4:  
int B1 = 2;  
int B2 = 13;  
int L1 = 6;  
int L2 = 10;

Error:  
sketch\_jan22a:1: error: expected unqualified-id before numeric constant

Any ideas are appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 26, 2015, 12:30am UTC](https://forum.arduino.cc/t/code-error/284968/2 "2015-01-26T00:30:37Z")

</div>

> Any ideas are appreciated!

Maybe not. Post ALL of your code and the EXACT error message.

---

<div class="post-metadata">

**Author:** ![Dannyboy001](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Dannyboy001](https://forum.arduino.cc/u/Dannyboy001)\
**Post date:** [January 26, 2015, 12:38am UTC](https://forum.arduino.cc/t/code-error/284968/3 "2015-01-26T00:38:54Z")

</div>

Just realzed that wasn't neccisary. After many tries to fix the problem, I found that all i had to do was change the namo of B1 to B2 and B2 to B3. Must not have liked the name B1. Sorry for wasting your time. ☹

---

<div class="post-metadata">

**Author:** ![jurs](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jurs](https://forum.arduino.cc/u/jurs)\
**Post date:** [January 26, 2015, 12:57am UTC](https://forum.arduino.cc/t/code-error/284968/4 "2015-01-26T00:57:30Z")

</div>

> Dannyboy001:  
> Must not have liked the name B1.

You can look up all pre-defined binary constants of the Arduino core library in the file  
...\hardware\arduino\cores\arduino\binary.h

B1 is a defined constant with the value of 1.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 9:05pm UTC](https://forum.arduino.cc/t/code-error/284968/5 "2021-05-05T21:05:30Z")

</div>

Closed on May 5, 2021, 9:05pm UTC


