
Carlos Santaniello
Pregunta¿Alguien sabe la razón por la cuál no compila?
main.c: In function ‘main’:
main.c:10:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘printf’
printf(“Ingresa el valor del entero A \n”);
^~~~~~
main.c:18:5: error: ‘aux’ undeclared (first use in this function)
aux = integerA;
^~~
main.c:18:5: note: each undeclared identifier is reported only once for each function it appears in
Aquí el código:
#include <stdio.h> #include <stdlib.h> int main() { int integerA; int integerB; int aux printf("Ingresa el valor del entero A \n"); scanf("%i", &integerA); printf("Ingresa el valor del entero B \n"); scanf("%i", &integerB); aux = integerA; integerB = integerA; integerB = aux; printf("El entero A es: %i \n", integerA); printf("El entero B es: %i", integerB); return 0; }

Juan Castro
Creo que te falta un punto y coma al final de la octava línea:
int aux;