user49114: int "buttons"[6];

int "buttons"[0] = 2;

When i upload the code to the board it says: 
exit status 1
expected unqualified-id before string constant


user27653: 
"buttons" is not a valid identifier (i.e., not a valid variable name) because it does not start with a letter or underscore.
You should not repeat the type when you want to refer to the already-declared variable.

You declare the variable like:
int buttons[6];  // A 6-element array of integers

And if you want to refer to a specific element in the array:
buttons[0] = 2; // Let the first element of the array be the value 2.


49114: <pre><code>int "buttons"[6];

int "buttons"[0] = 2;
</code></pre>

<p>When i upload the code to the board it says: </p>

<pre><code>exit status 1
expected unqualified-id before string constant
</code></pre>
 27653: <ol>
<li><p><code>"buttons"</code> is not a valid identifier (i.e., not a valid variable name) because it does not start with a letter or underscore.</p></li>
<li><p>You should not repeat the type when you want to refer to the already-declared variable.</p></li>
</ol>

<p>You declare the variable like:</p>

<pre><code>int buttons[6];  // A 6-element array of integers
</code></pre>

<p>And if you want to refer to a specific element in the array:</p>

<pre><code>buttons[0] = 2; // Let the first element of the array be the value 2.
</code></pre>
