#2606
Se citește de la tastatură un număr natural ce reprezintă o lună a anului (dacă citim 3 ne referim la a treia lună, deci Martie). Programul va afișa (câte unul pe rând) numele lunilor rămase în acel an după cea citită.
| Problema | luniramase | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64084498 | Utilizator | |
| Fișier | luniramase.cpp | Dimensiune | 613 B |
| Data încărcării | 16 Aprilie 2026, 10:25 | Scor/rezultat | 0 puncte |
luniramase.cpp: In function ‘int main()’: luniramase.cpp:11:9: warning: label ‘case1’ defined but not used [-Wunused-label] 11 | case1:cout<<"februarie"<<endl; | ^~~~~ luniramase.cpp:12:9: warning: label ‘case2’ defined but not used [-Wunused-label] 12 | case2:cout<<"martie"<<endl; | ^~~~~ luniramase.cpp:13:9: warning: label ‘case3’ defined but not used [-Wunused-label] 13 | case3:cout<<"aprile"<<endl; | ^~~~~ luniramase.cpp:14:9: warning: label ‘case4’ defined but not used [-Wunused-label] 14 | case4:cout<<"mai"<<endl; | ^~~~~ luniramase.cpp:15:9: warning: label ‘case5’ defined but not used [-Wunused-label] 15 | case5:cout<<"iunie"<<endl; | ^~~~~ luniramase.cpp:16:9: warning: label ‘case6’ defined but not used [-Wunused-label] 16 | case6:cout<<"iulie"<<endl; | ^~~~~ luniramase.cpp:17:9: warning: label ‘case7’ defined but not used [-Wunused-label] 17 | case7:cout<<"august"<<endl; | ^~~~~ luniramase.cpp:18:9: warning: label ‘case8’ defined but not used [-Wunused-label] 18 | case8:cout<<"septembrie"<<endl; | ^~~~~ luniramase.cpp:19:9: warning: label ‘case9’ defined but not used [-Wunused-label] 19 | case9:cout<<"octombrie"<<endl; | ^~~~~ luniramase.cpp:20:9: warning: label ‘case10’ defined but not used [-Wunused-label] 20 | case10:cout<<"noiembrie"<<endl; | ^~~~~~ luniramase.cpp:21:9: warning: label ‘case11’ defined but not used [-Wunused-label] 21 | case11:cout<<"decembrie"<<endl;} | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema luniramase 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ă.