#4483
Se dă un şir de cel mult 100 caractere ce conţine numai litere mici ale alfabetului englez.
Să se sorteze caracterele șirului astfel încât vocalele să fie ordonate descrescător, iar consoanele să rămână exact cum sunt în șirul citit.
| Problema | SortVocCons | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64398366 | Utilizator | |
| Fișier | sortvoccons.cpp | Dimensiune | 765 B |
| Data încărcării | 05 Mai 2026, 10:21 | Scor/rezultat | 60 puncte |
sortvoccons.cpp: In function ‘int main()’: sortvoccons.cpp:10:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 10 | for(int i=0;i<strlen(s);i++) | ~^~~~~~~~~~ sortvoccons.cpp:19:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 19 | for(int i=0;i<strlen(s1);i++) | ~^~~~~~~~~~~ sortvoccons.cpp:31:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 31 | for(int i=0;i<strlen(s);i++) | ~^~~~~~~~~~ sortvoccons.cpp:36:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 36 | for(int i=0;i<strlen(s);i++) | ~^~~~~~~~~~ sortvoccons.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%s",s); | ~~~~~^~~~~~~~
| 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 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | OK. | 20 | 20 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SortVocCons 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ă.