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

Envío 6696

Problema 0x78 - Suma de 2 números

  • Autor: duvan
  • Fecha: 2022-10-19 09:42:49 UTC (Hace alrededor de 1 mes)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:6: error: use of undeclared identifier 'a'
let [a,b] = readline().split(" ").map(x => parseInt(x));
     ^
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
let [a,b] = readline().split(" ").map(x => parseInt(x));
^
main.c:1:13: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ^
main.c:1:23: error: member reference base type 'int' is not a structure or union
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ~~~~~~~~~~^~~~~~
main.c:1:42: error: expected expression
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                         ^
main.c:1:39: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                      ^
main.c:1:44: warning: implicit declaration of function 'parseInt' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                           ^
main.c:1:53: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                                    ^
main.c:2:1: error: unknown type name 'console'
console.log(a+b)
^
main.c:2:8: error: expected identifier or '('
console.log(a+b)
       ^
3 warnings and 7 errors generated.

                    
#2
Error de compilación
                      main.c:1:6: error: use of undeclared identifier 'a'
let [a,b] = readline().split(" ").map(x => parseInt(x));
     ^
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
let [a,b] = readline().split(" ").map(x => parseInt(x));
^
main.c:1:13: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ^
main.c:1:23: error: member reference base type 'int' is not a structure or union
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ~~~~~~~~~~^~~~~~
main.c:1:42: error: expected expression
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                         ^
main.c:1:39: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                      ^
main.c:1:44: warning: implicit declaration of function 'parseInt' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                           ^
main.c:1:53: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                                    ^
main.c:2:1: error: unknown type name 'console'
console.log(a+b)
^
main.c:2:8: error: expected identifier or '('
console.log(a+b)
       ^
3 warnings and 7 errors generated.

                    
#3
Error de compilación
                      main.c:1:6: error: use of undeclared identifier 'a'
let [a,b] = readline().split(" ").map(x => parseInt(x));
     ^
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
let [a,b] = readline().split(" ").map(x => parseInt(x));
^
main.c:1:13: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ^
main.c:1:23: error: member reference base type 'int' is not a structure or union
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ~~~~~~~~~~^~~~~~
main.c:1:42: error: expected expression
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                         ^
main.c:1:39: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                      ^
main.c:1:44: warning: implicit declaration of function 'parseInt' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                           ^
main.c:1:53: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                                    ^
main.c:2:1: error: unknown type name 'console'
console.log(a+b)
^
main.c:2:8: error: expected identifier or '('
console.log(a+b)
       ^
3 warnings and 7 errors generated.

                    
#4
Error de compilación
                      main.c:1:6: error: use of undeclared identifier 'a'
let [a,b] = readline().split(" ").map(x => parseInt(x));
     ^
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
let [a,b] = readline().split(" ").map(x => parseInt(x));
^
main.c:1:13: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ^
main.c:1:23: error: member reference base type 'int' is not a structure or union
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ~~~~~~~~~~^~~~~~
main.c:1:42: error: expected expression
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                         ^
main.c:1:39: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                      ^
main.c:1:44: warning: implicit declaration of function 'parseInt' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                           ^
main.c:1:53: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                                    ^
main.c:2:1: error: unknown type name 'console'
console.log(a+b)
^
main.c:2:8: error: expected identifier or '('
console.log(a+b)
       ^
3 warnings and 7 errors generated.

                    
#5
Error de compilación
                      main.c:1:6: error: use of undeclared identifier 'a'
let [a,b] = readline().split(" ").map(x => parseInt(x));
     ^
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
let [a,b] = readline().split(" ").map(x => parseInt(x));
^
main.c:1:13: warning: implicit declaration of function 'readline' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ^
main.c:1:23: error: member reference base type 'int' is not a structure or union
let [a,b] = readline().split(" ").map(x => parseInt(x));
            ~~~~~~~~~~^~~~~~
main.c:1:42: error: expected expression
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                         ^
main.c:1:39: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                      ^
main.c:1:44: warning: implicit declaration of function 'parseInt' is invalid in C99 [-Wimplicit-function-declaration]
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                           ^
main.c:1:53: error: use of undeclared identifier 'x'
let [a,b] = readline().split(" ").map(x => parseInt(x));
                                                    ^
main.c:2:1: error: unknown type name 'console'
console.log(a+b)
^
main.c:2:8: error: expected identifier or '('
console.log(a+b)
       ^
3 warnings and 7 errors generated.

                    
Puntos totales: 0 / 100

Código

let [a,b] = readline().split(" ").map(x => parseInt(x));
console.log(a+b)