#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 | #41042363 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 566 B |
Data încărcării | 10 Ianuarie 2023, 13:29 | Scor / rezultat | Eroare de compilare |
luna.cpp: In function 'int main()': luna.cpp:6:5: error: 'cin' was not declared in this scope cin>>n; ^ luna.cpp:6:5: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ luna.cpp:8:9: error: 'cout' was not declared in this scope cout<<"ianuarie"; ^ luna.cpp:8:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:10:9: error: 'cout' was not declared in this scope cout<<"februarue"; ^ luna.cpp:10:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:12:9: error: 'cout' was not declared in this scope cout<<"martie"; ^ luna.cpp:12:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:14:9: error: 'cout' was not declared in this scope cout<<"aprilie"; ^ luna.cpp:14:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:16:9: error: 'cout' was not declared in this scope cout<<"mai"; ^ luna.cpp:16:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:18:9: error: 'cout' was not declared in this scope cout<<"iunie"; ^ luna.cpp:18:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:20:9: error: 'cout' was not declared in this scope cout<<"iulie"; ^ luna.cpp:20:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:22:9: error: 'cout' was not declared in this scope cout<<"august"; ^ luna.cpp:22:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:24:9: error: 'cout' was not declared in this scope cout<<"septembrie"; ^ luna.cpp:24:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:26:9: error: 'cout' was not declared in this scope cout<<"octombrie"; ^ luna.cpp:26:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:28:9: error: 'cout' was not declared in this scope cout<<"noiembrie"; ^ luna.cpp:28:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ luna.cpp:30:9: error: 'cout' was not declared in this scope cout<<"decembrie"; ^ luna.cpp:30:9: note: suggested alternative: In file included from luna.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^
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ă.