#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 | #64655087 | Utilizator | |
| Fișier | luniramase.cpp | Dimensiune | 1.46 KB |
| Data încărcării | 20 Mai 2026, 19:08 | Scor/rezultat | 0 puncte |
luniramase.cpp: In function ‘int main()’: luniramase.cpp:8:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 8 | if(l=1) | ~^~ luniramase.cpp:10:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 10 | if(l=2) | ~^~ luniramase.cpp:12:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 12 | if(l=3) | ~^~ luniramase.cpp:14:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 14 | if(l=4) | ~^~ luniramase.cpp:16:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 16 | if(l=5) | ~^~ luniramase.cpp:18:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 18 | if(l=6) | ~^~ luniramase.cpp:20:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 20 | if(l=7) | ~^~ luniramase.cpp:22:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 22 | if(l=8) | ~^~ luniramase.cpp:24:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 24 | if(l=9) | ~^~ luniramase.cpp:26:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 26 | if(l=10) | ~^~~ luniramase.cpp:28:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 28 | if(l=11) | ~^~~
| 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.001 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ă.