#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 | #54767048 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 2.68 KB |
Data încărcării | 08 Decembrie 2024, 00:23 | Scor / rezultat | Eroare de compilare |
luna.cpp: In function 'int main()': luna.cpp:4:3: error: 'cin' was not declared in this scope cin>>n; ^ luna.cpp:7:7: error: 'cout' was not declared in this scope cout<<"ianuarie"; ^ luna.cpp:13:11: error: 'cout' was not declared in this scope cout<<"februarie"; ^ luna.cpp:15:7: error: 'else' without a previous 'if' else ^ luna.cpp:19:15: error: 'cout' was not declared in this scope cout<<"martie"; ^ luna.cpp:25:19: error: 'cout' was not declared in this scope cout<<"aprilie"; ^ luna.cpp:31:23: error: 'cout' was not declared in this scope cout<<"mai"; ^ luna.cpp:37:27: error: 'cout' was not declared in this scope cout<<"iunie"; ^ luna.cpp:43:31: error: 'cout' was not declared in this scope cout<<"iulie"; ^ luna.cpp:49:35: error: 'cout' was not declared in this scope cout<<"august"; ^ luna.cpp:55:39: error: 'cout' was not declared in this scope cout<<"septembrie"; ^ luna.cpp:61:43: error: 'cout' was not declared in this scope cout<<"octombrie"; ^ luna.cpp:67:47: error: 'cout' was not declared in this scope cout<<"noiembrie"; ^ luna.cpp:73:51: error: 'cout' was not declared in this scope cout<<"decembrie"; ^ luna.cpp:77:51: error: 'cout' was not declared in this scope cout<<"nimic"; ^
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ă.