prog.c: In function ‘main’:
prog.c:6:6: error: redefinition of ‘numero’
int numero=2;
^~~~~~
prog.c:5:6: note: previous definition of ‘numero’ was here
int numero=1;
^~~~~~
prog.c:7:6: error: redefinition of ‘numero’
int numero=3;
^~~~~~
prog.c:6:6: note: previous definition of ‘numero’ was here
int numero=2;
^~~~~~
prog.c:8:14: error: empty character constant
char opcion='';
^~
prog.c:11:12: error: expected ‘)’ before ‘;’ token
scanf("%i";numero=1);
^
)
prog.c:11:10: warning: format ‘%i’ expects a matching ‘int *’ argument [-Wformat=]
scanf("%i";numero=1);
~^
prog.c:13:12: error: expected ‘)’ before ‘;’ token
scanf("%i";numero=2);
^
)
prog.c:13:10: warning: format ‘%i’ expects a matching ‘int *’ argument [-Wformat=]
scanf("%i";numero=2);
~^
prog.c:15:12: error: expected ‘)’ before ‘;’ token
scanf("%i";numero=3);
^
)
prog.c:15:10: warning: format ‘%i’ expects a matching ‘int *’ argument [-Wformat=]
scanf("%i";numero=3);
~^
prog.c:19:12: error: expected ‘)’ before ‘;’ token
scanf("%c";&numero1);
^
)
prog.c:19:10: warning: format ‘%c’ expects a matching ‘char *’ argument [-Wformat=]
scanf("%c";&numero1);
~^
prog.c:21:12: error: expected ‘)’ before ‘;’ token
scanf("%c";&numero2);
^
)
prog.c:21:10: warning: format ‘%c’ expects a matching ‘char *’ argument [-Wformat=]
scanf("%c";&numero2);
~^
prog.c:23:12: error: expected ‘)’ before ‘;’ token
scanf("%c";&numero3);
^
)
prog.c:23:10: warning: format ‘%c’ expects a matching ‘char *’ argument [-Wformat=]
scanf("%c";&numero3);
~^
prog.c:29:7: error: ‘numero1’ undeclared (first use in this function); did you mean ‘numero’?
if (numero1>numero2)
^~~~~~~
numero
prog.c:29:7: note: each undeclared identifier is reported only once for each function it appears in
prog.c:29:15: error: ‘numero2’ undeclared (first use in this function); did you mean ‘numero’?
if (numero1>numero2)
^~~~~~~
numero
prog.c:30:14: error: ‘numero3’ undeclared (first use in this function); did you mean ‘numero’?
if(numero1>numero3)
^~~~~~~
numero
prog.c:43:1: error: expected declaration or statement at end of input
}
^
prog.c:7:6: warning: unused variable ‘numero’ [-Wunused-variable]
int numero=3;
^~~~~~
prog.c:11:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i";numero=1);
^~~~~~~~~~~~~~~~~~~~
prog.c:13:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i";numero=2);
^~~~~~~~~~~~~~~~~~~~
prog.c:15:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i";numero=3);
^~~~~~~~~~~~~~~~~~~~
prog.c:19:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c";&numero1);
^~~~~~~~~~~~~~~~~~~~
prog.c:21:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c";&numero2);
^~~~~~~~~~~~~~~~~~~~
prog.c:23:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c";&numero3);
^~~~~~~~~~~~~~~~~~~~