Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#2 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#3 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#4 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#5 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#6 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#7 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#8 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#9 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#10 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#11 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
||
#12 |
Error de compilación
main.cpp:6:11: error: use of undeclared identifier 'll' vector<ll> arr(n); ^ main.cpp:7:38: error: use of undeclared identifier 'arr' for(int i = 0; i < n; ++i) cin >> arr[i]; ^ main.cpp:11:11: error: use of undeclared identifier 'arr'; did you mean 'arg'? if(arr[i] > arr[i+1]) f = false; ^~~ arg /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: 'arg' declared here arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:11: error: reference to overloaded function could not be resolved; did you mean to call it? if(arr[i] > arr[i+1]) f = false; ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/complex:645:5: note: possible target for call arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } ^ main.cpp:11:20: error: use of undeclared identifier 'arr' if(arr[i] > arr[i+1]) f = false; ^ 5 errors generated. |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<ll> arr(n); for(int i = 0; i < n; ++i) cin >> arr[i]; bool f = true; for(int i = 0; i < n-1 and f; ++i){ if(arr[i] > arr[i+1]) f = false; } cout << ((f) ? "Ordenado": "Desordenado"); return 0; }