#2606
luniramase
Se citește de la tastatură un număr natural ce reprezintă o lună a anului (dacă citim 3
ne referim la a treia lună, deci Martie
). Programul va afișa (câte unul pe rând) numele lunilor rămase în acel an după cea citită.
Problema | luniramase | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55522621 | Utilizator | |
Fișier | luniramase.cpp | Dimensiune | 1.45 KB |
Data încărcării | 17 Ianuarie 2025, 10:12 | Scor / rezultat | Eroare de compilare |
luniramase.cpp:1:1: error: 'include' does not name a type include <iostream> ^ luniramase.cpp: In function 'int main()': luniramase.cpp:7:4: error: 'cin' was not declared in this scope cin>>l; ^ luniramase.cpp:9:9: error: 'cout' was not declared in this scope cout<<"Februarie"<<endl<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:9:28: error: 'endl' was not declared in this scope cout<<"Februarie"<<endl<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:9:139: error: 'end' was not declared in this scope cout<<"Februarie"<<endl<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:11:9: error: 'cout' was not declared in this scope cout<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:11:25: error: 'endl' was not declared in this scope cout<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:11:120: error: 'end' was not declared in this scope cout<<"Martie"<<endl<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:13:9: error: 'cout' was not declared in this scope cout<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:13:26: error: 'endl' was not declared in this scope cout<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:13:104: error: 'end' was not declared in this scope cout<<"Aprilie"<<endl<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:15:9: error: 'cout' was not declared in this scope cout<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:15:22: error: 'endl' was not declared in this scope cout<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:15:87: error: 'end' was not declared in this scope cout<<"Mai"<<endl<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:17:9: error: 'cout' was not declared in this scope cout<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:17:24: error: 'endl' was not declared in this scope cout<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:17:74: error: 'end' was not declared in this scope cout<<"Iunie"<<endl<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:19:9: error: 'cout' was not declared in this scope cout<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:19:24: error: 'endl' was not declared in this scope cout<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:19:59: error: 'end' was not declared in this scope cout<<"Iulie"<<endl<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:21:9: error: 'cout' was not declared in this scope cout<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:21:25: error: 'endl' was not declared in this scope cout<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:21:44: error: 'end' was not declared in this scope cout<<"August"<<endl<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:23:9: error: 'cout' was not declared in this scope cout<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:23:28: error: 'end' was not declared in this scope cout<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:23:46: error: 'endl' was not declared in this scope cout<<"Setembrie"<<end<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:25:9: error: 'cout' was not declared in this scope cout<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:25:28: error: 'endl' was not declared in this scope cout<<"Octombrie"<<endl<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:27:9: error: 'cout' was not declared in this scope cout<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:27:28: error: 'endl' was not declared in this scope cout<<"Noiembrie"<<endl<<"Decembrie"; ^ luniramase.cpp:29:9: error: 'cout' was not declared in this scope cout<<"Decembrie"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema luniramase 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ă.