Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error en tiempo de ejecución (NZEC)
main.c:7:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] gets(a); ^ main.c:9:10: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] printf(a+b); ^~~ /usr/include/stdio.h:332:43: note: passing argument to parameter '__format' here extern int printf (const char *__restrict __format, ...); ^ main.c:9:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(a+b); ^~~ main.c:9:10: note: treat the string as an argument to avoid this printf(a+b); ^ "%s", 3 warnings generated. /usr/bin/ld: /tmp/main-3993b8.o: in function `main': main.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used. Exited with error status 139 run: line 1: 3 Segmentation fault (core dumped) ./a.out |
0.005 s | 1 KBi |
#2 |
Error en tiempo de ejecución (NZEC)
main.c:7:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] gets(a); ^ main.c:9:10: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] printf(a+b); ^~~ /usr/include/stdio.h:332:43: note: passing argument to parameter '__format' here extern int printf (const char *__restrict __format, ...); ^ main.c:9:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(a+b); ^~~ main.c:9:10: note: treat the string as an argument to avoid this printf(a+b); ^ "%s", 3 warnings generated. /usr/bin/ld: /tmp/main-ea3728.o: in function `main': main.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used. Exited with error status 139 run: line 1: 3 Segmentation fault (core dumped) ./a.out |
0.005 s | 1 KBi |
#3 |
Error en tiempo de ejecución (NZEC)
main.c:7:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] gets(a); ^ main.c:9:10: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] printf(a+b); ^~~ /usr/include/stdio.h:332:43: note: passing argument to parameter '__format' here extern int printf (const char *__restrict __format, ...); ^ main.c:9:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(a+b); ^~~ main.c:9:10: note: treat the string as an argument to avoid this printf(a+b); ^ "%s", 3 warnings generated. /usr/bin/ld: /tmp/main-a64720.o: in function `main': main.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used. Exited with error status 139 run: line 1: 3 Segmentation fault (core dumped) ./a.out |
0.005 s | 1 KBi |
#4 |
Error en tiempo de ejecución (NZEC)
main.c:7:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] gets(a); ^ main.c:9:10: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] printf(a+b); ^~~ /usr/include/stdio.h:332:43: note: passing argument to parameter '__format' here extern int printf (const char *__restrict __format, ...); ^ main.c:9:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(a+b); ^~~ main.c:9:10: note: treat the string as an argument to avoid this printf(a+b); ^ "%s", 3 warnings generated. /usr/bin/ld: /tmp/main-457848.o: in function `main': main.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used. Exited with error status 139 run: line 1: 3 Segmentation fault (core dumped) ./a.out |
0.005 s | 1 KBi |
#5 |
Error en tiempo de ejecución (NZEC)
main.c:7:3: warning: implicit declaration of function 'gets' is invalid in C99 [-Wimplicit-function-declaration] gets(a); ^ main.c:9:10: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] printf(a+b); ^~~ /usr/include/stdio.h:332:43: note: passing argument to parameter '__format' here extern int printf (const char *__restrict __format, ...); ^ main.c:9:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(a+b); ^~~ main.c:9:10: note: treat the string as an argument to avoid this printf(a+b); ^ "%s", 3 warnings generated. /usr/bin/ld: /tmp/main-b9c27a.o: in function `main': main.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used. Exited with error status 139 run: line 1: 3 Segmentation fault (core dumped) ./a.out |
0.006 s | 1 KBi |
#include <stdio.h> int main(void) { int a; int b; gets(a); gets(b); printf(a+b); return(0); }