Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#2 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#3 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#4 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#5 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#6 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#7 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#8 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#9 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#10 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#11 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
||
#12 |
Error de compilación
main.cpp:15:14: error: expected ';' after expression n = n + 1 ^ ; main.cpp:23:17: error: expected ';' after expression last = a ^ ; 2 errors generated. |
#include <iostream> using namespace std; int main(){ long long n, a, last; cin >> n; if(n == 0){ cout << "Ordenado"; } cin >> last; n = n + 1 for(int i=1;i<n;i++){ cin >> a; if(last > a){ cout << "Desordenado"; return 0; } last = a } cout << "Ordenado"; return 0; }