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

Envío 103

Problema 0x78 - Suma de 2 números

  • Autor: mhc
  • Fecha: 2020-08-30 21:33:59 UTC (Hace más de 4 años)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
^
main.c:1:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
    ^
main.c:1:9: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
a , b = input().split()
        ^
main.c:1:16: error: member reference base type 'int' is not a structure or union
a , b = input().split()
        ~~~~~~~^~~~~~
main.c:2:23: error: expected ';' after top level declarator
print(int(a) + int(b))
                      ^
                      ;
3 warnings and 2 errors generated.

                    
#2
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
^
main.c:1:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
    ^
main.c:1:9: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
a , b = input().split()
        ^
main.c:1:16: error: member reference base type 'int' is not a structure or union
a , b = input().split()
        ~~~~~~~^~~~~~
main.c:2:23: error: expected ';' after top level declarator
print(int(a) + int(b))
                      ^
                      ;
3 warnings and 2 errors generated.

                    
#3
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
^
main.c:1:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
    ^
main.c:1:9: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
a , b = input().split()
        ^
main.c:1:16: error: member reference base type 'int' is not a structure or union
a , b = input().split()
        ~~~~~~~^~~~~~
main.c:2:23: error: expected ';' after top level declarator
print(int(a) + int(b))
                      ^
                      ;
3 warnings and 2 errors generated.

                    
#4
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
^
main.c:1:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
    ^
main.c:1:9: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
a , b = input().split()
        ^
main.c:1:16: error: member reference base type 'int' is not a structure or union
a , b = input().split()
        ~~~~~~~^~~~~~
main.c:2:23: error: expected ';' after top level declarator
print(int(a) + int(b))
                      ^
                      ;
3 warnings and 2 errors generated.

                    
#5
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
^
main.c:1:5: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
a , b = input().split()
    ^
main.c:1:9: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
a , b = input().split()
        ^
main.c:1:16: error: member reference base type 'int' is not a structure or union
a , b = input().split()
        ~~~~~~~^~~~~~
main.c:2:23: error: expected ';' after top level declarator
print(int(a) + int(b))
                      ^
                      ;
3 warnings and 2 errors generated.

                    
Puntos totales: 0 / 100

Código

a , b = input().split()
print(int(a) + int(b))