Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#2 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#3 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#4 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#5 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#6 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#7 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#8 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#9 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#10 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#11 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#12 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#13 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#14 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#15 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#16 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#17 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#18 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#19 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#20 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#21 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#22 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#23 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#24 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#25 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#26 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#27 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#28 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
||
#29 |
Error de compilación
main.cpp:1:1: error: C++ requires a type specifier for all declarations n = int(input()) ^ main.cpp:1:9: error: use of undeclared identifier 'input' n = int(input()) ^ main.cpp:11:12: error: expected ';' after top level declarator print(best) ^ ; 3 errors generated. |
n = int(input()) a = [int(x) for x in input().split()] best = -1 for i in range(n): height = a[i] for j in range(i, n): height = min(height, a[j]) best = max(best, height * (j - i + 1)) print(best)