Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#2 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#3 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#4 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#5 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#6 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#7 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#8 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#9 |
Esperando resultado...
|
||
#10 |
Esperando resultado...
|
||
#11 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#12 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
||
#13 |
Esperando resultado...
|
||
#14 |
Error de compilación
main.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] N = int(input()) ^ main.c:1:5: error: expected expression N = int(input()) ^ main.c:6:7: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] p,q=list(map(int,input().split())) ^ main.c:6:9: warning: implicit declaration of function 'list' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:14: warning: implicit declaration of function 'map' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:18: error: expected expression p,q=list(map(int,input().split())) ^ main.c:6:22: warning: implicit declaration of function 'input' is invalid in C99 [-Wimplicit-function-declaration] p,q=list(map(int,input().split())) ^ main.c:6:29: error: member reference base type 'int' is not a structure or union p,q=list(map(int,input().split())) ~~~~~~~^~~~~~ main.c:11:15: error: expected ';' after top level declarator print(val) ^ ; 5 warnings and 4 errors generated. |
N = int(input()) listn = list(map(int,input().split())) cases = int(input()) for i in range(cases): p,q=list(map(int,input().split())) val = listn[p] while p < q: p += 1 val += listn[p] print(val)