#2328
Dorel este pasionat de feng shui. Astfel, pentru a-şi crea un cadru adecvat meditaţiei, s-a hotărât să scrie pe pereţii casei numere care au un număr prim de divizori. El a găsit n numere, însă nu ştie să le aleagă pe cele potrivite.
| Problema | prim013 | Operații I/O |
prim013.in/prim013.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64616482 | Utilizator | |
| Fișier | prim013.cpp | Dimensiune | 1.01 KB |
| Data încărcării | 18 Mai 2026, 19:23 | Scor/rezultat | Eroare de compilare |
prim013.cpp: In function ‘int Prim(int)’: prim013.cpp:23:1: error: a function-definition is not allowed here before ‘{’ token 23 | { | ^ prim013.cpp:38:1: error: a function-definition is not allowed here before ‘{’ token 38 | { | ^ prim013.cpp:46:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 46 | int main() | ^~ prim013.cpp:46:9: note: remove parentheses to default-initialize a variable 46 | int main() | ^~ | -- prim013.cpp:46:9: note: or replace parentheses with braces to value-initialize a variable prim013.cpp:47:1: error: a function-definition is not allowed here before ‘{’ token 47 | { | ^ prim013.cpp:57:2: error: expected ‘}’ at end of input 57 | } | ^ prim013.cpp:13:2: note: to match this ‘{’ 13 | { | ^ prim013.cpp:57:2: error: expected ‘}’ at end of input 57 | } | ^ prim013.cpp:7:1: note: to match this ‘{’ 7 | { | ^ prim013.cpp:57:2: warning: control reaches end of non-void function [-Wreturn-type] 57 | } | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prim013 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ă.