#11
Să se scrie un program care citeşte un şir de caractere format din litere mici ale alfabetului englez şi înlocuieşte fiecare vocală cu litera mare corespunzătoare.
| Problema | Vocale | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64081091 | Utilizator | |
| Fișier | vocale.cpp | Dimensiune | 352 B |
| Data încărcării | 16 Aprilie 2026, 08:47 | Scor/rezultat | 40 puncte |
vocale.cpp: In function ‘int main()’: vocale.cpp:11:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 11 | for(int i = 1 ; i<(strlen(p)-1) ; i ++) | ~^~~~~~~~~~~~~~ vocale.cpp:15:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for(int i = 0 ; i<(strlen(p)) ; i ++) | ~^~~~~~~~~~~~ vocale.cpp:15:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for(int i = 0 ; i<(strlen(p)) ; i ++) | ^~~ vocale.cpp:18:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 18 | return 0; | ^~~~~~ vocale.cpp:9:8: warning: unused variable ‘cnt’ [-Wunused-variable] 9 | int cnt=0; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 30 | 0 | ||
| 4 | 0.001 secunde | OK. | 30 | 30 | ||
| Punctaj total | 40 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Vocale 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ă.