#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 | #62900470 | Utilizator | |
| Fișier | luniramase.cpp | Dimensiune | 553 B |
| Data încărcării | 05 Februarie 2026, 17:58 | Scor/rezultat | 10 puncte |
luniramase.cpp: In function 'int main()': luniramase.cpp:8:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (10<l<12)cout<<"Februarie"<<endl; ^ luniramase.cpp:9:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (9<l< 11) cout <<"Martie"<<endl; ^ luniramase.cpp:10:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (8<l< 10) cout <<"Aprilie"<<endl; ^ luniramase.cpp:11:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (7<l<9) cout <<"Mai"<<endl; ^ luniramase.cpp:12:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (6<l<8) cout <<"Iunie" <<endl; ^ luniramase.cpp:13:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (5<l<7) cout <<"Iulie" <<endl; ^ luniramase.cpp:14:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (4<l<6) cout <<"August"<<endl; ^ luniramase.cpp:15:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (3<l<5) cout <<"Septembrie"<<endl; ^ luniramase.cpp:16:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (2<l< 4) cout <<"Octombrie" <<endl; ^ luniramase.cpp:17:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if (1<l<3) cout <<"Noiembrie" <<endl; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | OK. | 10 | 10 | ||
| 1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 10 | |||||
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ă.