Statement of erroneous variable

I write this to see if they find the fault … the subject is simple, read the value of a potentiometer and use it to change the time in a digital sequence to excite some transistors that give cane to coils of a hard drive .
I know there are other means, but I want to try them all … and this takes me 3 days I do and I get this error. Apparently it does not recognize the variables I declare in the program …
I send the image of when I compile … thanks for your attention.

Ok…and this:

[url=http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg][img]http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg[/img][/url]
.....
Or this:
http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg
....
http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg
....
<a href="http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg" target="_blank"><img src="http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg" /></a>
...
Well no more images.

Please post code and error messages using code tags and not some image (that is even unreadable).

Type ``` [code] ```

Insert your code or error message after that Type ``` [/code] ``` after that

thanks for your attention

Sure. I'll be back with a picture of the answer (which is text) as soon as I can find a camera to take a picture of what I typed up, and shrink it down to the point where it is illegible. Hang tight.

Type

void setup() {

  int sensorPin = A0;
  int UNO = 2;
  int DOS = 3;
  int TRES = 4;
  int JAJAJA = 0; // variable

  pinMode(UNO, OUTPUT);
  pinMode(DOS, OUTPUT);
  pinMode(TRES, OUTPUT);

}

void loop() {
  JAJAJA = analogRead(sensorPin);
  digitalWrite(UNO, HIGH);
  delay(JAJAJA);
  digitalWrite(UNO, LOW);
  delay(JAJAJA);
  digitalWrite(DOS, HIGH);
  delay(JAJAJA);
  digitalWrite(DOS, LOW);
  delay(JAJAJA);
  digitalWrite(TRES, HIGH);
  delay(JAJAJA);
  digitalWrite(TRES, LOW);
  delay(JAJAJA);
}

Type

Arduino:1.8.3 (Windows XP), Tarjeta:"Arduino/Genuino Uno"

C:\Documents and Settings\antonio\Mis documentos\Arduino\motor4\motor4.ino: In function 'void loop()':

motor4:16: error: 'JAJAJA' was not declared in this scope

JAJAJA = analogRead(sensorPin);

^

motor4:16: error: 'sensorPin' was not declared in this scope

JAJAJA = analogRead(sensorPin);

^

motor4:17: error: 'UNO' was not declared in this scope

digitalWrite(UNO, HIGH);

^

motor4:21: error: 'DOS' was not declared in this scope

digitalWrite(DOS, HIGH);

^

motor4:25: error: 'TRES' was not declared in this scope

digitalWrite(TRES, HIGH);

^

exit status 1 'JAJAJA' was not declared in this scope

Este reporte podría tener más información con "Mostrar salida detallada durante la compilación" opción habilitada en Archivo -> Preferencias.

Lookup a tutorial on C/C++ scope rules. Or compare your code with just about any of the examples provided in the IDE

To elaborate a bit on AWOL's reply

You have declared your variables inside setup(); that means that they are only known inside setup() (local scope).

Now you try to access them in loop() where they are not known and hence the error. If you want your variable to be known everywhere, they need to have global scope; that is, declare them outside any function.

I already have it, it was not a global variable. It was a mistake to put it inside the setup (). Now...are sure to find the loop (). Beginner bug that has locked me for a week, thank you very much for the help ... now to continue burning transistors or the engine this does what I command, hehe.