Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#2 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#3 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#4 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#5 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#6 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#7 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#8 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#9 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#10 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#11 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#12 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#13 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
||
#14 |
Error de compilación
main.c:1:10: fatal error: 'iostream' file not found #include <iostream> ^~~~~~~~~~ 1 error generated. |
#include <iostream> using namespace std; int main() { int n; cin >> n; int arr[n]; for(int i=0; i<n;i++){ cin>>arr[i]; } int c; cin >> c; int x,a,b; for(int i=0; i<c; i++){ x = 0 ; cin >> a; cin >> b; for(int j=a; j<=b; j++){ x+=arr[j]; } cout << x << "\n"; } }