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

Envío 7234

Problema 0x5c - Decir si hay una letra repetida

  • Autor: Jorgito
  • Fecha: 2024-02-18 20:48:39 UTC (Hace 10 meses)
Caso # Resultado Tiempo Memoria
#1
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#2
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#3
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#4
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#5
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#6
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#7
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#8
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#9
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#10
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#11
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
#12
Error de compilación
                      main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
string = input();
^
main.c:1:10: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration]
string = input();
         ^
main.c:1:10: error: initializer element is not a compile-time constant
string = input();
         ^~~~~~~
main.c:3:1: error: expected identifier or '('
if len(string) != len(set(string)):
^
2 warnings and 2 errors generated.

                    
Puntos totales: 0 / 100

Código

string = input();

if len(string) != len(set(string)):
    print('yes')
else:
    print('no')