#2200
Uppercase
Să se scrie un program care citește o literă mică și afișează litera mare corespunzătoare.
Problema | Uppercase | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58588246 | Utilizator | |
Fișier | uppercase.cpp | Dimensiune | 1.48 KB |
Data încărcării | 25 Iunie 2025, 15:22 | Scor / rezultat | 0 puncte |
uppercase.cpp: In function 'int main()': uppercase.cpp:9:5: warning: 'a' is used uninitialized in this function [-Wuninitialized] if (litera==a) ^ uppercase.cpp:12:7: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==b) ^ uppercase.cpp:15:7: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==c) ^ uppercase.cpp:18:7: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==d) ^ uppercase.cpp:21:7: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==e) ^ uppercase.cpp:24:7: warning: 'f' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==f) ^ uppercase.cpp:27:7: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==g) ^ uppercase.cpp:30:7: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==h) ^ uppercase.cpp:33:7: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==i) ^ uppercase.cpp:36:7: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==j) ^ uppercase.cpp:39:7: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==k) ^ uppercase.cpp:42:7: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==l) ^ uppercase.cpp:45:7: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==m) ^ uppercase.cpp:48:7: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==n) ^ uppercase.cpp:51:7: warning: 'o' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==o) ^ uppercase.cpp:54:7: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==p) ^ uppercase.cpp:57:7: warning: 'q' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==q) ^ uppercase.cpp:60:7: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==r) ^ uppercase.cpp:63:7: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==s) ^ uppercase.cpp:66:7: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==t) ^ uppercase.cpp:69:7: warning: 'u' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==u) ^ uppercase.cpp:72:7: warning: 'v' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==v) ^ uppercase.cpp:75:7: warning: 'w' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==w) ^ uppercase.cpp:78:7: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==x) ^ uppercase.cpp:81:7: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==y) ^ uppercase.cpp:84:5: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized] if (litera==z) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Uppercase 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ă.