#94
Să se scrie un program care citeşte un şir de caractere format din litere mici ale alfabetului englez şi elimină din șir toate vocalele.
| Problema | EliminareVocale | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64705338 | Utilizator | |
| Fișier | eliminarevocale.cpp | Dimensiune | 341 B |
| Data încărcării | 25 Mai 2026, 10:20 | Scor/rezultat | 100 puncte |
eliminarevocale.cpp: In function ‘int main()’: eliminarevocale.cpp:9:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 9 | for(int i=0; i<strlen(s); i++) | ~^~~~~~~~~~ eliminarevocale.cpp:13:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 13 | for(int j=i+1;j<=strlen(s);j++) | ~^~~~~~~~~~~ eliminarevocale.cpp:13:14: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for(int j=i+1;j<=strlen(s);j++) | ^~~ eliminarevocale.cpp:15:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | i--; | ^ eliminarevocale.cpp:8:9: warning: unused variable ‘ok’ [-Wunused-variable] 8 | int ok=0; | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 30 | 30 | ||
| 3 | 0.001 secunde | OK. | 30 | 30 | ||
| 4 | 0.001 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema EliminareVocale 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ă.