Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
main.c:7:20: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:7:24: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:9:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d\n", res); ~~ ^~~ %ld 3 warnings generated. |
0.006 s | 1 KBi |
#2 |
Correcto
main.c:7:20: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:7:24: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:9:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d\n", res); ~~ ^~~ %ld 3 warnings generated. |
0.005 s | 1 KBi |
#3 |
Correcto
main.c:7:20: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:7:24: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:9:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d\n", res); ~~ ^~~ %ld 3 warnings generated. |
0.005 s | 1 KBi |
#4 |
Correcto
main.c:7:20: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:7:24: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:9:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d\n", res); ~~ ^~~ %ld 3 warnings generated. |
0.004 s | 1 KBi |
#5 |
Correcto
main.c:7:20: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:7:24: warning: format specifies type 'int *' but the argument has type 'long *' [-Wformat] scanf("%d %d", &a, &b); ~~ ^~ %ld main.c:9:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] printf("%d\n", res); ~~ ^~~ %ld 3 warnings generated. |
0.005 s | 1 KBi |
#include <stdio.h> int main(void) { long int a = 0, b = 0, res = 0; scanf("%d %d", &a, &b); res = a + b; printf("%d\n", res); return (0); }