Life

Some may get it, others may not. Either way, have a good day guys

void setup() {
  // put your setup code here, to run once:
  int life ();

}

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

  if (life == long) {
    life = 1;
  }
  else {
    life = 0;
    break;
  }
  delay (1000);
}

Laugh? I thought I'd never start.

"life" not in scope in function "loop"

There is a few things I was hoping people would take away from this.

first being life - only run once second - life is not defined... "what is the meaning of life" (the first error you get out of this code.) third - there are a lot of problems in life. (if you try and run this code, it WILL error out) forth - life is long. fifth - if long life is not true then end... do not repeat. sixth - life can change at any second

Thinking about this one again, the “int life ();” in setup is just a prototype, so “life” probably is in scope in loop too, if it’s declared at all.

third - there are a lot of problems in life.

We don’t know that.

first being life - only run once

Unless your name is Mo Farah.

“Unless your name is Mo Farah.”

Or Frankenstien or you are a cursed mummy or a zombie

to make an engineer laugh or think or both, you need something that works :)

first being life - only run once

well technically as it stands, it does not run at all... no life.. I guess that's what you say to those who spend their day in front of their screen :)

Is life a function that hasn't been declared anywhere, or is that a failed variable declaration?

That's only about 9 hours of life even if the variable/function/whateverit'ssupposedtobe was proper.