#3063
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 | #57583126 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 1.06 KB |
Data încărcării | 06 Aprilie 2025, 12:48 | Scor / rezultat | 0 puncte |
luna.cpp: In function 'int main()': luna.cpp:10:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=1) ^ luna.cpp:15:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=2) ^ luna.cpp:20:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=3) ^ luna.cpp:25:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=4) ^ luna.cpp:30:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=5) ^ luna.cpp:35:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=6) ^ luna.cpp:40:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=7) ^ luna.cpp:45:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=8) ^ luna.cpp:50:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=9) ^ luna.cpp:55:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=10) ^ luna.cpp:60:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=11) ^ luna.cpp:65:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=12) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 5 | 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 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 0 |
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ă.