#3324
Eratostene0
Vi se dau n
perechi de numere naturale i j
, cu i ≤ j
. Pentru fiecare pereche trebuie să aflați suma divizorilor tuturor numerelor din șirul i, i + 1, ..., j
.
Folclorul informatic
Problema | Eratostene0 | Operații I/O |
![]() eratostene0.in /eratostene0.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58104461 | Utilizator | |
Fișier | eratostene0.cpp | Dimensiune | 837 B |
Data încărcării | 14 Mai 2025, 11:56 | Scor / rezultat | Eroare de compilare |
eratostene0.cpp:4:15: error: too many decimal points in number const int MAX=1.000.000; ^ eratostene0.cpp:5:10: error: size of array 'e' is not an integral constant-expression int e[MAX], s[MAX], d[MAX]; ^ eratostene0.cpp:5:18: error: size of array 's' is not an integral constant-expression int e[MAX], s[MAX], d[MAX]; ^ eratostene0.cpp:5:26: error: size of array 'd' is not an integral constant-expression int e[MAX], s[MAX], d[MAX]; ^ eratostene0.cpp: In function 'void ciur()': eratostene0.cpp:10:29: error: 'MAx' was not declared in this scope for(int j=i;j<=MAx;j+=i) ^ eratostene0.cpp:12:26: warning: statement has no effect [-Wunused-value] e[j]==i; ^ eratostene0.cpp: In function 'void divizor()': eratostene0.cpp:20:14: error: 'p' was not declared in this scope p=e[aux]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Eratostene0 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ă.