Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
main.c:5:22: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &a, &b); ~~~ ^~ %lld main.c:5:26: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &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.004 s | 1 KBi |
#2 |
Incorrecto
main.c:5:22: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &a, &b); ~~~ ^~ %lld main.c:5:26: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &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 |
#3 |
Correcto
main.c:5:22: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &a, &b); ~~~ ^~ %lld main.c:5:26: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &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.003 s | 1 KBi |
#4 |
Incorrecto
main.c:5:22: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &a, &b); ~~~ ^~ %lld main.c:5:26: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &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 | 2 KBi |
#5 |
Correcto
main.c:5:22: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &a, &b); ~~~ ^~ %lld main.c:5:26: warning: format specifies type 'long *' but the argument has type 'long long *' [-Wformat] scanf("%ld %ld", &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 |
#include <stdio.h> int main(){ long long a, b; scanf("%ld %ld", &a, &b); printf("%lu", a+b); return 0; }