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

Envío 2951

Problema 0x78 - Suma de 2 números

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

                    
0.005 s 1 KBi
#2
Incorrecto
                      main.c:5:20: warning: format specifies type 'int *' but the argument has type 'long long *' [-Wformat]
    scanf("%d %d", &a, &b);
           ~~      ^~
           %lld
main.c:5:24: warning: format specifies type 'int *' but the argument has type 'long long *' [-Wformat]
    scanf("%d %d", &a, &b);
              ~~       ^~
              %lld
main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'long long' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %lld
3 warnings generated.

                    
0.006 s 1 KBi
#3
Incorrecto
                      main.c:5:20: warning: format specifies type 'int *' but the argument has type 'long long *' [-Wformat]
    scanf("%d %d", &a, &b);
           ~~      ^~
           %lld
main.c:5:24: warning: format specifies type 'int *' but the argument has type 'long long *' [-Wformat]
    scanf("%d %d", &a, &b);
              ~~       ^~
              %lld
main.c:6:19: warning: format specifies type 'unsigned long' but the argument has type 'long long' [-Wformat]
    printf("%lu", a+b);
            ~~~   ^~~
            %lld
3 warnings generated.

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

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

                    
0.006 s 1 KBi
Puntos totales: 0 / 100

Código

#include <stdio.h>

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