#11
Vocale
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 | #50702805 | Utilizator | |
Fișier | vocale.cpp | Dimensiune | 418 B |
Data încărcării | 22 Aprilie 2024, 20:51 | Scor / rezultat | 100 puncte |
vocale.cpp: In function 'int main()': vocale.cpp:7:17: warning: array subscript has type 'char' [-Wchar-subscripts] for (i=0;c[i]!='\0';i++) ^ vocale.cpp:9:16: warning: array subscript has type 'char' [-Wchar-subscripts] if (c[i]=='a') ^ vocale.cpp:10:16: warning: array subscript has type 'char' [-Wchar-subscripts] c[i]='A'; ^ vocale.cpp:11:21: warning: array subscript has type 'char' [-Wchar-subscripts] else if (c[i]=='e') ^ vocale.cpp:12:16: warning: array subscript has type 'char' [-Wchar-subscripts] c[i]='E'; ^ vocale.cpp:13:21: warning: array subscript has type 'char' [-Wchar-subscripts] else if (c[i]=='o') ^ vocale.cpp:14:16: warning: array subscript has type 'char' [-Wchar-subscripts] c[i]='O'; ^ vocale.cpp:15:21: warning: array subscript has type 'char' [-Wchar-subscripts] else if (c[i]=='i') ^ vocale.cpp:16:16: warning: array subscript has type 'char' [-Wchar-subscripts] c[i]='I'; ^ vocale.cpp:17:21: warning: array subscript has type 'char' [-Wchar-subscripts] else if (c[i]=='u') ^ vocale.cpp:18:16: warning: array subscript has type 'char' [-Wchar-subscripts] c[i]='U'; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 30 | 30 | ||
3 | 0 secunde | OK. | 30 | 30 | ||
4 | 0 secunde | OK. | 30 | 30 | ||
Punctaj total | 100 |
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ă.