#1423
Se citesc de la tastatura n elemente ale unui vector alcatuit exclusiv din litere mici. Rearanjati vectorul astfel incat vocalele sa fie plasate pe primele pozitii. Consoanele (si vocalele) isi vor pastra ordinea initiala, de la stanga la dreapta.
| Problema | VocaleVector | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.05 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64223221 | Utilizator | |
| Fișier | vocalevector.cpp | Dimensiune | 538 B |
| Data încărcării | 23 Aprilie 2026, 18:37 | Scor/rezultat | 80 puncte |
In file included from /usr/include/string.h:548, from /usr/include/c++/13/cstring:42, from vocalevector.cpp:2: In function ‘char* strcpy(char*, const char*)’, inlined from ‘int main()’ at vocalevector.cpp:22:19: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:79:33: warning: ‘char* __builtin___strcpy_chk(char*, const char*, long unsigned int)’ accessing 1 byte at offsets [0, 4001] and [0, 4001] overlaps 1 byte at offset [0, 4000] [-Wrestrict] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘char* strcpy(char*, const char*)’, inlined from ‘int main()’ at vocalevector.cpp:23:19: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:79:33: warning: ‘char* __builtin___strcpy_chk(char*, const char*, long unsigned int)’ accessing 1 byte at offsets [0, 4001] and [0, 4001] overlaps 1 byte at offset [0, 4000] [-Wrestrict] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | OK. | 10 | 10 | ||
| 5 | 0.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 20 | 20 | ||
| 7 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 8 | 0.001 secunde | OK. | 5 | 5 | ||
| 9 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| Punctaj total | 80 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema VocaleVector face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.