#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 | #57850233 | Utilizator | |
Fișier | luna.cpp | Dimensiune | 835 B |
Data încărcării | 26 Aprilie 2025, 21:38 | Scor / rezultat | Eroare de compilare |
luna.cpp: In function 'int main()': luna.cpp:11:7: error: break statement not within loop or switch break; ^ luna.cpp:12:6: error: case label '2' not within a switch statement case 2: ^ luna.cpp:14:7: error: break statement not within loop or switch break; ^ luna.cpp:15:6: error: case label '3' not within a switch statement case 3: ^ luna.cpp:17:7: error: break statement not within loop or switch break; ^ luna.cpp:18:6: error: case label '4' not within a switch statement case 4: ^ luna.cpp:20:7: error: break statement not within loop or switch break; ^ luna.cpp:21:6: error: case label '5' not within a switch statement case 5: ^ luna.cpp:23:7: error: break statement not within loop or switch break; ^ luna.cpp:24:6: error: case label '6' not within a switch statement case 6; ^ luna.cpp:24:12: error: expected ':' before ';' token case 6; ^ luna.cpp:26:7: error: break statement not within loop or switch break; ^ luna.cpp:27:6: error: case label '7' not within a switch statement case 7: ^ luna.cpp:29:7: error: break statement not within loop or switch break; ^ luna.cpp:30:6: error: case label '8' not within a switch statement case 8: ^ luna.cpp:32:7: error: break statement not within loop or switch break; ^ luna.cpp:33:6: error: case label '9' not within a switch statement case 9: ^ luna.cpp:35:7: error: break statement not within loop or switch break; ^ luna.cpp:36:6: error: case label '10' not within a switch statement case 10: ^ luna.cpp:38:7: error: break statement not within loop or switch break; ^ luna.cpp:39:6: error: case label '11' not within a switch statement case 11: ^ luna.cpp:41:7: error: break statement not within loop or switch break; ^ luna.cpp:42:6: error: case label '12' not within a switch statement case 12; ^ luna.cpp:42:13: error: expected ':' before ';' token case 12; ^ luna.cpp:44:7: error: break statement not within loop or switch break; ^ luna.cpp:45:6: error: case label not within a switch statement default: ^
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ă.