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

Envío 2950

Problema 0x78 - Suma de 2 números

  • Autor: davidtoca
  • Fecha: 2021-02-12 23:03:45 UTC (Hace alrededor de 3 años)
Caso # Resultado Tiempo Memoria
#1
Correcto
                      main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %d
1 warning generated.

                    
0.007 s 1 KBi
#2
Incorrecto
                      main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %d
1 warning generated.

                    
0.005 s 1 KBi
#3
Correcto
                      main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %d
1 warning generated.

                    
0.005 s 1 KBi
#4
Incorrecto
                      main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %d
1 warning generated.

                    
0.005 s 1 KBi
#5
Correcto
                      main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %d
1 warning generated.

                    
0.006 s 2 KBi
Puntos totales: 60 / 100

Código

#include <stdio.h>

int main(){
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%lu", a+b);
    return 0;
}