Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#2 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#3 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#4 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#5 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#6 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#7 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#8 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#9 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
||
#10 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = input() ^ main.c:1:5: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] N = input() ^ main.c:1:5: error: initializer element is not a compile-time constant N = input() ^~~~~~~ main.c:1:12: error: expected ';' after top level declarator N = input() ^ ; 2 warnings and 2 errors generated. |
N = input() linea = input() C = input() consultas = [] for i in range(0,int(C)): consultas.append(int(input())) arreglo= [int(x) for x in linea.split()] print(consultas) for i in consultas: contador = 0 for j in arreglo: if j > i: contador = contador + 1 print(contador)