test:1: error: stray '#' in program
{ #include <Bounce.h> // Bounce library makes button change detection easy
^
test:1: error: expected unqualified-id before '{' token
{ #include <Bounce.h> // Bounce library makes button change detection easy
^
test:4: error: 'Bounce' does not name a type
Bounce button0 = Bounce(0, 3); // 5 = 5 ms debounce time
^
test:5: error: 'Bounce' does not name a type
Bounce button1 = Bounce(1, 3); // which is appropriate for good
^
test:6: error: 'Bounce' does not name a type
Bounce button2 = Bounce(2, 3); // quality mechanical pushbuttons
^
test:7: error: 'Bounce' does not name a type
Bounce button3 = Bounce(3, 3)
^
C:\Users\sterretje\Documents\Arduino\Projects\Forums\test\test.ino: In function 'void setup()':
test:9: error: expected '(' before 'pinMode'
if pinMode(0, INPUT_PULLUP);
^
test:10: error: expected '(' before 'pinMode'
if pinMode(1, INPUT_PULLUP);
^
test:11: error: expected '(' before 'pinMode'
if pinMode(2, INPUT_PULLUP);
^
test:12: error: expected '(' before 'pinMode'
if pinMode(3, INPUT_PULLUP);
^
C:\Users\sterretje\Documents\Arduino\Projects\Forums\test\test.ino: In function 'void loop()':
test:15: error: expected '(' before 'button0'
if button0.update();
^
test:16: error: expected '(' before 'button1'
if button1.update();
^
test:17: error: expected '(' before 'button2'
if button2.update();
^
test:18: error: expected '(' before 'button3'
if button3.update();
^
C:\Users\sterretje\Documents\Arduino\Projects\Forums\test\test.ino: At global scope:
test:21: error: expected unqualified-id before 'if'
if (button0.fallingEdge()) {
^
test:24: error: expected unqualified-id before 'if'
if (button1.fallingEdge()) {
^
test:27: error: expected unqualified-id before 'if'
if (button2.fallingEdge()) {
^
test:30: error: expected unqualified-id before 'if'
if (button3.fallingEdge()) {
^
test:34: error: expected unqualified-id before 'if'
if (button1.risingEdge()) {
^
exit status 1
stray '#' in program
You have far more errors than just the one in the subject line. Start fixing them from the top; e.g. why do you use curly braces on line 1 and 3?
I never cease to be amazed at how many people think they can make up their own syntax, and seem incapable of taking even 30 seconds to Google even the simplest aspects of the language. The code in this thread is close to the worst I've ever seen, with more errors per line than just about any I've ever seen. For God's sake, spend a few hours reading a beginners c/c++ tutorial before trying to write any code and wasting peoples time here....