Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#2 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#3 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#4 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#5 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#6 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#7 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#8 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#9 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
||
#10 |
Error de compilación
main.cpp:14:14: error: variable-sized object may not be initialized int m_array[c] = {0}; ^ 1 error generated. |
#include <iostream> using namespace std; int main(int argc, char** argv) { int l = 0, t = 0, c = 0; cin >> l; int array[l]; for (int i = 0; i != l; i++) { cin >> t; array[i] = t; } cin >> c; int m_array[c] = {0}; for (int i = 0; i != c; i++) { cin >> t; for (int k = 0; k != l; k++) { if (t < array[k]) m_array[i]++; } } for (int i = 0; i != c; i++) cout << m_array[i] << endl; }