#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54004532 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 598 B |
Data încărcării | 17 Noiembrie 2024, 16:56 | Scor / rezultat | Eroare de compilare |
luna.cpp: In function 'int main()': luna.cpp:8:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(n=1) ^ luna.cpp:9:15: error: 'Ianuarie' was not declared in this scope cout<<Ianuarie; ^ luna.cpp:10:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=2) ^ luna.cpp:11:15: error: 'Februarie' was not declared in this scope cout<<Februarie; ^ luna.cpp:12:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=3) ^ luna.cpp:13:15: error: 'Martie' was not declared in this scope cout<<Martie; ^ luna.cpp:14:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=4) ^ luna.cpp:15:15: error: 'Aprilie' was not declared in this scope cout<<Aprilie; ^ luna.cpp:16:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=5) ^ luna.cpp:17:15: error: 'Mai' was not declared in this scope cout<<Mai; ^ luna.cpp:18:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=6) ^ luna.cpp:19:15: error: 'Iunie' was not declared in this scope cout<<Iunie; ^ luna.cpp:20:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=7) ^ luna.cpp:21:15: error: 'Iulie' was not declared in this scope cout<<Iulie; ^ luna.cpp:22:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=8) ^ luna.cpp:23:15: error: 'August' was not declared in this scope cout<<August; ^ luna.cpp:24:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=9) ^ luna.cpp:25:15: error: 'Septembrie' was not declared in this scope cout<<Septembrie; ^ luna.cpp:26:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=10) ^ luna.cpp:27:15: error: 'Octombrie' was not declared in this scope cout<<Octombrie; ^ luna.cpp:28:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=11) ^ luna.cpp:29:15: error: 'Noiembrie' was not declared in this scope cout<<Noiembrie; ^ luna.cpp:30:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if(n=12) ^ luna.cpp:31:15: error: 'Decembrie' was not declared in this scope cout<<Decembrie; ^
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ă.