#3063
luna
Scrieți un program care citește un număr natural nenul n
și care afișează numele lunii calendaristice corespunzătoare numărului n
.
Problema | luna | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58044994 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 877 B |
Data încărcării | 10 Mai 2025, 19:11 | Scor / rezultat | 100 puncte |
luna.cpp: In function 'int main()': luna.cpp:10:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 1: if (n=1) ^ luna.cpp:13:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 2: if (n=2) ^ luna.cpp:15:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 3: if (n=3) ^ luna.cpp:17:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 4: if (n=4) ^ luna.cpp:19:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 5: if (n=5) ^ luna.cpp:21:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 6: if (n=6) ^ luna.cpp:23:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 7: if (n=7) ^ luna.cpp:25:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 8: if (n=8) ^ luna.cpp:27:24: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 9: if (n=9) ^ luna.cpp:29:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 10: if (n=10) ^ luna.cpp:31:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 11: if (n=11) ^ luna.cpp:33:25: warning: suggest parentheses around assignment used as truth value [-Wparentheses] case 12: if (n=12) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 5 | 5 | ||
4 | 0 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 5 | 5 | ||
11 | 0 secunde | OK. | 5 | 5 | ||
12 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema luna 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ă.