Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#2 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#3 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#4 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#5 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#6 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#7 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#8 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#9 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#10 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#11 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#12 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#13 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#14 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#15 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#16 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#17 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#18 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#19 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
||
#20 |
Error de compilación
main.cpp:13:9: error: use of undeclared identifier 'marry' marry.push_back(current); ^ 1 error generated. |
#include<iostream> #include<vector> using namespace std; int main () { vector<int> myarray; int size; cin >> size; for(int i=0;i<size;i++) { int current; cin >> current; marry.push_back(current); } for(int k=1; k<10; k++) { int temp = myarray[k]; int j= k-1; while(j>=0 && temp <= myarray[j]) { myarray[j+1] = myarray[j]; j = j-1; } myarray[j+1] = temp; } for(int i=0;i<10;i++) { cout <<myarray[i]<<" "; } }