█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 3240

Problema 0x60 - ¿Mayor, menor o igual?

  • Autor: arturor72
  • Fecha: 2021-03-06 21:05:49 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#2
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#3
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#4
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#5
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#6
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#7
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#8
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#9
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
#10
Error de compilación
                      main.c:6:22: error: expected ';' after expression
if(a<b) printf("<\n")
                     ^
                     ;
main.c:7:27: error: expected ';' after expression
else if(a>b) printf(">\n")
                          ^
                          ;
main.c:8:19: error: expected ';' after expression
else printf("=\n")
                  ^
                  ;
3 errors generated.

                    
Puntos totales: 0 / 100

Código

#include<stdio.h>

int main(){
int a,b;
scanf("%d %d", &a, &b);
if(a<b) printf("<\n")
else if(a>b) printf(">\n")
else printf("=\n")
return 0;
}