#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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56485978 | Utilizator | |
Fișier | luniramase.cpp | Dimensiune | 1.33 KB |
Data încărcării | 21 Februarie 2025, 14:08 | Scor / rezultat | 0 puncte |
luniramase.cpp: In function 'int main()': luniramase.cpp:6:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=1) ^ luniramase.cpp:8:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=2) ^ luniramase.cpp:10:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=3) ^ luniramase.cpp:12:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=4) ^ luniramase.cpp:14:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=5) ^ luniramase.cpp:16:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=6) ^ luniramase.cpp:18:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=7) ^ luniramase.cpp:20:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=8) ^ luniramase.cpp:22:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=9) ^ luniramase.cpp:24:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=10) ^ luniramase.cpp:26:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=11) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
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 | 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ă.