Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input = readline(); ^ main.c:1:9: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration] input = readline(); ^ main.c:1:9: error: initializer element is not a compile-time constant input = readline(); ^~~~~~~~~~ main.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a = Number(input.split(" ")[0]); ^ main.c:2:9: warning: implicit declaration of function 'Number' is invalid in C99 [-Wimplicit-function-declaration] a = Number(input.split(" ")[0]); ^ main.c:2:21: error: member reference base type 'int' is not a structure or union a = Number(input.split(" ")[0]); ~~~~~^~~~~~ main.c:3:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] b = Number(input.split(" ")[1]); ^ main.c:3:21: error: member reference base type 'int' is not a structure or union b = Number(input.split(" ")[1]); ~~~~~^~~~~~ main.c:4:5: error: unknown type name 'Console' Console.log(a + b); ^ main.c:4:12: error: expected identifier or '(' Console.log(a + b); ^ 5 warnings and 5 errors generated. |
||
#2 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input = readline(); ^ main.c:1:9: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration] input = readline(); ^ main.c:1:9: error: initializer element is not a compile-time constant input = readline(); ^~~~~~~~~~ main.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a = Number(input.split(" ")[0]); ^ main.c:2:9: warning: implicit declaration of function 'Number' is invalid in C99 [-Wimplicit-function-declaration] a = Number(input.split(" ")[0]); ^ main.c:2:21: error: member reference base type 'int' is not a structure or union a = Number(input.split(" ")[0]); ~~~~~^~~~~~ main.c:3:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] b = Number(input.split(" ")[1]); ^ main.c:3:21: error: member reference base type 'int' is not a structure or union b = Number(input.split(" ")[1]); ~~~~~^~~~~~ main.c:4:5: error: unknown type name 'Console' Console.log(a + b); ^ main.c:4:12: error: expected identifier or '(' Console.log(a + b); ^ 5 warnings and 5 errors generated. |
||
#3 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input = readline(); ^ main.c:1:9: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration] input = readline(); ^ main.c:1:9: error: initializer element is not a compile-time constant input = readline(); ^~~~~~~~~~ main.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a = Number(input.split(" ")[0]); ^ main.c:2:9: warning: implicit declaration of function 'Number' is invalid in C99 [-Wimplicit-function-declaration] a = Number(input.split(" ")[0]); ^ main.c:2:21: error: member reference base type 'int' is not a structure or union a = Number(input.split(" ")[0]); ~~~~~^~~~~~ main.c:3:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] b = Number(input.split(" ")[1]); ^ main.c:3:21: error: member reference base type 'int' is not a structure or union b = Number(input.split(" ")[1]); ~~~~~^~~~~~ main.c:4:5: error: unknown type name 'Console' Console.log(a + b); ^ main.c:4:12: error: expected identifier or '(' Console.log(a + b); ^ 5 warnings and 5 errors generated. |
||
#4 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input = readline(); ^ main.c:1:9: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration] input = readline(); ^ main.c:1:9: error: initializer element is not a compile-time constant input = readline(); ^~~~~~~~~~ main.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a = Number(input.split(" ")[0]); ^ main.c:2:9: warning: implicit declaration of function 'Number' is invalid in C99 [-Wimplicit-function-declaration] a = Number(input.split(" ")[0]); ^ main.c:2:21: error: member reference base type 'int' is not a structure or union a = Number(input.split(" ")[0]); ~~~~~^~~~~~ main.c:3:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] b = Number(input.split(" ")[1]); ^ main.c:3:21: error: member reference base type 'int' is not a structure or union b = Number(input.split(" ")[1]); ~~~~~^~~~~~ main.c:4:5: error: unknown type name 'Console' Console.log(a + b); ^ main.c:4:12: error: expected identifier or '(' Console.log(a + b); ^ 5 warnings and 5 errors generated. |
||
#5 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] input = readline(); ^ main.c:1:9: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration] input = readline(); ^ main.c:1:9: error: initializer element is not a compile-time constant input = readline(); ^~~~~~~~~~ main.c:2:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] a = Number(input.split(" ")[0]); ^ main.c:2:9: warning: implicit declaration of function 'Number' is invalid in C99 [-Wimplicit-function-declaration] a = Number(input.split(" ")[0]); ^ main.c:2:21: error: member reference base type 'int' is not a structure or union a = Number(input.split(" ")[0]); ~~~~~^~~~~~ main.c:3:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] b = Number(input.split(" ")[1]); ^ main.c:3:21: error: member reference base type 'int' is not a structure or union b = Number(input.split(" ")[1]); ~~~~~^~~~~~ main.c:4:5: error: unknown type name 'Console' Console.log(a + b); ^ main.c:4:12: error: expected identifier or '(' Console.log(a + b); ^ 5 warnings and 5 errors generated. |
input = readline(); a = Number(input.split(" ")[0]); b = Number(input.split(" ")[1]); Console.log(a + b);